mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
* lib/libiberty.h: New.
* lib: Update the bitset implementation from upstream. * src/closure.c, src/lalr.c, src/output.c, src/print_graph.c, * src/state.c: Use BITSET_FOR_EACH, not BITSET_EXECUTE. * src/main.c: Adjust bitset stats calls.
This commit is contained in:
@@ -420,16 +420,18 @@ lookaheads_print (FILE *out)
|
||||
fprintf (out, "Lookaheads: BEGIN\n");
|
||||
for (i = 0; i < nstates; ++i)
|
||||
{
|
||||
bitset_iterator iter;
|
||||
|
||||
fprintf (out, "State %d: %d lookaheads\n",
|
||||
i, states[i]->nlookaheads);
|
||||
|
||||
for (j = 0; j < states[i]->nlookaheads; ++j)
|
||||
BITSET_EXECUTE (states[i]->lookaheads[j], 0, k,
|
||||
BITSET_FOR_EACH (iter, states[i]->lookaheads[j], k, 0)
|
||||
{
|
||||
fprintf (out, " on %d (%s) -> rule %d\n",
|
||||
k, symbols[k]->tag,
|
||||
states[i]->lookaheads_rule[j]->number - 1);
|
||||
});
|
||||
};
|
||||
}
|
||||
fprintf (out, "Lookaheads: END\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user