mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
lalr1.cc: indentation fixes.
* data/lalr1.cc (yyparse): here. Untabify a block of code.
This commit is contained in:
@@ -712,20 +712,19 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
|
|||||||
yyerror_range[1] = yylloc;
|
yyerror_range[1] = yylloc;
|
||||||
if (yyerrstatus_ == 3)
|
if (yyerrstatus_ == 3)
|
||||||
{
|
{
|
||||||
/* If just tried and failed to reuse lookahead token after an
|
/* If just tried and failed to reuse lookahead token after an
|
||||||
error, discard it. */
|
error, discard it. */
|
||||||
|
if (yychar <= yyeof_)
|
||||||
if (yychar <= yyeof_)
|
{
|
||||||
{
|
/* Return failure if at end of input. */
|
||||||
/* Return failure if at end of input. */
|
if (yychar == yyeof_)
|
||||||
if (yychar == yyeof_)
|
YYABORT;
|
||||||
YYABORT;
|
}
|
||||||
}
|
else
|
||||||
else
|
{
|
||||||
{
|
yydestruct_ ("Error: discarding", yytoken, &yylval, &yylloc);
|
||||||
yydestruct_ ("Error: discarding", yytoken, &yylval, &yylloc);
|
yychar = yyempty_;
|
||||||
yychar = yyempty_;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Else will try to reuse lookahead token after shifting the error
|
/* Else will try to reuse lookahead token after shifting the error
|
||||||
@@ -774,7 +773,7 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
|
|||||||
|
|
||||||
/* Pop the current state because it cannot handle the error token. */
|
/* Pop the current state because it cannot handle the error token. */
|
||||||
if (yystate_stack_.height () == 1)
|
if (yystate_stack_.height () == 1)
|
||||||
YYABORT;
|
YYABORT;
|
||||||
|
|
||||||
yyerror_range[1] = yylocation_stack_[0];
|
yyerror_range[1] = yylocation_stack_[0];
|
||||||
yydestruct_ ("Error: popping",
|
yydestruct_ ("Error: popping",
|
||||||
@@ -824,11 +823,11 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
|
|||||||
yypop_ (yylen);
|
yypop_ (yylen);
|
||||||
while (yystate_stack_.height () != 1)
|
while (yystate_stack_.height () != 1)
|
||||||
{
|
{
|
||||||
yydestruct_ ("Cleanup: popping",
|
yydestruct_ ("Cleanup: popping",
|
||||||
yystos_[yystate_stack_[0]],
|
yystos_[yystate_stack_[0]],
|
||||||
&yysemantic_stack_[0],
|
&yysemantic_stack_[0],
|
||||||
&yylocation_stack_[0]);
|
&yylocation_stack_[0]);
|
||||||
yypop_ ();
|
yypop_ ();
|
||||||
}
|
}
|
||||||
|
|
||||||
return yyresult;
|
return yyresult;
|
||||||
|
|||||||
Reference in New Issue
Block a user