* data/c.m4 (b4_token_enum): Always define the enum of tokens,

even if empty.
* data/lalrl1.cc, data/glr.cc (parser::token_type): New.
* doc/bison.texinfo (Calc++ Scanner): Use it.
This commit is contained in:
Akim Demaille
2006-03-10 13:30:19 +00:00
parent 6e0f828781
commit c095d689c3
5 changed files with 24 additions and 9 deletions

View File

@@ -312,6 +312,8 @@ b4_syncline([@oline@], [@ofile@])
{
]b4_token_enums(b4_tokens)[
};
/// Token type.
typedef token::yytokentype token_type;
/// Build a parser object.
]b4_parser_class_name[ (]b4_parse_param_decl[);