mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
examples: don't demonstrate multistart, which is not part of 3.8
Besides, for mysterious reasons, this fails on some environment. Reported by Dagobert Michelsen. <https://lists.gnu.org/archive/html/bug-bison/2021-08/msg00008.html> * examples/c/lexcalc/lexcalc.test, examples/c/lexcalc/parse.y, * examples/c/lexcalc/scan.l: Revert to a single-start example.
This commit is contained in:
@@ -38,26 +38,9 @@ run -noerr 0 9 -p
|
||||
cat >input <<EOF
|
||||
(1+2) *
|
||||
EOF
|
||||
run 1 'err: 1.8-2.0: syntax error, unexpected end of line, expecting ( or number
|
||||
err: errors: 1'
|
||||
run 1 'err: 1.8-2.0: syntax error, unexpected end of line, expecting ( or number'
|
||||
|
||||
cat >input <<EOF
|
||||
1 / (2 - 2)
|
||||
EOF
|
||||
run 1 'err: 1.1-11: error: division by zero
|
||||
err: errors: 1'
|
||||
|
||||
|
||||
# Multistart: parse "expression" instead of "input".
|
||||
cat >input <<EOF
|
||||
1+2*3
|
||||
EOF
|
||||
run 0 'expression: 7' -e
|
||||
|
||||
cat >input <<EOF
|
||||
1
|
||||
2
|
||||
EOF
|
||||
run 1 'expression: failure
|
||||
err: 2.1: syntax error, unexpected number, expecting end of file
|
||||
err: errors: 1' -e
|
||||
run 1 'err: 1.1-11: error: division by zero'
|
||||
|
||||
Reference in New Issue
Block a user