/[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.177 by akim, Sun Jun 30 17:32:17 2002 UTC revision 1.178 by akim, Sun Jun 30 17:32:35 2002 UTC
# Line 497  action_row (state_t *state) Line 497  action_row (state_t *state)
497            for (i = 0; i < state->nlookaheads; i++)            for (i = 0; i < state->nlookaheads; i++)
498              {              {
499                int count = 0;                int count = 0;
500                rule_number_t rule = -state->lookaheads_rule[i]->number;                rule_number_t rule = state->lookaheads_rule[i]->number;
501                symbol_number_t j;                symbol_number_t j;
502    
503                for (j = 0; j < ntokens; j++)                for (j = 0; j < ntokens; j++)
504                  if (actrow[j] == rule)                  if (actrow[j] == -rule)
505                    count++;                    count++;
506    
507                if (count > max)                if (count > max)
# Line 521  action_row (state_t *state) Line 521  action_row (state_t *state)
521              {              {
522                int j;                int j;
523                for (j = 0; j < ntokens; j++)                for (j = 0; j < ntokens; j++)
524                  if (actrow[j] == default_rule && ! (glr_parser && conflrow[j]))                  if (actrow[j] == -default_rule
525                        && ! (glr_parser && conflrow[j]))
526                    actrow[j] = 0;                    actrow[j] = 0;
527              }              }
           default_rule = -default_rule;  
528          }          }
529      }      }
530    

Legend:
Removed from v.1.177  
changed lines
  Added in v.1.178

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