glr2.cc: add support for api.token.constructor

* data/skeletons/glr2.cc: Add support for api.token.constructor.
* examples/c++/glr/c++-types.yy: Use it.
* examples/c++/glr/c++-types.test: Adjust expectations for error
messages.
This commit is contained in:
Akim Demaille
2021-01-10 16:37:47 +01:00
parent 4aa731d110
commit 6833b1be47
4 changed files with 86 additions and 66 deletions

5
TODO
View File

@@ -28,11 +28,6 @@ Discourage the use of YYDEBUG in C++ (see thread with Jot). Stop supporting
Add value_type as a synonym for semantic_type.
** Asymmetries
Why are yylval and yylloc treated differently?
yystack.yyglrShift (create_state_set_index(0), 0, 0, yylval, &yylloc);
** yyerrok in Java
And add tests in calc.at, to prepare work for D.