diff --git a/tests/report.at b/tests/report.at index 734582f4..d55497aa 100644 --- a/tests/report.at +++ b/tests/report.at @@ -2647,6 +2647,454 @@ AT_CHECK([[sed -e 's/bison-xml-report version="[^"]*"/bison-xml-report version=" ]]) +if test x"$XSLTPROC" != x""; then + AT_CHECK([[$XSLTPROC \ + `]]AT_SET_ENV[[ bison --print-datadir`/xslt/xml2xhtml.xsl \ + input.xml >input.html]]) + AT_CHECK([sed -e 's,GNU Bison .*,GNU Bison VERSION,' input.html], [], +[[ + + +
+ ++ input grammar: input.yy
+ ++ 0 $accept → YY_PARSE_unit unit "end of file" + 1 | YY_PARSE_assignments assignments "end of file" + 2 | YY_PARSE_exp exp "end of file" + + 3 unit → assignments exp + + 4 assignments → %empty + 5 | assignments assignment + + 6 assignment → id ":=" exp + + 7 id → "identifier" + + 8 @1 → %empty + + 9 @2 → %empty + + 10 exp → "incr" exp @1 @2 exp + 11 | "(" exp ")" + 12 | "identifier" + 13 | "number" +
+ +0 $accept → • YY_PARSE_unit unit "end of file" + 1 | • YY_PARSE_assignments assignments "end of file" + 2 | • YY_PARSE_exp exp "end of file" + + YY_PARSE_unit shift, and go to state 1 + YY_PARSE_assignments shift, and go to state 2 + YY_PARSE_exp shift, and go to state 3 +
+ +0 $accept → YY_PARSE_unit • unit "end of file" + 3 unit → • assignments exp + 4 assignments → • %empty + 5 | • assignments assignment + + $default reduce using rule 4 (assignments) + + unit go to state 4 + assignments go to state 5 +
+ +1 $accept → YY_PARSE_assignments • assignments "end of file" + 4 assignments → • %empty + 5 | • assignments assignment + + $default reduce using rule 4 (assignments) + + assignments go to state 6 +
+ +2 $accept → YY_PARSE_exp • exp "end of file" + 10 exp → • "incr" exp @1 @2 exp + 11 | • "(" exp ")" + 12 | • "identifier" + 13 | • "number" + + "incr" shift, and go to state 7 + "identifier" shift, and go to state 8 + "number" shift, and go to state 9 + "(" shift, and go to state 10 + + exp go to state 11 +
+ +0 $accept → YY_PARSE_unit unit • "end of file" + + "end of file" shift, and go to state 12 +
+ +3 unit → assignments • exp + 5 assignments → assignments • assignment + 6 assignment → • id ":=" exp + 7 id → • "identifier" + 10 exp → • "incr" exp @1 @2 exp + 11 | • "(" exp ")" + 12 | • "identifier" + 13 | • "number" + + "incr" shift, and go to state 7 + "identifier" shift, and go to state 13 + "number" shift, and go to state 9 + "(" shift, and go to state 10 + + assignment go to state 14 + id go to state 15 + exp go to state 16 +
+ +1 $accept → YY_PARSE_assignments assignments • "end of file" + 5 assignments → assignments • assignment + 6 assignment → • id ":=" exp + 7 id → • "identifier" + + "end of file" shift, and go to state 17 + "identifier" shift, and go to state 18 + + assignment go to state 14 + id go to state 15 +
+ +10 exp → • "incr" exp @1 @2 exp + 10 | "incr" • exp @1 @2 exp + 11 | • "(" exp ")" + 12 | • "identifier" + 13 | • "number" + + "incr" shift, and go to state 7 + "identifier" shift, and go to state 8 + "number" shift, and go to state 9 + "(" shift, and go to state 10 + + exp go to state 19 +
+ +12 exp → "identifier" • + + $default reduce using rule 12 (exp) +
+ +13 exp → "number" • + + $default reduce using rule 13 (exp) +
+ +10 exp → • "incr" exp @1 @2 exp + 11 | • "(" exp ")" + 11 | "(" • exp ")" + 12 | • "identifier" + 13 | • "number" + + "incr" shift, and go to state 7 + "identifier" shift, and go to state 8 + "number" shift, and go to state 9 + "(" shift, and go to state 10 + + exp go to state 20 +
+ +2 $accept → YY_PARSE_exp exp • "end of file" + + "end of file" shift, and go to state 21 +
+ +0 $accept → YY_PARSE_unit unit "end of file" • + + $default accept +
+ +7 id → "identifier" • [":="] + 12 exp → "identifier" • ["end of file"] + + "end of file" reduce using rule 12 (exp) + $default reduce using rule 7 (id) +
+ +5 assignments → assignments assignment • + + $default reduce using rule 5 (assignments) +
+ +6 assignment → id • ":=" exp + + ":=" shift, and go to state 22 +
+ +3 unit → assignments exp • + + $default reduce using rule 3 (unit) +
+ +1 $accept → YY_PARSE_assignments assignments "end of file" • + + $default accept +
+ +7 id → "identifier" • + + $default reduce using rule 7 (id) +
+ +8 @1 → • %empty + 10 exp → "incr" exp • @1 @2 exp + + $default reduce using rule 8 (@1) + + @1 go to state 23 +
+ +11 exp → "(" exp • ")" + + ")" shift, and go to state 24 +
+ +2 $accept → YY_PARSE_exp exp "end of file" • + + $default accept +
+ +6 assignment → id ":=" • exp + 10 exp → • "incr" exp @1 @2 exp + 11 | • "(" exp ")" + 12 | • "identifier" + 13 | • "number" + + "incr" shift, and go to state 7 + "identifier" shift, and go to state 8 + "number" shift, and go to state 9 + "(" shift, and go to state 10 + + exp go to state 25 +
+ +9 @2 → • %empty + 10 exp → "incr" exp @1 • @2 exp + + $default reduce using rule 9 (@2) + + @2 go to state 26 +
+ +11 exp → "(" exp ")" • + + $default reduce using rule 11 (exp) +
+ +6 assignment → id ":=" exp • + + $default reduce using rule 6 (assignment) +
+ +10 exp → • "incr" exp @1 @2 exp + 10 | "incr" exp @1 @2 • exp + 11 | • "(" exp ")" + 12 | • "identifier" + 13 | • "number" + + "incr" shift, and go to state 7 + "identifier" shift, and go to state 8 + "number" shift, and go to state 9 + "(" shift, and go to state 10 + + exp go to state 27 +
+ +10 exp → "incr" exp @1 @2 exp • + + $default reduce using rule 10 (exp) +
+ + + +]]) +fi AT_BISON_OPTION_POPDEFS AT_CLEANUP