parser does not discard the lookahead token if the user code
invokes YYERROR. This change is required for POSIX conformance.
- /* We have to keep this `#if YYDEBUG', since we use variables
- which are defined only if `YYDEBUG' is set. */
YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
}
YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
}
#endif /* YYERROR_VERBOSE */
yyerror (]b4_yyerror_args["syntax error");
}
#endif /* YYERROR_VERBOSE */
yyerror (]b4_yyerror_args["syntax error");
}
-/*----------------------------------------------------.
-| yyerrlab1 -- error raised explicitly by an action. |
-`----------------------------------------------------*/
-yyerrlab1:
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
/* Else will try to reuse lookahead token after shifting the error
token. */
/* Else will try to reuse lookahead token after shifting the error
token. */
+/*----------------------------------------------------.
+| yyerrlab1 -- error raised explicitly by an action. |
+`----------------------------------------------------*/
+yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)
yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)