200 |
static void |
static void |
201 |
output_stos (void) |
output_stos (void) |
202 |
{ |
{ |
203 |
output_table_data (&output_obstack, accessing_symbol, |
int i; |
204 |
|
short *values = (short *) alloca (sizeof (short) * nstates); |
205 |
|
for (i = 0; i < nstates; ++i) |
206 |
|
values[i] = state_table[i].accessing_symbol; |
207 |
|
output_table_data (&output_obstack, values, |
208 |
0, 1, nstates); |
0, 1, nstates); |
209 |
muscle_insert ("stos", obstack_finish (&output_obstack)); |
muscle_insert ("stos", obstack_finish (&output_obstack)); |
210 |
} |
} |
393 |
if (!shift_state) |
if (!shift_state) |
394 |
continue; |
continue; |
395 |
|
|
396 |
symbol = accessing_symbol[shift_state]; |
symbol = state_table[shift_state].accessing_symbol; |
397 |
|
|
398 |
if (ISVAR (symbol)) |
if (ISVAR (symbol)) |
399 |
break; |
break; |
935 |
XFREE (lookaheads); |
XFREE (lookaheads); |
936 |
XFREE (LA); |
XFREE (LA); |
937 |
XFREE (LAruleno); |
XFREE (LAruleno); |
|
XFREE (accessing_symbol); |
|
938 |
|
|
939 |
goto_actions (); |
goto_actions (); |
940 |
XFREE (goto_map + ntokens); |
XFREE (goto_map + ntokens); |
948 |
output_table (); |
output_table (); |
949 |
|
|
950 |
output_check (); |
output_check (); |
951 |
|
XFREE (state_table); |
952 |
} |
} |
953 |
|
|
954 |
|
|
1034 |
free_itemsets (void) |
free_itemsets (void) |
1035 |
{ |
{ |
1036 |
core *cp, *cptmp; |
core *cp, *cptmp; |
|
|
|
|
XFREE (state_table); |
|
|
|
|
1037 |
for (cp = first_state; cp; cp = cptmp) |
for (cp = first_state; cp; cp = cptmp) |
1038 |
{ |
{ |
1039 |
cptmp = cp->next; |
cptmp = cp->next; |