/[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.181 by akim, Sun Jun 30 17:34:52 2002 UTC revision 1.182 by akim, Tue Jul 2 13:51:26 2002 UTC
# Line 442  action_row (state_t *state) Line 442  action_row (state_t *state)
442    if (redp->num >= 1)    if (redp->num >= 1)
443      {      {
444        int j;        int j;
445          bitset_iterator biter;
446        /* loop over all the rules available here which require        /* loop over all the rules available here which require
447           lookahead */           lookahead */
448        for (i = state->nlookaheads - 1; i >= 0; --i)        for (i = state->nlookaheads - 1; i >= 0; --i)
449          /* and find each token which the rule finds acceptable          /* and find each token which the rule finds acceptable
450             to come next */             to come next */
451          BITSET_EXECUTE (state->lookaheads[i], 0, j,          BITSET_FOR_EACH (biter, state->lookaheads[i], j, 0)
452          {          {
453            /* and record this rule as the rule to use if that            /* and record this rule as the rule to use if that
454               token follows.  */               token follows.  */
455            if (actrow[j] != 0)            if (actrow[j] != 0)
456              conflicted = conflrow[j] = 1;              conflicted = conflrow[j] = 1;
457            actrow[j] = -state->lookaheads_rule[i]->number;            actrow[j] = -state->lookaheads_rule[i]->number;
458          });          }
459      }      }
460    
461    /* Now see which tokens are allowed for shifts in this state.  For    /* Now see which tokens are allowed for shifts in this state.  For

Legend:
Removed from v.1.181  
changed lines
  Added in v.1.182

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