* data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in

C++ parsers.
(yy::b4_name::parse): Use print_.
This commit is contained in:
Robert Anisko
2002-02-07 14:41:46 +00:00
parent 762a801e00
commit 4aacc3a71d
2 changed files with 8 additions and 0 deletions

View File

@@ -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> 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
* data/bison.c++ (yy::b4_name::parse): Error recovery is back. * data/bison.c++ (yy::b4_name::parse): Error recovery is back.

View File

@@ -81,6 +81,7 @@ namespace yy
private: private:
virtual void error_ (); virtual void error_ ();
virtual void print_ ();
/* Call to lexical analyser. */ /* Call to lexical analyser. */
virtual virtual
@@ -229,6 +230,7 @@ yy::b4_name::parse ()
if (debug_) if (debug_)
{ {
YYFPRINTF (stderr, "Next token is %d (%s", looka, name_[[ilooka]]); YYFPRINTF (stderr, "Next token is %d (%s", looka, name_[[ilooka]]);
print_ ();
YYFPRINTF (stderr, ")\n"); YYFPRINTF (stderr, ")\n");
} }
#endif #endif