mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,16 @@
|
||||
2006-10-20 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
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.
|
||||
|
||||
2006-10-20 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
More improvements to the documentation of the prologue alternatives:
|
||||
|
||||
Reference in New Issue
Block a user