summaryrefslogtreecommitdiff
path: root/tests/regression.at
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-02-04 06:43:45 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-02-04 07:02:24 +0100
commitbba2f0a3a012ede5eec0c5e82f256458b5144e8d (patch)
treecba835c9bc987e2ea5d2383628ddd4ae2fd976df /tests/regression.at
parentfe14fb1c4026b96907efb77fc242a007558b08de (diff)
downloadbison-bba2f0a3a012ede5eec0c5e82f256458b5144e8d.tar.gz
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.
Diffstat (limited to 'tests/regression.at')
-rw-r--r--tests/regression.at9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/regression.at b/tests/regression.at
index 41cef311..9e52cd7e 100644
--- a/tests/regression.at
+++ b/tests/regression.at
@@ -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