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.
This commit is contained in:
Akim Demaille
2020-04-13 14:18:51 +02:00
parent dc1035bada
commit 42ab6c1e44
4 changed files with 135 additions and 20 deletions

View File

@@ -44,11 +44,18 @@ EOF
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