mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
lalr1.cc: factor the yytranslate_ invocation in make_SYMBOLS.
* data/c++.m4, data/lalr1.cc (parser::symbol_type): Change the constructor to take a token_type instead of the (internal) symbol number. Call yytranslate_. * data/variant.hh (b4_symbol_constructor_define_): Therefore, don't call yytranslate_ here.
This commit is contained in:
@@ -29,7 +29,7 @@ m4_define([b4_integral_parser_table_declare],
|
||||
])
|
||||
|
||||
# b4_integral_parser_table_define(TABLE-NAME, CONTENT, COMMENT)
|
||||
# ---------------------------------------------
|
||||
# -------------------------------------------------------------
|
||||
# Define "parser::yy<TABLE-NAME>_" which contents is CONTENT.
|
||||
m4_define([b4_integral_parser_table_define],
|
||||
[ const b4_int_type_for([$2])
|
||||
@@ -321,7 +321,7 @@ do { \
|
||||
/// The state.
|
||||
state_type state;
|
||||
|
||||
/// Return the type corresponding to this state.
|
||||
/// The type (corresponding to \a state).
|
||||
inline int type_get_ () const;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user