These changes try to make the generated code cuter. And to avoid the gratuitous "yy" prefix where it is useless (Java has better scoping than C). And to start documenting.
Akim Demaille (10): c: make the generated YYSTYPE nicer to read c: make the token kind definition nicer to read c: make the symbol kind definition nicer to read java: style: fix coding style java: use getExpectedTokens, not yyexpectedTokens java: rename Lexer.yyreportSyntaxError as reportSyntaxError java: prefer null to YYSYMBOL_YYEMPTY java: document new features skeletons: beware not to use yyarg when it's null todo: update README-hacking.md | 7 +- TODO | 46 +------ data/skeletons/bison.m4 | 19 ++- data/skeletons/c++.m4 | 14 +-- data/skeletons/c.m4 | 35 +++--- data/skeletons/glr.c | 4 +- data/skeletons/java.m4 | 4 +- data/skeletons/lalr1.cc | 3 +- data/skeletons/lalr1.java | 101 +++++++++------- data/skeletons/yacc.c | 4 +- doc/bison.texi | 67 +++++++++++ examples/java/calc/Calc.y | 6 +- src/parse-gram.c | 207 ++++++++++++++++---------------- src/parse-gram.h | 245 ++++++++++++++++---------------------- tests/local.at | 6 +- 15 files changed, 397 insertions(+), 371 deletions(-) -- 2.26.0
