AT_CHECK([cat input.output], [],
[[State 4 contains 1 shift/reduce conflict.
+
Grammar
Number, Line, Rule
1 3 exp -> exp OP exp
2 3 exp -> NUM
+
Terminals, with rules where they appear
$ (-1)
NUM (257) 2
OP (258) 1
+
Nonterminals, with rules where they appear
exp (5)
state 6
$default accept
+
+
]])
AT_CLEANUP
AT_CHECK([cat input.output], [],
[[Conflict in state 4 between rule 1 and token OP resolved as shift.
+
Grammar
Number, Line, Rule
1 4 exp -> exp OP exp
2 4 exp -> NUM
+
Terminals, with rules where they appear
$ (-1)
NUM (257) 2
OP (258) 1
+
Nonterminals, with rules where they appear
exp (5)
state 6
$default accept
+
+
]])
AT_CLEANUP
# Check the contents of the report.
AT_CHECK([cat input.output], [],
-[[
-Grammar
+[[Grammar
Number, Line, Rule
1 2 @1 -> /* empty */
3 15 @2 -> /* empty */
4 15 expr -> @2 'c'
+
Terminals, with rules where they appear
$ (-1)
'c' (99) 4
error (256)
+
Nonterminals, with rules where they appear
expr (6)
state 8
$default accept
+
+
]])
AT_CLEANUP