grammar changed
This commit is contained in:
parent
f68b18f639
commit
6a08adb962
1 changed files with 5 additions and 2 deletions
|
@ -62,8 +62,8 @@ row : C_INSTR { set_outfile( yytext); header( yytext);}
|
||||||
[ Dspecial | Dsimple] { handle_defaults();}
|
[ Dspecial | Dsimple] { handle_defaults();}
|
||||||
;
|
;
|
||||||
|
|
||||||
special : CONDITION { question( &yytext[0]);}
|
special :
|
||||||
simple { out( "}\n");}
|
{ out( "if( 0 ) ;\n"); }
|
||||||
|
|
||||||
[ CONDITION { out( "else "); question( &yytext[0]);}
|
[ CONDITION { out( "else "); question( &yytext[0]);}
|
||||||
simple { out( "}\n");}
|
simple { out( "}\n");}
|
||||||
|
@ -75,11 +75,14 @@ special : CONDITION { question( &yytext[0]);}
|
||||||
|
|
||||||
simple : ARROW { set_segment( segment); save_output();}
|
simple : ARROW { set_segment( segment); save_output();}
|
||||||
actionlist { back_patch();}
|
actionlist { back_patch();}
|
||||||
|
;
|
||||||
|
|
||||||
|
/*
|
||||||
| EQUIV { no_conversions = TRUE; save_output();}
|
| EQUIV { no_conversions = TRUE; save_output();}
|
||||||
actionlist { no_conversions = FALSE; back_patch();}
|
actionlist { no_conversions = FALSE; back_patch();}
|
||||||
|
|
||||||
;
|
;
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
actionlist : { first_action = TRUE;}
|
actionlist : { first_action = TRUE;}
|
||||||
|
|
Loading…
Reference in a new issue