mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
d: improve the example
* examples/d/calc.y: Exit with failure on errors. Remove useless operators (=, !) meant for the test suite. Add unary + for symmetry. * examples/d/calc.test: Adjust expectations.
This commit is contained in:
@@ -23,4 +23,4 @@ run 0 7
|
||||
cat >input <<EOF
|
||||
1 + 2 * * 3
|
||||
EOF
|
||||
run 0 "err: syntax error, unexpected *, expecting - or ! or ( or number"
|
||||
run 1 "err: syntax error, unexpected *, expecting + or - or ( or number"
|
||||
|
||||
Reference in New Issue
Block a user