[PATCH 0/5] Introduce YYNOMEM in C skeletons
Akim Demaille <[email protected]> Sat, 16 Jan 2021 12:59:00 +0100
| Newsgroups | gmane.comp.parsers.bison.patches |
|---|---|
| Message-ID | <[email protected]> |
YYNOMEM allows to abort the current parse as if the parser itself was running out of memory. It is a means for user to run `goto yyexhaustedlab` in a documented way. Akim Demaille (5): tests: check YYACCEPT and YYABORT glr.c: style: formatting changes yacc.c, glr.c: style: rename yyreturn and yyreturnlab doc: spell check c: add support for YYNOMEM NEWS | 5 +++ data/skeletons/glr.c | 39 +++++++++---------- data/skeletons/yacc.c | 37 +++++++++--------- doc/bison.texi | 64 +++++++++++++++++++------------ examples/c/README.md | 2 +- examples/c/bistromathic/Makefile | 2 +- examples/c/bistromathic/README.md | 2 +- examples/c/bistromathic/parse.y | 6 +-- tests/README.md | 9 +++++ tests/calc.at | 50 ++++++++++++++++++++---- 10 files changed, 139 insertions(+), 77 deletions(-) -- 2.30.0