mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
b4_public_types_declare.
* data/c++.m4 (b4_public_types_declare): New. * data/glr.cc, data/lalr1.cc: Use it.
This commit is contained in:
@@ -388,21 +388,7 @@ do { \
|
||||
class ]b4_parser_class_name[
|
||||
{
|
||||
public:
|
||||
#ifndef YYSTYPE
|
||||
]b4_semantic_type_declare[
|
||||
#else
|
||||
typedef YYSTYPE semantic_type;
|
||||
#endif]b4_locations_if([
|
||||
/// Symbol locations.
|
||||
typedef b4_percent_define_get([[location_type]]) location_type;])[
|
||||
/// Tokens.
|
||||
struct token
|
||||
{
|
||||
]b4_token_enums(b4_tokens)[
|
||||
};
|
||||
/// Token type.
|
||||
typedef token::yytokentype token_type;
|
||||
|
||||
]b4_public_types_declare[
|
||||
/// Build a parser object.
|
||||
]b4_parser_class_name[ (]b4_parse_param_decl[);
|
||||
virtual ~]b4_parser_class_name[ ();
|
||||
|
||||
Reference in New Issue
Block a user