diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-13 14:18:51 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-13 16:54:14 +0200 |
commit | 42ab6c1e44d3c1665f9f81c41010b85291c94d90 (patch) | |
tree | c594e7d35e91e4d5b3febb527484281f5e74afd4 /examples | |
parent | dc1035bada3fcc793c388b33869b7298e0643860 (diff) | |
download | bison-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-x | examples/c++/calc++/calc++.test | 9 |
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 |