]> git.saurik.com Git - bison.git/blobdiff - src/print_graph.c
Fix wording problem in comment.
[bison.git] / src / print_graph.c
index c92ae3577fdf89cf621484f9f98fc6073f998b2e..5923b7cece85b0ed2f587a03071d23fbef1bbce7 100644 (file)
@@ -1,6 +1,6 @@
 /* Output a VCG description on generated parser, for Bison,
 
-   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
 
@@ -88,24 +88,25 @@ print_core (struct obstack *oout, state *s)
       for (/* Nothing */; *sp >= 0; ++sp)
        obstack_fgrow1 (oout, " %s", symbols[*sp]->tag);
 
-      /* Experimental feature: display the lookaheads. */
-      if (report_flag & report_lookaheads)
+      /* Experimental feature: display the look-ahead tokens. */
+      if (report_flag & report_look_ahead_tokens)
        {
          /* Find the reduction we are handling.  */
          reductions *reds = s->reductions;
          int redno = state_reduction_find (s, &rules[r]);
 
          /* Print them if there are.  */
-         if (reds->lookaheads && redno != -1)
+         if (reds->look_ahead_tokens && redno != -1)
            {
              bitset_iterator biter;
              int k;
-             int not_first = 0;
+             char const *sep = "";
              obstack_sgrow (oout, "[");
-             BITSET_FOR_EACH (biter, reds->lookaheads[redno], k, 0)
-               obstack_fgrow2 (oout, "%s%s",
-                               not_first++ ? ", " : "",
-                               symbols[k]->tag);
+             BITSET_FOR_EACH (biter, reds->look_ahead_tokens[redno], k, 0)
+               {
+                 obstack_fgrow2 (oout, "%s%s", sep, symbols[k]->tag);
+                 sep = ", ";
+               }
              obstack_sgrow (oout, "]");
            }
        }
@@ -211,7 +212,6 @@ print_graph (void)
 
   static_graph.port_sharing = no;
   static_graph.finetuning = yes;
-  static_graph.long_straight_phase = yes;
   static_graph.priority_phase = yes;
   static_graph.splines = yes;