This series addresses some of the limitations I reported in https://lists.gnu.org/r/bison-patches/2020-03/msg00001.html:
- some macros (yyssp, etc.) from push parsers "leak" in user code, we need to undefine them - yypstate is not properly setup when first allocated, which results in a crash of yyexpected_tokens if fired before a first token was read. We should move initialization from yypush_parse into yypstate_new. Akim Demaille (6): bistromathic: check completion bistromathic: don't require spaces after operators for completion bistromathic: properly compute the lcp, as expected by readline style: formatting changes yacc.c: push: initialize the pstate variables in pstate_new yacc.c: push: undefine the pstate macros for the epilogue TODO | 3 + data/skeletons/yacc.c | 132 ++++++++++++++-------- examples/c/bistromathic/bistromathic.test | 33 ++++++ examples/c/bistromathic/local.mk | 2 +- examples/c/bistromathic/parse.y | 34 ++++-- tests/torture.at | 5 +- 6 files changed, 147 insertions(+), 62 deletions(-) -- 2.25.1
