mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/gram.h, src/gram.c (rules_rhs_length): New.
(ritem_longest_rhs): Use it. * src/gram.h (rule_t): `number' is a new member. * src/reader.c (packgram): Set it. * src/reduce.c (reduce_grammar_tables): Move the useless rules at the end of `rules', and count them out of `nrules'. (reduce_output, dump_grammar): Adjust. * src/print.c (print_grammar): It is no longer needed to check for the usefulness of a rule, as useless rules are beyond `nrules + 1'. * tests/reduce.at (Reduced Automaton): New test.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,16 @@
|
||||
2002-04-07 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/gram.h, src/gram.c (rules_rhs_length): New.
|
||||
(ritem_longest_rhs): Use it.
|
||||
* src/gram.h (rule_t): `number' is a new member.
|
||||
* src/reader.c (packgram): Set it.
|
||||
* src/reduce.c (reduce_grammar_tables): Move the useless rules at
|
||||
the end of `rules', and count them out of `nrules'.
|
||||
(reduce_output, dump_grammar): Adjust.
|
||||
* src/print.c (print_grammar): It is no longer needed to check for
|
||||
the usefulness of a rule, as useless rules are beyond `nrules + 1'.
|
||||
* tests/reduce.at (Reduced Automaton): New test.
|
||||
|
||||
2002-04-07 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
|
||||
|
||||
Reference in New Issue
Block a user