I'm very happy to announce that glr2.cc now supports token constructors. We now need to polish the skeleton, strenghthen the test suite, and of course run it on real world test cases.
Please report your mileage! To make testing easier, I have wrapped a tarball here: https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.4.254-a0905.tar.gz https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.4.254-a0905.tar.lz https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.4.254-a0905.tar.xz Cheers! Akim Demaille (11): tests: fix definition for parser class name glr: tests: formatting changes glr: tests: more macros glr: examples: fix locations glr2.cc: fix memory leak glr2.cc: use references to print symbols glr2.cc: example: style changes glr2.cc: rely on symbol kinds rather than token kinds glr2.cc: tests: simplify glr2.cc: introduce the yytranslate_ member function glr2.cc: add support for api.token.constructor TODO | 5 - data/skeletons/c++.m4 | 2 +- data/skeletons/glr2.cc | 310 +++++++++++++++------------- examples/c++/glr/c++-types.test | 20 +- examples/c++/glr/c++-types.yy | 133 ++++++------ examples/c/glr/c++-types.test | 18 +- examples/c/glr/c++-types.y | 2 +- tests/cxx-type.at | 38 ++-- tests/glr-regression.at | 355 ++++++++++++++++++-------------- tests/local.at | 16 +- 10 files changed, 488 insertions(+), 411 deletions(-) -- 2.30.0
