/[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.63 by akim, Sun Apr 7 17:41:44 2002 UTC revision 1.64 by akim, Sun Apr 7 17:42:12 2002 UTC
# Line 27  Line 27 
27  #include "system.h"  #include "system.h"
28  #include "bitset.h"  #include "bitset.h"
29  #include "bitsetv.h"  #include "bitsetv.h"
30    #include "quotearg.h"
31  #include "reader.h"  #include "reader.h"
32  #include "types.h"  #include "types.h"
33  #include "LR0.h"  #include "LR0.h"
# Line 559  lookaheads_print (FILE *out) Line 560  lookaheads_print (FILE *out)
560    
561        for (j = 0; j < states[i]->nlookaheads; ++j)        for (j = 0; j < states[i]->nlookaheads; ++j)
562          for (k = 0; k < ntokens; ++k)          for (k = 0; k < ntokens; ++k)
563            if (bitset_test (LA[states[i]->lookaheadsp + j], j))            if (bitset_test (LA[states[i]->lookaheadsp + j], k))
564              fprintf (out, "   on %d (%s) -> rule %d\n",              fprintf (out, "   on %d (%s) -> rule %d\n",
565                       k, symbols[k]->tag,                       k, quotearg_style (escape_quoting_style, symbols[k]->tag),
566                       LArule[states[i]->lookaheadsp + j]->number - 1);                       LArule[states[i]->lookaheadsp + j]->number - 1);
567      }      }
568    fprintf (out, "Lookaheads: END\n");    fprintf (out, "Lookaheads: END\n");

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

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