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

Diff of /bison/src/output.c

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

revision 1.162 by akim, Sat Jun 15 18:23:12 2002 UTC revision 1.163 by akim, Sat Jun 15 18:23:50 2002 UTC
# Line 380  action_row (state_t *state) Line 380  action_row (state_t *state)
380          for (j = 0; j < ntokens; j++)          for (j = 0; j < ntokens; j++)
381            /* and record this rule as the rule to use if that            /* and record this rule as the rule to use if that
382               token follows.  */               token follows.  */
383            if (bitset_test (LA[state->lookaheadsp + i], j))            if (bitset_test (state->lookaheads[i], j))
384              actrow[j] = -LArule[state->lookaheadsp + i]->number;              actrow[j] = -state->lookaheads_rule[i]->number;
385      }      }
386    
387    /* Now see which tokens are allowed for shifts in this state.  For    /* Now see which tokens are allowed for shifts in this state.  For
# Line 428  action_row (state_t *state) Line 428  action_row (state_t *state)
428            for (i = 0; i < state->nlookaheads; i++)            for (i = 0; i < state->nlookaheads; i++)
429              {              {
430                int count = 0;                int count = 0;
431                int rule = -LArule[state->lookaheadsp + i]->number;                int rule = -state->lookaheads_rule[i]->number;
432                int j;                int j;
433    
434                for (j = 0; j < ntokens; j++)                for (j = 0; j < ntokens; j++)

Legend:
Removed from v.1.162  
changed lines
  Added in v.1.163

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