-
-
-
-#ifdef DEBUG
-
-print_closure(n)
-int n;
-{
- register short *isp;
-
- printf("\n\nn = %d\n\n", n);
- for (isp = itemset; isp < itemsetend; isp++)
- printf(" %d\n", *isp);
-}
-
-
-void
-print_firsts (void)
-{
- register int i;
- register int j;
- register unsigned *rowp;
-
- printf(_("\n\n\nFIRSTS\n\n"));
-
- for (i = ntokens; i < nsyms; i++)
- {
- printf(_("\n\n%s firsts\n\n"), tags[i]);
-
- rowp = firsts + ((i - ntokens) * varsetsize);
-
- for (j = 0; j < nvars; j++)
- if (BITISSET (rowp, j))
- printf(" %s\n", tags[j + ntokens]);
- }
-}
-
-
-void
-print_fderives (void)
-{
- register int i;
- register int j;
- register unsigned *rp;
-
- printf(_("\n\n\nFDERIVES\n"));
-
- for (i = ntokens; i < nsyms; i++)
- {
- printf(_("\n\n%s derives\n\n"), tags[i]);
- rp = fderives + i * rulesetsize;
-
- for (j = 0; j <= nrules; j++)
- if (BITISSET (rp, j))
- printf(" %d\n", j);
- }
-
- fflush(stdout);
-}
-
-#endif