-/* A Bison parser, made by GNU Bison 2.4.1.82-67f8. */
+/* A Bison parser, made by GNU Bison 2.4.1.86-ae09ec. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.4.1.82-67f8"
+#define YYBISON_VERSION "2.4.1.86-ae09ec"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
#include "getargs.h"
#include "gram.h"
#include "muscle_tab.h"
+#include "named-ref.h"
#include "quotearg.h"
#include "reader.h"
#include "symlist.h"
-#include "named-ref.h"
#include "scan-gram.h"
#include "scan-code.h"
/* Line 190 of yacc.c */
-#line 156 "../../bison-2.5/src/parse-gram.c"
+#line 156 "../../branch-2.5/src/parse-gram.c"
/* Enabling traces. */
#ifndef YYDEBUG
/* Line 215 of yacc.c */
-#line 322 "../../bison-2.5/src/parse-gram.c"
+#line 322 "../../branch-2.5/src/parse-gram.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
/* Line 265 of yacc.c */
-#line 347 "../../bison-2.5/src/parse-gram.c"
+#line 347 "../../branch-2.5/src/parse-gram.c"
#ifdef short
# undef short
442, 443, 448, 450, 455, 456, 460, 461, 462, 463,
468, 473, 478, 484, 490, 501, 502, 511, 512, 518,
519, 520, 527, 527, 532, 533, 534, 539, 541, 543,
- 545, 547, 549, 555, 557, 569, 570, 575, 576, 585,
- 605, 607, 616, 621, 622, 627, 634, 636
+ 545, 547, 549, 554, 556, 567, 568, 573, 574, 583,
+ 603, 605, 614, 619, 620, 625, 632, 634
};
#endif
"\"%start\"", "\"%token-table\"", "\"%verbose\"", "\"%yacc\"",
"\"{...}\"", "\"char\"", "\"epilogue\"", "\"=\"", "\"identifier\"",
"\"identifier:\"", "\"%%\"", "\"|\"", "\"%{...%}\"", "\";\"", "\"type\"",
- "\"<*>\"", "\"<>\"", "\"[id]\"", "\"%union\"", "$accept", "input",
- "prologue_declarations", "prologue_declaration", "grammar_declaration",
- "union_name", "symbol_declaration", "$@1", "$@2",
+ "\"<*>\"", "\"<>\"", "\"[identifier]\"", "\"%union\"", "$accept",
+ "input", "prologue_declarations", "prologue_declaration",
+ "grammar_declaration", "union_name", "symbol_declaration", "$@1", "$@2",
"precedence_declaration", "precedence_declarator", "type.opt",
"symbols.prec", "symbol.prec", "symbols.1", "generic_symlist",
"generic_symlist_item", "symbol_def", "symbol_defs.1", "grammar",
{ fputs (quotearg_style (c_quoting_style, (yyvaluep->chars)), stderr); };
/* Line 716 of yacc.c */
-#line 1043 "../../bison-2.5/src/parse-gram.c"
+#line 1043 "../../branch-2.5/src/parse-gram.c"
break;
case 4: /* "\"integer\"" */
{ fprintf (stderr, "%d", (yyvaluep->integer)); };
/* Line 716 of yacc.c */
-#line 1052 "../../bison-2.5/src/parse-gram.c"
+#line 1052 "../../branch-2.5/src/parse-gram.c"
break;
case 43: /* "\"{...}\"" */
{ fprintf (stderr, "{\n%s\n}", (yyvaluep->code)); };
/* Line 716 of yacc.c */
-#line 1061 "../../bison-2.5/src/parse-gram.c"
+#line 1061 "../../branch-2.5/src/parse-gram.c"
break;
case 44: /* "\"char\"" */
{ fputs (char_name ((yyvaluep->character)), stderr); };
/* Line 716 of yacc.c */
-#line 1070 "../../bison-2.5/src/parse-gram.c"
+#line 1070 "../../branch-2.5/src/parse-gram.c"
break;
case 45: /* "\"epilogue\"" */
{ fprintf (stderr, "{\n%s\n}", (yyvaluep->chars)); };
/* Line 716 of yacc.c */
-#line 1079 "../../bison-2.5/src/parse-gram.c"
+#line 1079 "../../branch-2.5/src/parse-gram.c"
break;
case 47: /* "\"identifier\"" */
{ fputs ((yyvaluep->uniqstr), stderr); };
/* Line 716 of yacc.c */
-#line 1088 "../../bison-2.5/src/parse-gram.c"
+#line 1088 "../../branch-2.5/src/parse-gram.c"
break;
case 48: /* "\"identifier:\"" */
{ fprintf (stderr, "%s:", (yyvaluep->uniqstr)); };
/* Line 716 of yacc.c */
-#line 1097 "../../bison-2.5/src/parse-gram.c"
+#line 1097 "../../branch-2.5/src/parse-gram.c"
break;
case 51: /* "\"%{...%}\"" */
{ fprintf (stderr, "{\n%s\n}", (yyvaluep->chars)); };
/* Line 716 of yacc.c */
-#line 1106 "../../bison-2.5/src/parse-gram.c"
+#line 1106 "../../branch-2.5/src/parse-gram.c"
break;
case 53: /* "\"type\"" */
{ fprintf (stderr, "<%s>", (yyvaluep->uniqstr)); };
/* Line 716 of yacc.c */
-#line 1115 "../../bison-2.5/src/parse-gram.c"
+#line 1115 "../../branch-2.5/src/parse-gram.c"
break;
case 84: /* "variable" */
{ fputs ((yyvaluep->uniqstr), stderr); };
/* Line 716 of yacc.c */
-#line 1124 "../../bison-2.5/src/parse-gram.c"
+#line 1124 "../../branch-2.5/src/parse-gram.c"
break;
case 85: /* "content.opt" */
{ fprintf (stderr, "{\n%s\n}", (yyvaluep->chars)); };
/* Line 716 of yacc.c */
-#line 1133 "../../bison-2.5/src/parse-gram.c"
+#line 1133 "../../branch-2.5/src/parse-gram.c"
break;
case 86: /* "braceless" */
{ fprintf (stderr, "{\n%s\n}", (yyvaluep->chars)); };
/* Line 716 of yacc.c */
-#line 1142 "../../bison-2.5/src/parse-gram.c"
+#line 1142 "../../branch-2.5/src/parse-gram.c"
break;
case 87: /* "id" */
{ fprintf (stderr, "%s", (yyvaluep->symbol)->tag); };
/* Line 716 of yacc.c */
-#line 1151 "../../bison-2.5/src/parse-gram.c"
+#line 1151 "../../branch-2.5/src/parse-gram.c"
break;
case 88: /* "id_colon" */
{ fprintf (stderr, "%s:", (yyvaluep->symbol)->tag); };
/* Line 716 of yacc.c */
-#line 1160 "../../bison-2.5/src/parse-gram.c"
+#line 1160 "../../branch-2.5/src/parse-gram.c"
break;
case 89: /* "symbol" */
{ fprintf (stderr, "%s", (yyvaluep->symbol)->tag); };
/* Line 716 of yacc.c */
-#line 1169 "../../bison-2.5/src/parse-gram.c"
+#line 1169 "../../branch-2.5/src/parse-gram.c"
break;
case 90: /* "string_as_id" */
{ fprintf (stderr, "%s", (yyvaluep->symbol)->tag); };
/* Line 716 of yacc.c */
-#line 1178 "../../bison-2.5/src/parse-gram.c"
+#line 1178 "../../branch-2.5/src/parse-gram.c"
break;
default:
break;
}
/* Line 1243 of yacc.c */
-#line 1707 "../../bison-2.5/src/parse-gram.c"
+#line 1707 "../../branch-2.5/src/parse-gram.c"
yylsp[0] = yylloc;
goto yysetstate;
case 93:
/* Line 1456 of yacc.c */
-#line 555 "parse-gram.y"
+#line 554 "parse-gram.y"
{ (yyval.named_ref) = 0; }
break;
case 94:
/* Line 1456 of yacc.c */
-#line 558 "parse-gram.y"
+#line 556 "parse-gram.y"
{ (yyval.named_ref) = named_ref_new((yyvsp[(1) - (1)].uniqstr), (yylsp[(1) - (1)])); }
break;
case 96:
/* Line 1456 of yacc.c */
-#line 570 "parse-gram.y"
+#line 568 "parse-gram.y"
{ (yyval.uniqstr) = uniqstr_new ((yyvsp[(1) - (1)].chars)); }
break;
case 97:
/* Line 1456 of yacc.c */
-#line 575 "parse-gram.y"
+#line 573 "parse-gram.y"
{ (yyval.chars) = ""; }
break;
case 99:
/* Line 1456 of yacc.c */
-#line 586 "parse-gram.y"
+#line 584 "parse-gram.y"
{
code_props plain_code;
(yyvsp[(1) - (1)].code)[strlen ((yyvsp[(1) - (1)].code)) - 1] = '\n';
case 100:
/* Line 1456 of yacc.c */
-#line 606 "parse-gram.y"
+#line 604 "parse-gram.y"
{ (yyval.symbol) = symbol_from_uniqstr ((yyvsp[(1) - (1)].uniqstr), (yylsp[(1) - (1)])); }
break;
case 101:
/* Line 1456 of yacc.c */
-#line 608 "parse-gram.y"
+#line 606 "parse-gram.y"
{
(yyval.symbol) = symbol_get (char_name ((yyvsp[(1) - (1)].character)), (yylsp[(1) - (1)]));
symbol_class_set ((yyval.symbol), token_sym, (yylsp[(1) - (1)]), false);
case 102:
/* Line 1456 of yacc.c */
-#line 616 "parse-gram.y"
+#line 614 "parse-gram.y"
{ (yyval.symbol) = symbol_from_uniqstr ((yyvsp[(1) - (1)].uniqstr), (yylsp[(1) - (1)])); }
break;
case 105:
/* Line 1456 of yacc.c */
-#line 628 "parse-gram.y"
+#line 626 "parse-gram.y"
{
(yyval.symbol) = symbol_get (quotearg_style (c_quoting_style, (yyvsp[(1) - (1)].chars)), (yylsp[(1) - (1)]));
symbol_class_set ((yyval.symbol), token_sym, (yylsp[(1) - (1)]), false);
case 107:
/* Line 1456 of yacc.c */
-#line 637 "parse-gram.y"
+#line 635 "parse-gram.y"
{
code_props plain_code;
code_props_plain_init (&plain_code, (yyvsp[(2) - (2)].chars), (yylsp[(2) - (2)]));
/* Line 1456 of yacc.c */
-#line 2650 "../../bison-2.5/src/parse-gram.c"
+#line 2650 "../../branch-2.5/src/parse-gram.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
/* Line 1676 of yacc.c */
-#line 647 "parse-gram.y"
+#line 645 "parse-gram.y"