]> git.saurik.com Git - bison.git/commit
Warn about unset midrule $$ if the corresponding $n is used.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Sat, 21 Oct 2006 02:31:50 +0000 (02:31 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Sat, 21 Oct 2006 02:31:50 +0000 (02:31 +0000)
commit519d000408fc583144fb9c7a18d3718cefaf0de7
tree815247f8478c397f6705a2f4b9fadb60dd194d36
parenta501eca911c81bd7875633ff1d9734e1fb4a3fe3
Warn about unset midrule $$ if the corresponding $n is used.
* src/reader.c (symbol_should_be_used): Check midrule parent rule for
$n usage.
(packgram): Before invoking grammar_rule_check on any rule, make sure
all actions have already been scanned in order to set `used' flags.
Otherwise, checking that a midrule's $$ is set will not always work
properly because the midrule check must forward-reference the midrule's
parent rule.
* tests/input.at (AT_CHECK_UNUSED_VALUES): Extend to check the new
warning.
ChangeLog
src/reader.c
tests/input.at