# HG changeset patch # User laurent # Date 1251905756 -7200 # Node ID 56ee922d0112be6b8e6bda578fec3b2e5a2fa3fc # Parent 261beef39000c59210ce034b21dbd8c932da478d Bug in eno_param_declaration error handle fixed diff -r 261beef39000 -r 56ee922d0112 stage1_2/iec.y --- a/stage1_2/iec.y Wed Sep 02 17:35:02 2009 +0200 +++ b/stage1_2/iec.y Wed Sep 02 17:35:56 2009 +0200 @@ -3525,9 +3525,9 @@ */ {$$ = new eno_param_declaration_c($1, new bool_type_name_c(locloc(@$)), new explicit_definition_c(), locloc(@$));} /* ERROR_CHECK_BEGIN */ -| en_identifier BOOL +| eno_identifier BOOL {$$ = NULL; print_err_msg(locl(@1), locf(@2), "':' missing between variable list and specification in ENO declaration."); yynerrs++;} -| en_identifier ':' error +| eno_identifier ':' error {$$ = NULL; if (is_current_syntax_token()) {print_err_msg(locl(@2), locf(@3), "no specification defined in ENO declaration.");} else {print_err_msg(locf(@3), locl(@3), "invalid specification in ENO declaration."); yyclearin;}