mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
Prepare the convergence bw C style and Java table generation.
* data/bison.m4 (b4_tables_map, b4_tables_declare) (b4_tables_define): Rename as... (b4_integral_parser_tables_map, b4_parser_tables_declare) (b4_parser_tables_define): these. * data/c.m4 (b4_table_define): Rename as... (b4_integral_parser_table_define): this. * data/lalr1.cc: Adjust. (b4_table_define, b4_table_declare): Rename as... (b4_integral_parser_table_define) (b4_integral_parser_table_declare): these. (yyrline_): Move the comment where it is actually used. * data/yacc.c: Adjust. (yyrline): Use b4_integral_parser_table_define.
This commit is contained in:
@@ -501,11 +501,8 @@ static const ]b4_int_type_for([b4_translate])[ yytranslate[] =
|
||||
};
|
||||
|
||||
#if YYDEBUG
|
||||
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
||||
static const ]b4_int_type_for([b4_rline])[ yyrline[] =
|
||||
{
|
||||
]b4_rline[
|
||||
};
|
||||
]b4_integral_parser_table_define([rline], [b4_rline],
|
||||
[YYRLINE[YYN] -- Source line where rule number YYN was defined.])[
|
||||
#endif
|
||||
|
||||
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
|
||||
@@ -530,7 +527,7 @@ static const ]b4_int_type_for([b4_toknum])[ yytoknum[] =
|
||||
|
||||
#define YYTABLE_NINF ]b4_table_ninf[
|
||||
|
||||
]b4_tables_define[
|
||||
]b4_parser_tables_define[
|
||||
|
||||
#define yyerrok (yyerrstatus = 0)
|
||||
#define yyclearin (yychar = YYEMPTY)
|
||||
|
||||
Reference in New Issue
Block a user