From 255a6b901a07ae572562f25a72b56a2fcc6b0b9e Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Sun, 21 Oct 2007 15:34:08 +0000 Subject: [PATCH] * data/xslt/xml2dot.xsl (xsl:template match="automaton/state"): After 2007-10-11 change, the child elements here are items not rules. ( + + * data/xslt/xml2dot.xsl (xsl:template match="automaton/state"): After + 2007-10-11 change, the child elements here are items not rules. + ( Add %define lr.keep_unreachable_states. diff --git a/data/xslt/xml2dot.xsl b/data/xslt/xml2dot.xsl index 1d56ca8d..d1d2691a 100644 --- a/data/xslt/xml2dot.xsl +++ b/data/xslt/xml2dot.xsl @@ -25,8 +25,10 @@ --> - + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:bison="http://www.gnu.org/software/bison/"> + + @@ -48,7 +50,7 @@ - + @@ -58,12 +60,27 @@ + + + + + + + + -> - - + + . + + + + + . + + @@ -71,13 +88,7 @@ - - . - - - - /* empty */ - + [ diff --git a/data/xslt/xml2text.xsl b/data/xslt/xml2text.xsl index 621599a3..291045ad 100644 --- a/data/xslt/xml2text.xsl +++ b/data/xslt/xml2text.xsl @@ -117,9 +117,14 @@ - + + + 0 + + + + + @@ -515,7 +520,7 @@ - + @@ -523,7 +528,7 @@ - + @@ -540,18 +545,16 @@ - + + - - + + - - - - + diff --git a/src/print_graph.c b/src/print_graph.c index 2db68151..9d7da18a 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -82,7 +82,8 @@ print_core (struct obstack *oout, state *s) obstack_fgrow1 (oout, " %s", symbols[*sp]->tag); /* Experimental feature: display the lookahead tokens. */ - if (report_flag & report_lookahead_tokens) + if (report_flag & report_lookahead_tokens + && item_number_is_rule_number (*sp1)) { /* Find the reduction we are handling. */ reductions *reds = s->reductions; -- 2.47.2