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:
Akim Demaille
2021-01-03 07:19:50 +01:00
parent 74d1e881a7
commit ab1208e263
3 changed files with 3 additions and 3 deletions

View File

@@ -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));
}

View File

@@ -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';
}

View File

@@ -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>