223 |
/* Count the number of lookaheads corresponding to this rule. */ |
/* Count the number of lookaheads corresponding to this rule. */ |
224 |
for (j = 0; j < state->nlookaheads; ++j) |
for (j = 0; j < state->nlookaheads; ++j) |
225 |
BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0) |
BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0) |
226 |
if (state->lookaheads_rule[j]->number == rule->number) |
if (state->lookaheads_rule[j] == rule) |
227 |
nlookaheads++; |
nlookaheads++; |
228 |
|
|
229 |
/* Print them if there are. */ |
/* Print them if there are. */ |
232 |
fprintf (out, " ["); |
fprintf (out, " ["); |
233 |
for (j = 0; j < state->nlookaheads; ++j) |
for (j = 0; j < state->nlookaheads; ++j) |
234 |
BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0) |
BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0) |
235 |
if (state->lookaheads_rule[j]->number == rule->number) |
if (state->lookaheads_rule[j] == rule) |
236 |
fprintf (out, "%s%s", |
fprintf (out, "%s%s", |
237 |
symbols[k]->tag, |
symbols[k]->tag, |
238 |
--nlookaheads ? ", " : ""); |
--nlookaheads ? ", " : ""); |