summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-13 14:18:51 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-13 16:54:14 +0200
commit42ab6c1e44d3c1665f9f81c41010b85291c94d90 (patch)
treec594e7d35e91e4d5b3febb527484281f5e74afd4 /examples
parentdc1035bada3fcc793c388b33869b7298e0643860 (diff)
downloadbison-42ab6c1e44d3c1665f9f81c41010b85291c94d90.tar.gz
doc: c++: document parser::context
* doc/bison.texi (C++ Parser Context): New. * data/skeletons/lalr1.cc (parser::yysymbol_name): Rename as... (parser::symbol_name): this. (A Complete C++ Example): Promote LAC, now that we have it. Promote parse.error detailed over verbose. * examples/c++/calc++/calc++.test, tests/local.at: Adjust.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/c++/calc++/calc++.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/c++/calc++/calc++.test b/examples/c++/calc++/calc++.test
index d0df490f..e00bb466 100755
--- a/examples/c++/calc++/calc++.test
+++ b/examples/c++/calc++/calc++.test
@@ -45,10 +45,17 @@ run 0 9
cat >input <<EOF
+1 +
+EOF
+run 1 'err: -:2.1: syntax error, unexpected end of file, expecting ( or identifier or number'
+
+
+# LAC finds many more tokens.
+cat >input <<EOF
a := 1
d := a + b * c
EOF
-run 1 'err: -:3.1: syntax error, unexpected end of file, expecting ( or identifier or number'
+run 1 'err: -:3.1: syntax error, unexpected end of file'
cat >input <<EOF