mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
glr2.cc: don't prepare for subclassing
I am not aware of people subclassing the parser class, and I fail to see how this could be useful. Rather than leaving a badly baked feature (as in glr.cc currently), let's not support it at all, until someone comes and explains why and how it would be useful. * data/skeletons/glr2.cc (parser): We need no virtual function members.
This commit is contained in:
@@ -207,7 +207,7 @@ m4_define([b4_shared_declarations],
|
|||||||
|
|
||||||
/// Build a parser object.
|
/// Build a parser object.
|
||||||
]b4_parser_class[ (]b4_parse_param_decl[);
|
]b4_parser_class[ (]b4_parse_param_decl[);
|
||||||
virtual ~]b4_parser_class[ ();
|
~]b4_parser_class[ ();
|
||||||
|
|
||||||
/// Parse. An alias for parse ().
|
/// Parse. An alias for parse ().
|
||||||
/// \returns 0 iff parsing succeeded.
|
/// \returns 0 iff parsing succeeded.
|
||||||
@@ -215,7 +215,7 @@ m4_define([b4_shared_declarations],
|
|||||||
|
|
||||||
/// Parse.
|
/// Parse.
|
||||||
/// \returns 0 iff parsing succeeded.
|
/// \returns 0 iff parsing succeeded.
|
||||||
virtual int parse ();
|
int parse ();
|
||||||
|
|
||||||
#if ]b4_api_PREFIX[DEBUG
|
#if ]b4_api_PREFIX[DEBUG
|
||||||
/// The current debugging stream.
|
/// The current debugging stream.
|
||||||
@@ -234,7 +234,7 @@ m4_define([b4_shared_declarations],
|
|||||||
/// Report a syntax error.]b4_locations_if([[
|
/// Report a syntax error.]b4_locations_if([[
|
||||||
/// \param loc where the syntax error is found.]])[
|
/// \param loc where the syntax error is found.]])[
|
||||||
/// \param msg a description of the syntax error.
|
/// \param msg a description of the syntax error.
|
||||||
virtual void error (]b4_locations_if([[const location_type& loc, ]])[const std::string& msg);
|
void error (]b4_locations_if([[const location_type& loc, ]])[const std::string& msg);
|
||||||
|
|
||||||
]b4_parse_error_bmatch(
|
]b4_parse_error_bmatch(
|
||||||
[custom\|detailed],
|
[custom\|detailed],
|
||||||
@@ -260,16 +260,16 @@ m4_define([b4_shared_declarations],
|
|||||||
/// \param yykind The symbol kind.
|
/// \param yykind The symbol kind.
|
||||||
/// \param yyval Its semantic value.]b4_locations_if([[
|
/// \param yyval Its semantic value.]b4_locations_if([[
|
||||||
/// \param yyloc Its location.]])[
|
/// \param yyloc Its location.]])[
|
||||||
virtual void yy_symbol_value_print_ (symbol_kind_type yykind,
|
void yy_symbol_value_print_ (symbol_kind_type yykind,
|
||||||
const value_type& yyval]b4_locations_if([[,
|
const value_type& yyval]b4_locations_if([[,
|
||||||
const location_type& yyloc]])[) const;
|
const location_type& yyloc]])[) const;
|
||||||
/// \brief Report a symbol on the debug stream.
|
/// \brief Report a symbol on the debug stream.
|
||||||
/// \param yykind The symbol kind.
|
/// \param yykind The symbol kind.
|
||||||
/// \param yyval Its semantic value.]b4_locations_if([[
|
/// \param yyval Its semantic value.]b4_locations_if([[
|
||||||
/// \param yyloc Its location.]])[
|
/// \param yyloc Its location.]])[
|
||||||
virtual void yy_symbol_print_ (symbol_kind_type yykind,
|
void yy_symbol_print_ (symbol_kind_type yykind,
|
||||||
const value_type& yyval]b4_locations_if([[,
|
const value_type& yyval]b4_locations_if([[,
|
||||||
const location_type& yyloc]])[) const;
|
const location_type& yyloc]])[) const;
|
||||||
private:
|
private:
|
||||||
/// Debug stream.
|
/// Debug stream.
|
||||||
std::ostream* yycdebug_;
|
std::ostream* yycdebug_;
|
||||||
|
|||||||
Reference in New Issue
Block a user