mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user