/[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.84 by akim, Wed Jul 3 10:54:33 2002 UTC revision 1.85 by akim, Thu Jul 25 21:21:02 2002 UTC
# Line 264  build_relations (void) Line 264  build_relations (void)
264        symbol_number_t symbol1 = states[to_state[i]]->accessing_symbol;        symbol_number_t symbol1 = states[to_state[i]]->accessing_symbol;
265        rule_number_t *rulep;        rule_number_t *rulep;
266    
267        for (rulep = derives[symbol1]; *rulep > 0; rulep++)        for (rulep = derives[symbol1]; *rulep >= 0; rulep++)
268          {          {
269            int done;            int done;
270            int length = 1;            int length = 1;
# Line 438  lookaheads_print (FILE *out) Line 438  lookaheads_print (FILE *out)
438          {          {
439            fprintf (out, "   on %d (%s) -> rule %d\n",            fprintf (out, "   on %d (%s) -> rule %d\n",
440                     k, symbols[k]->tag,                     k, symbols[k]->tag,
441                     states[i]->lookaheads_rule[j]->number - 1);                     states[i]->lookaheads_rule[j]->number);
442          };          };
443      }      }
444    fprintf (out, "Lookaheads: END\n");    fprintf (out, "Lookaheads: END\n");

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

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