summaryrefslogtreecommitdiff
path: root/src/print-xml.c
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny@ces.clemson.edu>2007-10-17 04:35:35 +0000
committerJoel E. Denny <jdenny@ces.clemson.edu>2007-10-17 04:35:35 +0000
commita0de5091fc13a2fe53f72e6b2d3054b745d9dd8a (patch)
treee72fdf31da28941b43bdc375e8169ff02690a662 /src/print-xml.c
parent4c20d18dc1147ff37726c22ce6987f1201266e83 (diff)
downloadbison-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.c3
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]);