mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
(yy::]b4_parser_class_name[::parse): Port
yesterday's yacc.c fix.
This commit is contained in:
@@ -544,6 +544,8 @@ yy::]b4_parser_class_name[::set_debug_level (debug_level_type l)
|
|||||||
int
|
int
|
||||||
yy::]b4_parser_class_name[::parse ()
|
yy::]b4_parser_class_name[::parse ()
|
||||||
{
|
{
|
||||||
|
int yyresult_;
|
||||||
|
|
||||||
YYCDEBUG << "Starting parse" << std::endl;
|
YYCDEBUG << "Starting parse" << std::endl;
|
||||||
|
|
||||||
yynerrs_ = 0;
|
yynerrs_ = 0;
|
||||||
@@ -813,14 +815,18 @@ yyerrlab1:
|
|||||||
|
|
||||||
/* Accept. */
|
/* Accept. */
|
||||||
yyacceptlab:
|
yyacceptlab:
|
||||||
return 0;
|
yyresult_ = 0;
|
||||||
|
goto yyreturn;
|
||||||
|
|
||||||
/* Abort. */
|
/* Abort. */
|
||||||
yyabortlab:
|
yyabortlab:
|
||||||
/* Free the lookahead. */
|
yyresult_ = 1;
|
||||||
yydestruct_ ("Error: discarding lookahead", yyilooka_, &yylval, &yylloc);
|
goto yyreturn;
|
||||||
yylooka_ = yyempty_;
|
|
||||||
return 1;
|
yyreturn:
|
||||||
|
if (yylooka_ != yyeof_ && yylooka_ != yyempty_)
|
||||||
|
yydestruct_ ("Error: discarding lookahead", yyilooka_, &yylval, &yylloc);
|
||||||
|
return yyresult_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user