diff options
author | Joel E. Denny <jdenny@ces.clemson.edu> | 2007-10-17 04:35:35 +0000 |
---|---|---|
committer | Joel E. Denny <jdenny@ces.clemson.edu> | 2007-10-17 04:35:35 +0000 |
commit | a0de5091fc13a2fe53f72e6b2d3054b745d9dd8a (patch) | |
tree | e72fdf31da28941b43bdc375e8169ff02690a662 /src/print-xml.c | |
parent | 4c20d18dc1147ff37726c22ce6987f1201266e83 (diff) | |
download | bison-a0de5091fc13a2fe53f72e6b2d3054b745d9dd8a.tar.gz |
* doc/bison.texinfo (Bison Options): Add entry for --print-datadir.
(Option Cross Key): Likewise.
* src/print-xml.c (print_core): Don't print a reduction's lookahead set
next to an item whose dot is not at the end of the RHS even if it
happens to be associated with the same rule.
* src/print.c (print_core): Likewise.
* tests/conflicts.at (Unresolved SR Conflicts): Update output.
(Resolved SR Conflicts): Update output.
* tests/regression.at (Extra lookahead sets in report): New test case.
Diffstat (limited to 'src/print-xml.c')
-rw-r--r-- | src/print-xml.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/print-xml.c b/src/print-xml.c index d1535a33..cbe71a16 100644 --- a/src/print-xml.c +++ b/src/print-xml.c @@ -122,7 +122,8 @@ print_core (FILE *out, int level, state *s) sp = rules[r].rhs; /* Display the lookahead tokens? */ - if (report_flag & report_lookahead_tokens) + if (report_flag & report_lookahead_tokens + && item_number_is_rule_number (*sp1)) { reductions *reds = s->reductions; int red = state_reduction_find (s, &rules[r]); |