X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/fa98bb3233f7f291d8efa2565288bc0597f92063..0fe9720964da510a2b359af390a3053aace65f9f:/src/closure.c?ds=sidebyside diff --git a/src/closure.c b/src/closure.c index ccd05650..4719c419 100644 --- a/src/closure.c +++ b/src/closure.c @@ -44,7 +44,7 @@ static bitsetv firsts = NULL; /* Retrieve the FDERIVES/FIRSTS sets of the nonterminals numbered Var. */ #define FDERIVES(Var) fderives[(Var) - ntokens] -#define FIRSTS(Var) firsts[(Var) - ntokens] +#define FIRSTS(Var) firsts[(Var) - ntokens] /*-----------------. @@ -77,12 +77,9 @@ print_firsts (void) for (i = ntokens; i < nsyms; i++) { bitset_iterator iter; - fprintf (stderr, "\t%s firsts\n", symbols[i]->tag); + fprintf (stderr, " %s firsts\n", symbols[i]->tag); BITSET_FOR_EACH (iter, FIRSTS (i), j, 0) - { - fprintf (stderr, "\t\t%s\n", - symbols[j + ntokens]->tag); - } + fprintf (stderr, " %s\n", symbols[j + ntokens]->tag); } fprintf (stderr, "\n\n"); } @@ -98,10 +95,10 @@ print_fderives (void) for (i = ntokens; i < nsyms; i++) { bitset_iterator iter; - fprintf (stderr, "\t%s derives\n", symbols[i]->tag); + fprintf (stderr, " %s derives\n", symbols[i]->tag); BITSET_FOR_EACH (iter, FDERIVES (i), r, 0) { - fprintf (stderr, "\t\t%3d ", r); + fprintf (stderr, " %3d ", r); rule_rhs_print (&rules[r], stderr); fprintf (stderr, "\n"); }