From: kaashoek Date: Tue, 31 May 1988 14:05:41 +0000 (+0000) Subject: grammar changed X-Git-Tag: release-5-5~3232 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6a08adb962c5e08a9a8b0cc73824417e2ab9575c;p=ack.git grammar changed --- diff --git a/util/ceg/EM_parser/common/pars.g b/util/ceg/EM_parser/common/pars.g index 230257cb8..c0e485f9b 100644 --- a/util/ceg/EM_parser/common/pars.g +++ b/util/ceg/EM_parser/common/pars.g @@ -62,8 +62,8 @@ row : C_INSTR { set_outfile( yytext); header( yytext);} [ Dspecial | Dsimple] { handle_defaults();} ; -special : CONDITION { question( &yytext[0]);} - simple { out( "}\n");} +special : + { out( "if( 0 ) ;\n"); } [ CONDITION { out( "else "); question( &yytext[0]);} simple { out( "}\n");} @@ -75,11 +75,14 @@ special : CONDITION { question( &yytext[0]);} simple : ARROW { set_segment( segment); save_output();} actionlist { back_patch();} + ; +/* | EQUIV { no_conversions = TRUE; save_output();} actionlist { no_conversions = FALSE; back_patch();} ; +*/ actionlist : { first_action = TRUE;}