mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 21:33:04 +00:00
* src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
bucket. Adjust all dependencies. * src/reduce.c (nonterminals_reduce): Don't forget to renumber the `number' of the buckets too. * src/gram.h: Include `symtab.h'. (associativity): Move to... * src/symtab.h: here. No longer include `gram.h'.
This commit is contained in:
@@ -1688,7 +1688,7 @@ packgram (void)
|
||||
{
|
||||
bucket *ruleprec = p->ruleprec;
|
||||
rules[ruleno].number = ruleno;
|
||||
rules[ruleno].lhs = p->sym->number;
|
||||
rules[ruleno].lhs = p->sym;
|
||||
rules[ruleno].rhs = ritem + itemno;
|
||||
rules[ruleno].line = p->line;
|
||||
rules[ruleno].useful = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user