222 |
int i; |
int i; |
223 |
short *values = (short *) alloca (sizeof (short) * nstates); |
short *values = (short *) alloca (sizeof (short) * nstates); |
224 |
for (i = 0; i < nstates; ++i) |
for (i = 0; i < nstates; ++i) |
225 |
values[i] = state_table[i]->accessing_symbol; |
values[i] = states[i]->accessing_symbol; |
226 |
output_table_data (&format_obstack, values, |
output_table_data (&format_obstack, values, |
227 |
0, 1, nstates); |
0, 1, nstates); |
228 |
muscle_insert ("stos", obstack_finish (&format_obstack)); |
muscle_insert ("stos", obstack_finish (&format_obstack)); |
362 |
if (!shift_state) |
if (!shift_state) |
363 |
continue; |
continue; |
364 |
|
|
365 |
symbol = state_table[shift_state]->accessing_symbol; |
symbol = states[shift_state]->accessing_symbol; |
366 |
|
|
367 |
if (ISVAR (symbol)) |
if (ISVAR (symbol)) |
368 |
break; |
break; |
486 |
actrow = XCALLOC (short, ntokens); |
actrow = XCALLOC (short, ntokens); |
487 |
for (i = 0; i < nstates; ++i) |
for (i = 0; i < nstates; ++i) |
488 |
{ |
{ |
489 |
yydefact[i] = action_row (state_table[i]); |
yydefact[i] = action_row (states[i]); |
490 |
save_row (i); |
save_row (i); |
491 |
} |
} |
492 |
|
|
904 |
|
|
905 |
for (i = 0; i < nstates; ++i) |
for (i = 0; i < nstates; ++i) |
906 |
{ |
{ |
907 |
free (state_table[i]->shifts); |
free (states[i]->shifts); |
908 |
XFREE (state_table[i]->reductions); |
XFREE (states[i]->reductions); |
909 |
free (state_table[i]->errs); |
free (states[i]->errs); |
910 |
free (state_table[i]); |
free (states[i]); |
911 |
} |
} |
912 |
XFREE (state_table); |
XFREE (states); |
913 |
} |
} |
914 |
|
|
915 |
|
|