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.
This commit is contained in:
Akim Demaille
2008-12-31 12:35:32 +01:00
parent 88654b47c9
commit 49572920dd
2 changed files with 9 additions and 1 deletions

View File

@@ -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.

View 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.