mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33: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:
@@ -1709,23 +1709,27 @@ AT_COMPILE([input])
|
||||
AT_PARSER_CHECK([[input --debug]], 1, [],
|
||||
[Starting parse
|
||||
Entering state 0
|
||||
Reading a token: Next token is token 'a' ()
|
||||
Reading a token
|
||||
Next token is token 'a' ()
|
||||
Shifting token 'a' ()
|
||||
Entering state 1
|
||||
Reading a token: Next token is token 'b' ()
|
||||
Reading a token
|
||||
Next token is token 'b' ()
|
||||
Shifting token 'b' ()
|
||||
Entering state 3
|
||||
Reducing stack 0 by rule 3 (line 27):
|
||||
$1 = token 'b' ()
|
||||
-> $$ = nterm b ()
|
||||
Entering state 4
|
||||
Reading a token: Next token is token 'c' ()
|
||||
Reading a token
|
||||
Next token is token 'c' ()
|
||||
Shifting token 'c' ()
|
||||
Entering state 6
|
||||
Reducing stack 0 by rule 4 (line 28):
|
||||
-> $$ = nterm d ()
|
||||
Entering state 7
|
||||
Reading a token: Now at end of input.
|
||||
Reading a token
|
||||
Now at end of input.
|
||||
Stack 0 Entering state 7
|
||||
Now at end of input.
|
||||
Splitting off stack 1 from 0.
|
||||
|
||||
Reference in New Issue
Block a user