]> git.saurik.com Git - bison.git/commitdiff
Make yyparser::error public.
authorAkim Demaille <demaille@gostai.com>
Wed, 31 Dec 2008 11:35:32 +0000 (12:35 +0100)
committerAkim Demaille <demaille@gostai.com>
Thu, 19 Feb 2009 21:16:19 +0000 (22:16 +0100)
* data/lalr1.cc: here.
There is no good reason to keep it private (and it is convenient
to use it from the scanner for instance).  It is already public in
glr.cc.

ChangeLog
data/lalr1.cc

index 9abe7d44dc63db489ec3ae114f346ad629cbfbca..089f9d971694b5442755dbd39594e48ebbf5b724 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-02-19  Akim Demaille  <demaille@gostai.com>
+
+       Make yyparser::error public.
+       * data/lalr1.cc: here.
+       There is no good reason to keep it private (and it is convenient
+       to use it from the scanner for instance).  It is already public in
+       glr.cc.
+
 2009-02-19  Akim Demaille  <demaille@gostai.com>
 
        Comment changes.
index 86e6fd086db3d0eb146a87bdaf8c1d4dbfb6f479..40405ead556d78064b40243413fb09dd1cc86f6c 100644 (file)
@@ -439,12 +439,12 @@ m4_ifdef([b4_stype],
     void set_debug_level (debug_level_type l);
 #endif
 
-  private:
     /// Report a syntax error.]b4_locations_if([
     /// \param loc    where the syntax error is found.])[
     /// \param msg    a description of the syntax error.
     virtual void error (]b4_locations_if([const location_type& loc, ])[const std::string& msg);
 
+  private:
     /// Generate an error message.
     /// \param state   the state where the error occurred.
     /// \param tok     the lookahead token.