347 |
static void |
static void |
348 |
output_stos (void) |
output_stos (void) |
349 |
{ |
{ |
350 |
output_short_table (&table_obstack, NULL, "yystos", accessing_symbol, |
int i; |
351 |
|
short *values = (short *) alloca (sizeof (short) * nstates); |
352 |
|
for (i = 0; i < nstates; ++i) |
353 |
|
values[i] = state_table[i].accessing_symbol; |
354 |
|
output_short_table (&table_obstack, |
355 |
|
"YYSTOS[STATE] -- Accessing symbol to the STATE", |
356 |
|
"yystos", values, |
357 |
0, 1, nstates); |
0, 1, nstates); |
358 |
} |
} |
359 |
|
|
585 |
if (!shift_state) |
if (!shift_state) |
586 |
continue; |
continue; |
587 |
|
|
588 |
symbol = accessing_symbol[shift_state]; |
symbol = state_table[shift_state].accessing_symbol; |
589 |
|
|
590 |
if (ISVAR (symbol)) |
if (ISVAR (symbol)) |
591 |
break; |
break; |
1127 |
XFREE (lookaheads); |
XFREE (lookaheads); |
1128 |
XFREE (LA); |
XFREE (LA); |
1129 |
XFREE (LAruleno); |
XFREE (LAruleno); |
|
XFREE (accessing_symbol); |
|
1130 |
|
|
1131 |
goto_actions (); |
goto_actions (); |
1132 |
XFREE (goto_map + ntokens); |
XFREE (goto_map + ntokens); |
1297 |
free_itemsets (void) |
free_itemsets (void) |
1298 |
{ |
{ |
1299 |
core *cp, *cptmp; |
core *cp, *cptmp; |
|
|
|
|
XFREE (state_table); |
|
|
|
|
1300 |
for (cp = first_state; cp; cp = cptmp) |
for (cp = first_state; cp; cp = cptmp) |
1301 |
{ |
{ |
1302 |
cptmp = cp->next; |
cptmp = cp->next; |
1347 |
output_stos (); |
output_stos (); |
1348 |
output_rule_data (); |
output_rule_data (); |
1349 |
output_actions (); |
output_actions (); |
1350 |
|
XFREE (state_table); |
1351 |
|
|
1352 |
if (!no_parser_flag) |
if (!no_parser_flag) |
1353 |
output_parser (); |
output_parser (); |
1354 |
output_program (); |
output_program (); |