examples: clean up

* examples/c/calc/calc.y: Restore to its original state, with
parse.error=detailed instead of parse.error=custom (this example
should be simple).
* examples/c/calc/calc.test: Check syntax errors.
* examples/c/lexcalc/parse.y: Add comments.
This commit is contained in:
Akim Demaille
2020-01-25 07:59:26 +01:00
parent 0917f4dc76
commit c592202345
5 changed files with 42 additions and 58 deletions

View File

@@ -34,4 +34,10 @@ cat >input <<EOF
(1+2) * 3
EOF
run 0 9
# Check the traces.
run -noerr 0 9 -p
cat >input <<EOF
1++2
EOF
run 0 "err: syntax error, unexpected '+', expecting number or '('"