mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
glr: consistently use the same wording in traces
* data/skeletons/glr.c, data/skeletons/glr2.cc (yyglrReduce): Traces refer to "state 42", not to "state #42".
This commit is contained in:
@@ -2590,7 +2590,7 @@ b4_dollar_popdef])[]dnl
|
||||
YY_SYMBOL_PRINT ("shifting", yytoken_to_shift, &yylval, &yylloc);
|
||||
yyglrShift (&yystack, yys, yyaction, yyposn,
|
||||
&yylval]b4_locations_if([, &yylloc])[);
|
||||
YY_DPRINTF ((stderr, "Stack %ld now in state #%d\n",
|
||||
YY_DPRINTF ((stderr, "Stack %ld now in state %d\n",
|
||||
YY_CAST (long, yys),
|
||||
yystack.yytops.yystates[yys]->yylrState));
|
||||
}
|
||||
|
||||
@@ -3095,7 +3095,7 @@ b4_dollar_popdef])[]dnl
|
||||
YYCDEBUG << "On stack " << yys.get() << ", ";
|
||||
YY_SYMBOL_PRINT ("shifting", yytoken_to_shift, &yystack.yylval, &yystack.yylloc);
|
||||
yystack.yyglrShift (yys, yyaction, yyposn, yystack.yylval]b4_locations_if([, yystack.yylloc])[);
|
||||
YYCDEBUG << "Stack " << yys.get() << " now in state #"
|
||||
YYCDEBUG << "Stack " << yys.get() << " now in state "
|
||||
<< yystack.topState(yys)->yylrState << '\n';
|
||||
}
|
||||
|
||||
|
||||
@@ -2058,7 +2058,7 @@ Now at end of input.
|
||||
Removing dead stacks.
|
||||
Rename stack 1 -> 0.
|
||||
On stack 0, shifting token "end of file" ()
|
||||
Stack 0 now in state #5
|
||||
Stack 0 now in state 5
|
||||
Ambiguity detected.
|
||||
Option 1,
|
||||
start -> <Rule 1, tokens 1 .. 3>
|
||||
|
||||
Reference in New Issue
Block a user