122 |
if (!SHIFT_IS_DISABLED (shiftp, i)) |
if (!SHIFT_IS_DISABLED (shiftp, i)) |
123 |
{ |
{ |
124 |
int state1 = shiftp->shifts[i]; |
int state1 = shiftp->shifts[i]; |
125 |
int symbol = state_table[state1]->accessing_symbol; |
int symbol = states[state1]->accessing_symbol; |
126 |
fprintf (out, |
fprintf (out, |
127 |
_(" %-4s\tshift, and go to state %d\n"), |
_(" %-4s\tshift, and go to state %d\n"), |
128 |
escape (symbols[symbol]->tag), state1); |
escape (symbols[symbol]->tag), state1); |
164 |
if (!SHIFT_IS_DISABLED (shiftp, i)) |
if (!SHIFT_IS_DISABLED (shiftp, i)) |
165 |
{ |
{ |
166 |
int state1 = shiftp->shifts[i]; |
int state1 = shiftp->shifts[i]; |
167 |
int symbol = state_table[state1]->accessing_symbol; |
int symbol = states[state1]->accessing_symbol; |
168 |
fprintf (out, _(" %-4s\tgo to state %d\n"), |
fprintf (out, _(" %-4s\tgo to state %d\n"), |
169 |
escape (symbols[symbol]->tag), state1); |
escape (symbols[symbol]->tag), state1); |
170 |
} |
} |
501 |
shiftset = XCALLOC (unsigned, tokensetsize); |
shiftset = XCALLOC (unsigned, tokensetsize); |
502 |
lookaheadset = XCALLOC (unsigned, tokensetsize); |
lookaheadset = XCALLOC (unsigned, tokensetsize); |
503 |
for (i = 0; i < nstates; i++) |
for (i = 0; i < nstates; i++) |
504 |
print_state (out, state_table[i]); |
print_state (out, states[i]); |
505 |
free (shiftset); |
free (shiftset); |
506 |
free (lookaheadset); |
free (lookaheadset); |
507 |
if (trace_flag) |
if (trace_flag) |