/[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.52 by akim, Sat Dec 29 14:16:16 2001 UTC revision 1.53 by akim, Sat Dec 29 14:18:52 2001 UTC
# Line 27  Line 27 
27  #include "reader.h"  #include "reader.h"
28  #include "types.h"  #include "types.h"
29  #include "LR0.h"  #include "LR0.h"
30    #include "symtab.h"
31  #include "gram.h"  #include "gram.h"
32  #include "complain.h"  #include "complain.h"
33  #include "lalr.h"  #include "lalr.h"
# Line 566  lookaheads_print (FILE *out) Line 567  lookaheads_print (FILE *out)
567          for (k = 0; k < ntokens; ++k)          for (k = 0; k < ntokens; ++k)
568            if (BITISSET (LA (state_table[i]->lookaheadsp + j), j))            if (BITISSET (LA (state_table[i]->lookaheadsp + j), j))
569              fprintf (out, "   on %d (%s) -> rule %d\n",              fprintf (out, "   on %d (%s) -> rule %d\n",
570                       k, tags[k],                       k, symbols[k]->tag,
571                       -LAruleno[state_table[i]->lookaheadsp + j] - 1);                       -LAruleno[state_table[i]->lookaheadsp + j] - 1);
572      }      }
573    fprintf (out, "Lookaheads: END\n");    fprintf (out, "Lookaheads: END\n");

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

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