mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-28 18:35:42 +00:00
yacc: style changes
* data/skeletons/yacc.c: Move call to lac discard to clarify the shifting of the token. Like in lalr1.cc.
This commit is contained in:
1 parent
2a0185b693
commit
a428a9fa6c
1 file changed
+4
-5
@@ -1634,16 +1634,15 @@ yyread_pushed_token:]])[
|
||||
|
||||
/* Shift the lookahead token. */
|
||||
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
|
||||
|
||||
/* Discard the shifted token. */
|
||||
yychar = YYEMPTY;]b4_lac_if([[
|
||||
YY_LAC_DISCARD ("shift");]])[
|
||||
|
||||
yystate = yyn;
|
||||
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
||||
*++yyvsp = yylval;
|
||||
YY_IGNORE_MAYBE_UNINITIALIZED_END]b4_locations_if([
|
||||
*++yylsp = yylloc;])[
|
||||
|
||||
/* Discard the shifted token. */
|
||||
yychar = YYEMPTY;]b4_lac_if([[
|
||||
YY_LAC_DISCARD ("shift");]])[
|
||||
goto yynewstate;
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user