c++: make parser::symbol_name public

Reported by Martin Blais <blais@furius.ca>.
https://lists.gnu.org/r/help-bison/2020-05/msg00005.html

* data/skeletons/lalr1.cc (symbol_name): Make it public.
Add a private hidden hook to enable testing of private parts.
* tests/local.at (AT_DATA_GRAMMAR_PROLOGUE): Help Emacs find the right
language mode.
* tests/c++.at (C++ Variant-based Symbols Unit Tests): Check that we
can read symbol_name.
This commit is contained in:
Akim Demaille
2020-05-10 09:00:38 +02:00
parent c3585f41ef
commit 6bb37dbe27
4 changed files with 40 additions and 25 deletions

2
NEWS
View File

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