- short *isp;
-
- printf ("\n\nn = %d\n\n", n);
- for (isp = itemset; isp < itemsetend; isp++)
- printf (" %d\n", *isp);
+ size_t i;
+ fprintf (stderr, "Closure: %s\n", title);
+ for (i = 0; i < size; ++i)
+ {
+ short *rp;
+ fprintf (stderr, " %2d: .", array[i]);
+ for (rp = &ritem[array[i]]; *rp > 0; ++rp)
+ fprintf (stderr, " %s", tags[*rp]);
+ fprintf (stderr, " (rule %d)\n", -*rp);
+ }
+ fputs ("\n\n", stderr);