mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-26 20:53:04 +00:00
* NEWS: Add entry for recent .output file lookahead set fix.
* doc/bison.texinfo (Understanding): Remove a bogus lookahead set in the example .output text. * tests/regression.at (Extra lookahead sets in report): Improve wording of comments.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2007-10-19 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
|
* NEWS: Add entry for recent .output file lookahead set fix.
|
||||||
|
* doc/bison.texinfo (Understanding): Remove a bogus lookahead set in
|
||||||
|
the example .output text.
|
||||||
|
* tests/regression.at (Extra lookahead sets in report): Improve wording
|
||||||
|
of comments.
|
||||||
|
|
||||||
2007-10-17 Wojciech Polak <polak@gnu.org>
|
2007-10-17 Wojciech Polak <polak@gnu.org>
|
||||||
|
|
||||||
* src/print-xml.c (print_grammar): Renamed
|
* src/print-xml.c (print_grammar): Renamed
|
||||||
|
|||||||
9
NEWS
9
NEWS
@@ -15,6 +15,15 @@ Changes in version 2.3a+ (????-??-??):
|
|||||||
3. For any rule used only in such states, Bison now reports the rule as
|
3. For any rule used only in such states, Bison now reports the rule as
|
||||||
"never reduced because of conflicts".
|
"never reduced because of conflicts".
|
||||||
|
|
||||||
|
* When instructed to generate a `.output' file including lookahead sets
|
||||||
|
(using `--report=lookahead', for example), Bison now prints each reduction's
|
||||||
|
lookahead set only next to the associated state's one item that (1) is
|
||||||
|
associated with the same rule as the reduction and (2) has its dot at the end
|
||||||
|
of its RHS. Previously, Bison also erroneously printed the lookahead set
|
||||||
|
next to all of the state's other items associated with the same rule. This
|
||||||
|
bug affected only the `.output' file and not the generated parser source
|
||||||
|
code.
|
||||||
|
|
||||||
* The -g and --graph options now output graphs in Graphviz DOT format,
|
* The -g and --graph options now output graphs in Graphviz DOT format,
|
||||||
not VCG format.
|
not VCG format.
|
||||||
|
|
||||||
|
|||||||
@@ -7387,7 +7387,7 @@ with some set of possible lookahead tokens. When run with
|
|||||||
@example
|
@example
|
||||||
state 8
|
state 8
|
||||||
|
|
||||||
exp -> exp . '+' exp [$, '+', '-', '/'] (rule 1)
|
exp -> exp . '+' exp (rule 1)
|
||||||
exp -> exp '+' exp . [$, '+', '-', '/'] (rule 1)
|
exp -> exp '+' exp . [$, '+', '-', '/'] (rule 1)
|
||||||
exp -> exp . '-' exp (rule 2)
|
exp -> exp . '-' exp (rule 2)
|
||||||
exp -> exp . '*' exp (rule 3)
|
exp -> exp . '*' exp (rule 3)
|
||||||
|
|||||||
@@ -1149,11 +1149,12 @@ AT_CLEANUP
|
|||||||
|
|
||||||
AT_SETUP([[Extra lookahead sets in report]])
|
AT_SETUP([[Extra lookahead sets in report]])
|
||||||
|
|
||||||
# Within a single state, Bison used to print a reduction's lookahead set next
|
# Bison prints each reduction's lookahead set only next to the associated
|
||||||
# to all items of the associated rule. Instead, it should only print it next
|
# state's one item that (1) is associated with the same rule as the reduction
|
||||||
# to the item that is of the associated rule and whose dot is at the end of the
|
# and (2) has its dot at the end of its RHS. Previously, Bison also
|
||||||
# RHS. Printing it next to items whose dot is not at the end of the RHS is
|
# erroneously printed the lookahead set next to all of the state's other items
|
||||||
# sometimes redundant and, as in this test case, is sometimes incorrect.
|
# associated with the same rule. This bug affected only the `.output' file and
|
||||||
|
# not the generated parser source code.
|
||||||
|
|
||||||
AT_DATA([[input.y]],
|
AT_DATA([[input.y]],
|
||||||
[[%%
|
[[%%
|
||||||
|
|||||||
Reference in New Issue
Block a user