mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
traces: write the "Reading a token" alone on its line
The Java skeleton displays
Reading a token:
Next token is token "number" (1)
while the other display
Reading a token: Next token is token "number" (1)
When generating logs in the scanner, the first part is separated from
the second, and the end of the scanner logs have the second part
pasted in. So let's propagate the Java way, but with the colon.
* data/skeletons/glr.c, data/skeletons/lalr1.cc, data/skeletons/lalr1.d,
* data/skeletons/lalr1.java, data/skeletons/yacc.c: Do it.
Adjust test cases and doc.
This commit is contained in:
@@ -1702,7 +1702,7 @@ yybackup:
|
||||
yylval = yypushed_val;]b4_locations_if([[
|
||||
yylloc = yypushed_loc;]])])[
|
||||
yyread_pushed_token:]])[
|
||||
YYDPRINTF ((stderr, "Reading a token: "));]b4_push_if([b4_pure_if([[
|
||||
YYDPRINTF ((stderr, "Reading a token\n"));]b4_push_if([b4_pure_if([[
|
||||
yychar = yypushed_char;
|
||||
if (yypushed_val)
|
||||
yylval = *yypushed_val;]b4_locations_if([[
|
||||
|
||||
Reference in New Issue
Block a user