/[bison]/bison/src/reduce.c
ViewVC logotype

Diff of /bison/src/reduce.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by akim, Mon Nov 19 10:33:40 2001 UTC revision 1.25 by akim, Mon Nov 19 10:37:58 2001 UTC
# Line 438  reduce_output (FILE *out) Line 438  reduce_output (FILE *out)
438      fprintf (out, "\n\n");      fprintf (out, "\n\n");
439  }  }
440    
 #if TRACE  
441  static void  static void
442  dump_grammar (FILE *out)  dump_grammar (FILE *out)
443  {  {
# Line 478  dump_grammar (FILE *out) Line 477  dump_grammar (FILE *out)
477      }      }
478    fprintf (out, "\n\n");    fprintf (out, "\n\n");
479  }  }
 #endif  
480    
481    
482    
# Line 539  reduce_grammar (void) Line 537  reduce_grammar (void)
537             tags[start_symbol]);             tags[start_symbol]);
538    
539    reduce_grammar_tables ();    reduce_grammar_tables ();
540  #if TRACE  
541    dump_grammar (stderr);    if (trace_flag)
542  #endif      {
543          dump_grammar (stderr);
544    if (statistics_flag)  
545      fprintf (stderr, _("reduced %s defines %d terminal%s, %d nonterminal%s\        fprintf (stderr, "reduced %s defines %d terminals, %d nonterminals\
546  , and %d production%s.\n"),  , and %d productions.\n",
547               infile,                 infile, ntokens, nvars, nrules);
548               ntokens,      }
              (ntokens == 1 ? "" : "s"),  
              nvars,  
              (nvars == 1 ? "" : "s"),  
              nrules,  
              (nrules == 1 ? "" : "s"));  
549  }  }
550    
551    

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26