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