mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 04:43:03 +00:00
java: example: properly track the locations
This example, so far, was tracking the current token number, not the current column number. This is not nice for an example... * examples/java/Calc.y (PositionReader): New. Use it. * examples/java/Calc.test: Check the output.
This commit is contained in:
@@ -30,4 +30,4 @@ run 0 '7
|
||||
cat >input <<EOF
|
||||
1 + 2 * * 3
|
||||
EOF
|
||||
run 0 "err: 1.5: syntax error, unexpected '*', expecting number or '-' or '(' or '!'"
|
||||
run 0 "err: 1.8-1.9: syntax error, unexpected '*', expecting number or '-' or '(' or '!'"
|
||||
|
||||
Reference in New Issue
Block a user