1874 |
bucket *ruleprec; |
bucket *ruleprec; |
1875 |
|
|
1876 |
ritem = XCALLOC (short, nitems + 1); |
ritem = XCALLOC (short, nitems + 1); |
1877 |
rlhs = XCALLOC (short, nrules) - 1; |
rule_table = XCALLOC (rule_t, nrules) - 1; |
|
rrhs = XCALLOC (short, nrules) - 1; |
|
1878 |
rprec = XCALLOC (short, nrules) - 1; |
rprec = XCALLOC (short, nrules) - 1; |
1879 |
rprecsym = XCALLOC (short, nrules) - 1; |
rprecsym = XCALLOC (short, nrules) - 1; |
1880 |
rassoc = XCALLOC (short, nrules) - 1; |
rassoc = XCALLOC (short, nrules) - 1; |
1885 |
p = grammar; |
p = grammar; |
1886 |
while (p) |
while (p) |
1887 |
{ |
{ |
1888 |
rlhs[ruleno] = p->sym->value; |
rule_table[ruleno].lhs = p->sym->value; |
1889 |
rrhs[ruleno] = itemno; |
rule_table[ruleno].rhs = itemno; |
1890 |
ruleprec = p->ruleprec; |
ruleprec = p->ruleprec; |
1891 |
|
|
1892 |
p = p->next; |
p = p->next; |