This commit is contained in:
Akim Demaille
2020-01-20 06:31:36 +01:00
parent 2cc361387c
commit f54a5b303b
2 changed files with 45 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
/* A Bison parser, made by GNU Bison 3.5.49-3790-dirty. */ /* A Bison parser, made by GNU Bison 3.5.1.51-6ada9. */
/* Bison implementation for Yacc-like parsers in C /* Bison implementation for Yacc-like parsers in C
@@ -48,7 +48,7 @@
#define YYBISON 1 #define YYBISON 1
/* Bison version. */ /* Bison version. */
#define YYBISON_VERSION "3.5.49-3790-dirty" #define YYBISON_VERSION "3.5.1.51-6ada9"
/* Skeleton name. */ /* Skeleton name. */
#define YYSKELETON_NAME "yacc.c" #define YYSKELETON_NAME "yacc.c"
@@ -505,19 +505,19 @@ union yyalloc
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_int16 yyrline[] = static const yytype_int16 yyrline[] =
{ {
0, 294, 294, 303, 304, 308, 309, 315, 319, 324, 0, 288, 288, 297, 298, 302, 303, 309, 313, 318,
325, 330, 331, 332, 333, 334, 339, 344, 345, 346, 319, 324, 325, 326, 327, 328, 333, 338, 339, 340,
347, 348, 349, 349, 350, 351, 352, 353, 354, 355, 341, 342, 343, 343, 344, 345, 346, 347, 348, 349,
356, 357, 361, 362, 371, 372, 376, 387, 391, 395, 350, 351, 355, 356, 365, 366, 370, 381, 385, 389,
403, 413, 414, 424, 425, 431, 444, 444, 449, 449, 397, 407, 408, 418, 419, 425, 438, 438, 443, 443,
454, 458, 468, 469, 470, 471, 475, 476, 481, 482, 448, 452, 462, 463, 464, 465, 469, 470, 475, 476,
486, 487, 491, 492, 493, 506, 515, 519, 523, 531, 480, 481, 485, 486, 487, 500, 509, 513, 517, 525,
532, 536, 549, 550, 555, 556, 557, 575, 579, 583, 526, 530, 543, 544, 549, 550, 551, 569, 573, 577,
591, 593, 598, 605, 615, 619, 623, 631, 636, 648, 585, 587, 592, 599, 609, 613, 617, 625, 630, 642,
649, 655, 656, 657, 664, 664, 672, 673, 674, 679, 643, 649, 650, 651, 658, 658, 666, 667, 668, 673,
682, 684, 686, 688, 690, 692, 694, 696, 698, 703, 676, 678, 680, 682, 684, 686, 688, 690, 692, 697,
704, 713, 737, 738, 739, 740, 752, 754, 781, 786, 698, 707, 731, 732, 733, 734, 746, 748, 775, 780,
787, 792, 800, 801 781, 786, 794, 795
}; };
#endif #endif
@@ -535,17 +535,18 @@ yysymbol_name (int yysymbol)
{ {
static const char *const yy_sname[] = static const char *const yy_sname[] =
{ {
"end of file", "error", "$undefined", "string", "translatable string", N_("end of file"), "error", "$undefined", N_("string"),
"%token", "%nterm", "%type", "%destructor", "%printer", "%left", N_("translatable string"), "%token", "%nterm", "%type", "%destructor",
"%right", "%nonassoc", "%precedence", "%prec", "%dprec", "%merge", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%prec",
"%code", "%default-prec", "%define", "%defines", "%error-verbose", "%dprec", "%merge", "%code", "%default-prec", "%define", "%defines",
"%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix",
"%initial-action", "%language", "%name-prefix", "%no-default-prec", "%glr-parser", "%initial-action", "%language", "%name-prefix",
"%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output",
"%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%pure-parser", "%require", "%skeleton", "%start", "%token-table",
"{...}", "%?{...}", "[identifier]", "character literal", ":", "epilogue", "%verbose", "%yacc", "{...}", "%?{...}", N_("[identifier]"),
"=", "identifier", "identifier:", "%%", "|", "%{...%}", ";", "<tag>", N_("character literal"), ":", N_("epilogue"), "=", N_("identifier"),
"<*>", "<>", "integer", "%param", "%union", "%empty", "$accept", "input", N_("identifier:"), "%%", "|", "%{...%}", ";", N_("<tag>"), "<*>", "<>",
N_("integer literal"), "%param", "%union", "%empty", "$accept", "input",
"prologue_declarations", "prologue_declaration", "$@1", "params", "prologue_declarations", "prologue_declaration", "$@1", "params",
"grammar_declaration", "code_props_type", "union_name", "grammar_declaration", "code_props_type", "union_name",
"symbol_declaration", "$@2", "$@3", "precedence_declarator", "tag.opt", "symbol_declaration", "$@2", "$@3", "precedence_declarator", "tag.opt",
@@ -557,7 +558,21 @@ yysymbol_name (int yysymbol)
"named_ref.opt", "variable", "value", "id", "id_colon", "symbol", "named_ref.opt", "variable", "value", "id", "id_colon", "symbol",
"string_as_id", "epilogue.opt", YY_NULLPTR "string_as_id", "epilogue.opt", YY_NULLPTR
}; };
return yy_sname[yysymbol]; /* YYTRANSLATABLE[SYMBOL-NUM] -- Whether YYTNAME[SYMBOL-NUM] is
internationalizable. */
static yytype_int8 yytranslatable[] =
{
1, 0, 0, 1, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1, 1, 0, 1, 0, 1, 1,
0, 0, 0, 0, 1, 0, 0, 1, 0, 0,
0
};
return (yysymbol < YYNTOKENS && yytranslatable[yysymbol]
? _(yy_sname[yysymbol])
: yy_sname[yysymbol]);
} }
#endif #endif
@@ -992,7 +1007,7 @@ tron (yyo);
{ fprintf (yyo, "<%s>", ((*yyvaluep).TAG)); } { fprintf (yyo, "<%s>", ((*yyvaluep).TAG)); }
break; break;
case 57: /* "integer" */ case 57: /* "integer literal" */
{ fprintf (yyo, "%d", ((*yyvaluep).INT)); } { fprintf (yyo, "%d", ((*yyvaluep).INT)); }
break; break;

View File

@@ -1,4 +1,4 @@
/* A Bison parser, made by GNU Bison 3.5.49-3790-dirty. */ /* A Bison parser, made by GNU Bison 3.5.1.51-6ada9. */
/* Bison interface for Yacc-like parsers in C /* Bison interface for Yacc-like parsers in C
@@ -160,7 +160,7 @@ union GRAM_STYPE
char* PROLOGUE; char* PROLOGUE;
/* code_props_type */ /* code_props_type */
code_props_type code_props_type; code_props_type code_props_type;
/* "integer" */ /* "integer literal" */
int INT; int INT;
/* int.opt */ /* int.opt */
int yytype_82; int yytype_82;