c++: make it clear that #define YYSTYPE is not supported

We have been accepting this for years, but it is deprecated: people
are expecting to define api.value.type instead.

* doc/bison.texi: Make it clear that YYSTYPE and YYLTYPE are for C
only.
This commit is contained in:
Akim Demaille
2021-01-31 13:18:51 +01:00
parent a70e21215a
commit dc8fe0678a
3 changed files with 31 additions and 35 deletions

5
TODO
View File

@@ -45,10 +45,7 @@ There are many macros that should obey api.prefix: YY_CPLUSPLUS, YY_MOVE,
etc.
** YYDEBUG etc. in C++
Discourage the use of YYDEBUG in C++ (see thread with Jot). Stop supporting
#define YYSTYPE by the user.
Add value_type as a synonym for semantic_type.
Discourage the use of YYDEBUG in C++ (see thread with Jot).
** yyerrok in Java
And add tests in calc.at, to prepare work for D.