mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
(Understanding): Use Yacc style for conflict reports. Also, use new
way of locating rules.
This commit is contained in:
@@ -5609,8 +5609,8 @@ useless: STR;
|
|||||||
@example
|
@example
|
||||||
calc.y: warning: 1 useless nonterminal and 1 useless rule
|
calc.y: warning: 1 useless nonterminal and 1 useless rule
|
||||||
calc.y:11.1-7: warning: useless nonterminal: useless
|
calc.y:11.1-7: warning: useless nonterminal: useless
|
||||||
calc.y:11.8-12: warning: useless rule: useless: STR
|
calc.y:11.10-12: warning: useless rule: useless: STR
|
||||||
calc.y contains 7 shift/reduce conflicts.
|
calc.y: conflicts: 7 shift/reduce
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
When given @option{--report=state}, in addition to @file{calc.tab.c}, it
|
When given @option{--report=state}, in addition to @file{calc.tab.c}, it
|
||||||
@@ -5632,10 +5632,10 @@ Conflict in state 8 between rule 2 and token '*' resolved as shift.
|
|||||||
The next section lists states that still have conflicts.
|
The next section lists states that still have conflicts.
|
||||||
|
|
||||||
@example
|
@example
|
||||||
State 8 contains 1 shift/reduce conflict.
|
State 8 conflicts: 1 shift/reduce
|
||||||
State 9 contains 1 shift/reduce conflict.
|
State 9 conflicts: 1 shift/reduce
|
||||||
State 10 contains 1 shift/reduce conflict.
|
State 10 conflicts: 1 shift/reduce
|
||||||
State 11 contains 4 shift/reduce conflicts.
|
State 11 conflicts: 4 shift/reduce
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
@@ -5847,8 +5847,8 @@ state 7
|
|||||||
exp go to state 11
|
exp go to state 11
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
As was announced in beginning of the report, @samp{State 8 contains 1
|
As was announced in beginning of the report, @samp{State 8 conflicts:
|
||||||
shift/reduce conflict}:
|
1 shift/reduce}:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
state 8
|
state 8
|
||||||
|
|||||||
Reference in New Issue
Block a user