- fprintf (stderr, "\t%s derives\n",
- quotearg_style (escape_quoting_style, symbols[i]->tag));
- for (j = 0; j < nrules + 1; j++)
- if (bitset_test (FDERIVES (i), j))
- {
- item_number_t *rhsp;
- fprintf (stderr, "\t\t%d:", j - 1);
- for (rhsp = rules[j].rhs; *rhsp >= 0; ++rhsp)
- fprintf (stderr, " %s",
- quotearg_style (escape_quoting_style,
- symbols[*rhsp]->tag));
- fputc ('\n', stderr);
- }
+ bitset_iterator iter;
+ fprintf (stderr, "\t%s derives\n", symbols[i]->tag);
+ BITSET_FOR_EACH (iter, FDERIVES (i), r, 0)
+ {
+ fprintf (stderr, "\t\t%3d ", r);
+ rule_rhs_print (&rules[r], stderr);
+ }