The following changes ensure that %empty is output for rules with an empty right-hand side in all our report formats. There's a lot of code duplication there, but fighting it in C would probably obfuscate the code too much. I wish Bison were in C++.
Akim Demaille (5): news: YYERROR vs variants reports: display %empty in the generated pointed-rules xml: also display %empty for empty right-hand sides style: formatting changes xml: also use "%empty" with html output NEWS | 11 +++++++++ data/xslt/xml2dot.xsl | 6 ++++- data/xslt/xml2text.xsl | 7 +----- data/xslt/xml2xhtml.xsl | 9 ++----- src/print-xml.c | 66 ++++++++++++++++++++++++------------------------- src/print.c | 7 ++++-- src/print_graph.c | 7 ++++-- tests/conflicts.at | 24 +++++++++--------- tests/output.at | 12 ++++----- tests/reduce.at | 10 ++++---- 10 files changed, 85 insertions(+), 74 deletions(-) -- 1.8.4.3
