[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/6] Address some limitations in the bistro example
From: |
Akim Demaille |
Subject: |
[PATCH 0/6] Address some limitations in the bistro example |
Date: |
Tue, 3 Mar 2020 18:35:20 +0100 |
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
- [PATCH 0/6] Address some limitations in the bistro example,
Akim Demaille <=
- [PATCH 1/6] bistromathic: check completion, Akim Demaille, 2020/03/03
- [PATCH 2/6] bistromathic: don't require spaces after operators for completion, Akim Demaille, 2020/03/03
- [PATCH 3/6] bistromathic: properly compute the lcp, as expected by readline, Akim Demaille, 2020/03/03
- [PATCH 4/6] style: formatting changes, Akim Demaille, 2020/03/03
- [PATCH 6/6] yacc.c: push: undefine the pstate macros for the epilogue, Akim Demaille, 2020/03/03
- [PATCH 5/6] yacc.c: push: initialize the pstate variables in pstate_new, Akim Demaille, 2020/03/03