--- cci/usr/src/lib/fmip/cgram.y 2019/07/28 12:24:19 1.1 +++ cci/usr/src/lib/fmip/cgram.y 2019/07/28 12:24:43 1.1.1.2 @@ -80,6 +80,7 @@ %term CM 56 %term SM 57 %term ASSIGN 58 +%term ASM 59 /* at last count, there were 7 shift/reduce, 1 reduce/reduce conflicts /* these involved: @@ -134,10 +135,17 @@ ext_def_list: ext_def_list external_def | - =ftnend(); + ={ beg_file(); /* do implementation dep. stuff now */ + ftnend(); } ; external_def: data_def ={ curclass = SNULL; blevel = 0; } + | ASM SM + { + asmout(); + curclass = SNULL; + blevel = 0; + } | error ={ curclass = SNULL; blevel = 0; } ; @@ -475,6 +483,10 @@ begin: LC statement: e SM ={ ecomp( $1 ); } + | ASM SM + { + asmout(); + } | compoundstmt | ifprefix statement ={ deflab($1);