/[bison]/bison/src/print.c
ViewVC logotype

Diff of /bison/src/print.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.49 by akim, Sat Dec 29 14:20:13 2001 UTC revision 1.50 by akim, Sat Dec 29 14:20:47 2001 UTC
# Line 122  print_shifts (FILE *out, state_t *state) Line 122  print_shifts (FILE *out, state_t *state)
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);
# Line 164  print_gotos (FILE *out, state_t *state) Line 164  print_gotos (FILE *out, state_t *state)
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            }            }
# Line 501  print_results (void) Line 501  print_results (void)
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)

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26