diff --git a/ChangeLog b/ChangeLog index 9abe7d44..089f9d97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-02-19 Akim Demaille + + 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 Comment changes. diff --git a/data/lalr1.cc b/data/lalr1.cc index 86e6fd08..40405ead 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -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.