From 49572920dd5d38427ee127d2b768c5a37c292b6d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 31 Dec 2008 12:35:32 +0100 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ data/lalr1.cc | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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. -- 2.45.2