mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
* 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:
@@ -1451,10 +1451,12 @@ readgram (void)
|
||||
t = lex ();
|
||||
}
|
||||
|
||||
/* Insert the initial rule:
|
||||
/* Insert the initial rule, which line is that of the first rule
|
||||
(not that of the start symbol):
|
||||
|
||||
axiom: %start EOF. */
|
||||
p = symbol_list_new (axiom);
|
||||
p->line = grammar->line;
|
||||
p->next = symbol_list_new (startval);
|
||||
p->next->next = symbol_list_new (eoftoken);
|
||||
p->next->next->next = symbol_list_new (NULL);
|
||||
|
||||
Reference in New Issue
Block a user