]> git.saurik.com Git - bison.git/commit - ChangeLog
Instead of mapping the LHS of unused rules to -1, keep the LHS
authorAkim Demaille <akim@epita.fr>
Fri, 30 Nov 2001 10:49:24 +0000 (10:49 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 30 Nov 2001 10:49:24 +0000 (10:49 +0000)
commit68f1e3edc304e03b249b64791e4b7d981938bef4
treee2fa018bb66addc6b97c1826bf5b4f9ea1b51f69
parentd2d1b42b0730316f4f70eb416dcc767ffaaa2019
Instead of mapping the LHS of unused rules to -1, keep the LHS
valid, but flag the rules as invalid.
* src/gram.h (rule_t): `useful' is a new member.
* src/print.c (print_grammar): Adjust.
* src/derives.c (set_derives): Likewise.
* src/reader.c (packgram, reduce_output): Likewise.
* src/reduce.c (reduce_grammar_tables): Likewise.
* tests/reduce.at (Underivable Rules, Useless Rules): New.
ChangeLog
src/derives.c
src/gram.h
src/print.c
src/reader.c
src/reduce.c
tests/reduce.at