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

Diff of /bison/src/lalr.c

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

revision 1.75 by akim, Sun Jun 30 17:31:19 2002 UTC revision 1.76 by akim, Sun Jun 30 17:31:37 2002 UTC
# Line 420  build_relations (void) Line 420  build_relations (void)
420    
421            for (rp = rules[*rulep].rhs; *rp >= 0; rp++)            for (rp = rules[*rulep].rhs; *rp >= 0; rp++)
422              {              {
423                shifts_t *sp = state->shifts;                state = shifts_to (state->shifts,
424                int j;                                   item_number_as_symbol_number (*rp));
               for (j = 0; j < sp->nshifts; j++)  
                 {  
                   state = states[sp->shifts[j]];  
                   if (state->accessing_symbol  
                       == item_number_as_symbol_number (*rp))  
                     break;  
                 }  
   
425                states1[length++] = state->number;                states1[length++] = state->number;
426              }              }
427    

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

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