375 |
|
|
376 |
/* See which tokens are an explicit error in this state (due to |
/* See which tokens are an explicit error in this state (due to |
377 |
%nonassoc). For them, record MINSHORT as the action. */ |
%nonassoc). For them, record MINSHORT as the action. */ |
378 |
if (errp) |
for (i = 0; i < errp->nerrs; i++) |
379 |
for (i = 0; i < errp->nerrs; i++) |
{ |
380 |
{ |
int symbol = errp->errs[i]; |
381 |
int symbol = errp->errs[i]; |
actrow[symbol] = MINSHORT; |
382 |
actrow[symbol] = MINSHORT; |
} |
|
} |
|
383 |
|
|
384 |
/* Now find the most common reduction and make it the default action |
/* Now find the most common reduction and make it the default action |
385 |
for this state. */ |
for this state. */ |
902 |
|
|
903 |
for (i = 0; i < nstates; ++i) |
for (i = 0; i < nstates; ++i) |
904 |
{ |
{ |
905 |
XFREE (state_table[i]->shifts); |
free (state_table[i]->shifts); |
906 |
XFREE (state_table[i]->reductions); |
XFREE (state_table[i]->reductions); |
907 |
XFREE (state_table[i]->errs); |
free (state_table[i]->errs); |
908 |
free (state_table[i]); |
free (state_table[i]); |
909 |
} |
} |
910 |
XFREE (state_table); |
XFREE (state_table); |