From 6a08adb962c5e08a9a8b0cc73824417e2ab9575c Mon Sep 17 00:00:00 2001 From: kaashoek Date: Tue, 31 May 1988 14:05:41 +0000 Subject: [PATCH] grammar changed --- util/ceg/EM_parser/common/pars.g | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;}