c++: get rid of symbol_type::token ()

It is not used.  And its implementation was wrong when api.token.raw
was defined, as it was still mapping to the external token numbers,
instead of the internal ones.  Besides it was provided only when
api.token.constructor is defined, yet always declared.

* data/skeletons/c++.m4 (by_type::token): Remove, useless.
This commit is contained in:
Akim Demaille
2019-12-01 10:00:42 +01:00
parent 478cb5cf12
commit 8c87a62308
2 changed files with 2 additions and 22 deletions

4
TODO
View File

@@ -135,9 +135,7 @@ $ ./tests/testsuite -l | grep errors | sed q
* Short term
** Get rid of YYPRINT and b4_toknum
** C++ a closer look at parser::by_type::token
It can certainly be simplified with we use api.token.raw.
Besides yytoknum is wrong when api.token.raw is defined.
** Stop indentation in diagnostics
Before Bison 2.7, we printed "flatly" the dependencies in long diagnostics: