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" |
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"); |