]> git.saurik.com Git - bison.git/commit - src/gram.h
* src/conflicts.c (conflicts_output): Don't output rules never
authorAkim Demaille <akim@epita.fr>
Fri, 2 Aug 2002 08:05:01 +0000 (08:05 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 2 Aug 2002 08:05:01 +0000 (08:05 +0000)
commitc8f002c7d3407d5c91a5882466916160a72aa8c4
tree7cfa7de4dc3d8f65b8cb9732073501aa25f8bf75
parentcd08e51edafa326fd8a6327f0b659fdbceb24dda
* src/conflicts.c (conflicts_output): Don't output rules never
reduced here, since anyway that computation doesn't work.
* src/gram.h, src/gram.h (rule_filter_t, rule_useful_p)
(rule_useless_p, rule_never_reduced_p): New.
(grammar_rules_partial_print): Use a filter instead of a range.
Display the title only if needed.
(grammar_rules_print): Adjust.
(grammar_rules_never_reduced_report): New.
* src/tables.c (action_row): Move the computation of rules never
reduced to...
(token_actions): here.
* src/main.c (main): Make the parser before making the report, so
that rules never reduced are computed.
Call grammar_rules_never_reduced_report.
* src/print.c (print_results): Report rules never reduced.
* tests/conflicts.at, tests/reduce.at: Adjust.
ChangeLog
src/conflicts.c
src/gram.c
src/gram.h
src/main.c
src/print.c
src/reduce.c
src/tables.c
tests/conflicts.at
tests/reduce.at