Fix error locations messed up in previous commit.
authormjsousa
Wed, 25 Jan 2017 19:50:39 +0000
changeset 1032 7a4b29e25481
parent 1031 ce026aee03e0
child 1033 dcf358607302
Fix error locations messed up in previous commit.
stage1_2/iec_bison.yy
--- a/stage1_2/iec_bison.yy	Wed Jan 25 18:29:55 2017 +0000
+++ b/stage1_2/iec_bison.yy	Wed Jan 25 19:50:39 2017 +0000
@@ -5852,11 +5852,11 @@
 	{$$ = new transition_condition_c(NULL, $2, locloc(@$));}
 /* ERROR_CHECK_BEGIN */
 | start_IL_body_token eol_list simple_instr_list
-	{$$ = NULL; print_err_msg(locl(@1), locf(@2), "':' missing before IL condition in transition declaration."); yynerrs++;}
+	{$$ = NULL; print_err_msg(locl(@2), locf(@3), "':' missing before IL condition in transition declaration."); yynerrs++;}
 | start_IL_body_token ':' eol_list error
 	{$$ = NULL;
-	 if (is_current_syntax_token()) {print_err_msg(locl(@2), locf(@3), "no instructions defined in IL condition of transition declaration.");}
-	 else {print_err_msg(locf(@3), locl(@3), "invalid instructions in IL condition of transition declaration."); yyclearin;}
+	 if (is_current_syntax_token()) {print_err_msg(locl(@3), locf(@4), "no instructions defined in IL condition of transition declaration.");}
+	 else {print_err_msg(locf(@4), locl(@4), "invalid instructions in IL condition of transition declaration."); yyclearin;}
 	 yyerrok;
 	}
 | ASSIGN ';'