/[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.77 by akim, Sun Jun 30 17:31:51 2002 UTC revision 1.78 by akim, Sun Jun 30 17:32:17 2002 UTC
# Line 424  lookaheads_print (FILE *out) Line 424  lookaheads_print (FILE *out)
424                 i, states[i]->nlookaheads);                 i, states[i]->nlookaheads);
425    
426        for (j = 0; j < states[i]->nlookaheads; ++j)        for (j = 0; j < states[i]->nlookaheads; ++j)
427          for (k = 0; k < ntokens; ++k)          BITSET_EXECUTE (states[i]->lookaheads[j], 0, k,
428            if (bitset_test (states[i]->lookaheads[j], k))          {
429              fprintf (out, "   on %d (%s) -> rule %d\n",            fprintf (out, "   on %d (%s) -> rule %d\n",
430                       k, symbol_tag_get (symbols[k]),                     k, symbol_tag_get (symbols[k]),
431                       states[i]->lookaheads_rule[j]->number - 1);                     states[i]->lookaheads_rule[j]->number - 1);
432            });
433      }      }
434    fprintf (out, "Lookaheads: END\n");    fprintf (out, "Lookaheads: END\n");
435  }  }

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78

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