c++: provide yy::parser::symbol_type::name

* data/skeletons/c++.m4 (yy::parser::basic_symbol::name): New.
* data/skeletons/lalr1.cc (yy_print_): Use it.
* doc/bison.texi: Document.
* tests/c++.at: Check.
This commit is contained in:
Akim Demaille
2020-05-10 09:58:30 +02:00
parent 6bb37dbe27
commit bf98d94f4f
5 changed files with 38 additions and 3 deletions

4
NEWS
View File

@@ -8,6 +8,10 @@ GNU Bison NEWS
In C++, yy::parser::symbol_name is now a public member, as was intended.
** New features
In C++, yy::parser::symbol_type now has a public name() member function.
* Noteworthy changes in release 3.6 (2020-05-08) [stable]
** Backward incompatible changes