mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 07:43: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:
@@ -964,7 +964,8 @@ Reducing stack by rule 1 (line 20):
|
||||
-> $$ = nterm start ()
|
||||
Stack now 0
|
||||
Entering state 1
|
||||
Reading a token: Next token is token 'a' (PRINTER)
|
||||
Reading a token
|
||||
Next token is token 'a' (PRINTER)
|
||||
syntax error, unexpected 'a', expecting $end
|
||||
Error: popping nterm start ()
|
||||
Stack now 0
|
||||
@@ -1440,7 +1441,8 @@ AT_LAC_CHECK([])
|
||||
AT_PARSER_CHECK([[input --debug]], [[2]], [],
|
||||
[[Starting parse
|
||||
Entering state 0
|
||||
Reading a token: Now at end of input.
|
||||
Reading a token
|
||||
Now at end of input.
|
||||
LAC: initial context established for $end
|
||||
LAC: checking lookahead $end: R2 G3 R2 G5 R2 G6 R2 G7 R2 G8 R2 G9 R2 G10 R2 G11 R2 (max size exceeded)
|
||||
memory exhausted
|
||||
@@ -1454,7 +1456,8 @@ AT_LAC_CHECK([z], [[0]])
|
||||
AT_PARSER_CHECK([[input --debug]], [[2]], [],
|
||||
[[Starting parse
|
||||
Entering state 0
|
||||
Reading a token: Next token is token $undefined ()
|
||||
Reading a token
|
||||
Next token is token $undefined ()
|
||||
LAC: initial context established for $undefined
|
||||
LAC: checking lookahead $undefined: Always Err
|
||||
Constructing syntax error message
|
||||
|
||||
Reference in New Issue
Block a user