]> git.saurik.com Git - bison.git/commitdiff
* data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
authorRobert Anisko <robert@lrde.epita.fr>
Thu, 7 Feb 2002 14:41:46 +0000 (14:41 +0000)
committerRobert Anisko <robert@lrde.epita.fr>
Thu, 7 Feb 2002 14:41:46 +0000 (14:41 +0000)
C++ parsers.
(yy::b4_name::parse): Use print_.

ChangeLog
data/bison.c++

index 0a2ec091c4bf69866f2cac798378ae2f1d8cd6db..b3a09a5bcc64521ad92e5eb1c54ad94e816c342c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-07  Robert Anisko  <robert@lrde.epita.fr>
+
+       * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
+       C++ parsers.
+       (yy::b4_name::parse): Use print_.
+
 2002-02-07  Robert Anisko  <robert@lrde.epita.fr>
 
        * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
index 7680ec428ee8be9da526c316cdbcf61163bc2946..0541c8726032529ad921666f80465d5b4dc2f053 100644 (file)
@@ -81,6 +81,7 @@ namespace yy
   private:
 
     virtual void error_ ();
+    virtual void print_ ();
 
     /* Call to lexical analyser.  */
     virtual
@@ -229,6 +230,7 @@ yy::b4_name::parse ()
       if (debug_)
        {
          YYFPRINTF (stderr, "Next token is %d (%s", looka, name_[[ilooka]]);
+         print_ ();
          YYFPRINTF (stderr, ")\n");
        }
 #endif