c++: demonstrate custom error messages in the examples
commit2142e5915576b124d76e3acecd34e4bbf538d2fe
authorAkim Demaille <akim.demaille@gmail.com>
Tue, 7 Sep 2021 06:21:40 +0000 (7 08:21 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sun, 12 Sep 2021 10:03:58 +0000 (12 12:03 +0200)
treee586523725fd02a55c9df66fc49502450875133f
parenta75072476e251db338f392bef4200d3a2fe2c17a
c++: demonstrate custom error messages in the examples

Let's use c++/glr to demonstrate custom error messages in C++ (not
just in glr2.cc).

* examples/c++/glr/c++-types.yy (report_syntax_error): New.
* examples/c++/glr/c++-types.test: Adjust.
* examples/c/bistromathic/parse.y: Comment changes.
* tests/local.at (AT_YYERROR_DEFINE(c++)): Use a nicer way to print
the lookakead's name.
examples/c++/README.md
examples/c++/glr/README.md
examples/c++/glr/c++-types.test
examples/c++/glr/c++-types.yy
examples/c/bistromathic/parse.y
tests/local.at