- for (rhsp = ritem + rule_table[*sp].rhs; *rhsp > 0; ++rhsp)
- fprintf (stderr, " %s", tags[*rhsp]);
- fputc ('\n', stderr);
+ for (rhsp = &ritem[rules[*sp].rhs]; *rhsp >= 0; ++rhsp)
+ fprintf (stderr, " %s", symbols[*rhsp]->tag);
+ fprintf (stderr, " (rule %d)\n", -*rhsp - 1);