* src/reader.c (readgram): Bind the initial rule's lineno to that

of the first rule.
* tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
(Solved SR Conflicts): Adjust rule 0's line number.
This commit is contained in:
Akim Demaille
2001-12-29 14:17:18 +00:00
parent 610ab194c8
commit ff44279401
3 changed files with 14 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ AT_CHECK([cat input.output], [],
Grammar
Number, Line, Rule
0 4 $axiom -> exp $
0 3 $axiom -> exp $
1 3 exp -> exp OP exp
2 3 exp -> NUM
@@ -171,7 +171,7 @@ AT_CHECK([cat input.output], [],
Grammar
Number, Line, Rule
0 5 $axiom -> exp $
0 4 $axiom -> exp $
1 4 exp -> exp OP exp
2 4 exp -> NUM
@@ -296,7 +296,7 @@ AT_CHECK([cat input.output], [],
[[Grammar
Number, Line, Rule
0 28 $axiom -> expr $
0 2 $axiom -> expr $
1 2 @1 -> /* empty */
2 2 expr -> 'a' @1 'b'
3 15 @2 -> /* empty */