There are several main tasks remaining in glr2.cc: 1. fix the memory leaks 2. clean up and restructure (everything should be in yy::, many things should be in yy::parser, and maybe glr_stack should actually be fused in yy::parser 3. add support for variants 4. add support for token constructors
This series of patches addresses a bit of (2) to make (3) easier. I already have ongoing work for (3), but there are unexpected troubles, with %merge, in perfect coordination with the recent bug reports from Jot Dot (https://lists.gnu.org/r/help-bison/2020-12/msg00014.html). Akim Demaille (5): glr2.cc: get rid of the macros wrapping the lookahead glr2.cc: simplify names glr2.cc: use references to the stack rather than pointers lalr1.cc: quoting changes glr2.cc: style: quoting changes data/skeletons/glr2.cc | 242 +++++++++++++++++++--------------------- data/skeletons/lalr1.cc | 6 +- 2 files changed, 116 insertions(+), 132 deletions(-) -- 2.29.2
