bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fast bug fix in bison


From: Bamford, Harold
Subject: fast bug fix in bison
Date: Mon, 7 Jan 2002 11:58:36 -0500

Greetings,
 
There is a small typo in the latest released version of bison (1.30-1) in src/print.c:
 
  /* rule # : LHS -> RHS */
  fprintf (out, "\n%s\n", _("Grammar"));
  for (i = 1; i <= nrules; i++)
    /* Don't print rules disabled in reduce_grammar_tables.  */
    if (rlhs[i] >= 0)
      {
 fprintf (out, _("\nrule %-4d %s ->"), i, tags[rlhs[i]]);
 rule = &ritem[rrhs[i]];
 if (*rule > 0)
   while (*rule > 0)
     fprintf (out, " %s", tags[*rule++]);
 else
   fprintf (out, "  /* %s */\n", _("empty"));
      }
On line 234, where the rule is being printed, the leading "\n" is missing. This makes the *.output file almost unreadable.
 
Nice work on this program!
 
-- Harold Bamford
 





- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]