mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10: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:
@@ -648,7 +648,8 @@ AT_FULL_COMPILE([[input]])
|
||||
AT_PARSER_CHECK([[input]], [[0]], [[]],
|
||||
[[Starting parse
|
||||
Entering state 0
|
||||
Reading a token: Next token is token NUMBER (1)
|
||||
Reading a token
|
||||
Next token is token NUMBER (1)
|
||||
Shifting token NUMBER (1)
|
||||
Entering state 1
|
||||
Reducing stack by rule 1 (line 34):
|
||||
@@ -657,7 +658,8 @@ Reducing stack by rule 1 (line 34):
|
||||
destroy: 1
|
||||
Stack now 0
|
||||
Entering state 2
|
||||
Reading a token: Next token is token NUMBER (30)
|
||||
Reading a token
|
||||
Next token is token NUMBER (30)
|
||||
Reducing stack by rule 2 (line 35):
|
||||
-> $$ = nterm @1 (20)
|
||||
Stack now 0 2
|
||||
@@ -676,7 +678,8 @@ destroy: 20
|
||||
destroy: 10
|
||||
Stack now 0
|
||||
Entering state 2
|
||||
Reading a token: Next token is token EOI ()
|
||||
Reading a token
|
||||
Next token is token EOI ()
|
||||
Shifting token EOI ()
|
||||
Entering state 3
|
||||
Stack now 0 2 3
|
||||
|
||||
Reference in New Issue
Block a user