3 m4_define_default([b4_input_suffix], [.y])
5 m4_define_default([b4_output_parser_suffix],
6 [m4_translit(b4_input_suffix, [yY], [cC])])
8 m4_define_default([b4_output_parser_name],
9 [b4_output_prefix[]b4_output_infix[]b4_output_parser_suffix[]])
12 m4_define_default([b4_output_header_suffix],
13 [m4_translit(b4_input_suffix, [yY], [hH])])
15 m4_define_default([b4_output_header_name],
16 [b4_output_prefix[]b4_output_infix[]b4_output_header_suffix[]])
18 m4_define_default([b4_header_guard],
19 [m4_bpatsubst(m4_toupper([BISON_]b4_output_header_name),
20 [[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]], [_])])
23 # b4_token_defines(TOKEN-NAME, TOKEN-NUMBER)
24 # ------------------------------------------
25 # Output the definition of this token as #define.
26 m4_define([b4_token_define],
31 # b4_token_defines(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)
32 # -------------------------------------------------------
33 # Output the definition of the tokens as #define.
34 m4_define([b4_token_defines],
35 [m4_map([b4_token_define], [$@])])
39 #output "b4_output_parser_name"
40 /* A Bison parser, made from b4_filename
41 by GNU bison b4_version. */
43 /* Skeleton output parser for Bison,
44 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
47 This program is free software; you can redistribute it and/or modify
48 it under the terms of the GNU General Public License as published by
49 the Free Software Foundation; either version 2, or (at your option)
52 This program is distributed in the hope that it will be useful,
53 but WITHOUT ANY WARRANTY; without even the implied warranty of
54 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55 GNU General Public License for more details.
57 You should have received a copy of the GNU General Public License
58 along with this program; if not, write to the Free Software
59 Foundation, Inc., 59 Temple Place - Suite 330,
60 Boston, MA 02111-1307, USA. */
62 /* As a special exception, when this file is copied by Bison into a
63 Bison output file, you may use that output file without restriction.
64 This special exception was added by the Free Software Foundation
65 in version 1.24 of Bison. */
67 /* This is the parser code that is written into each bison parser when
68 the %semantic_parser declaration is not specified in the grammar.
69 It was written by Richard Stallman by simplifying the hairy parser
70 used when %semantic_parser is specified. */
72 /* Identify Bison output. */
76 #define YYPURE b4_pure
78 /* Using locations. */
79 #define YYLSP_NEEDED b4_locations_flag
81 m4_if(b4_prefix[], [yy], [],
82 [/* If NAME_PREFIX is specified substitute the variables and functions
84 #define yyparse b4_prefix[]parse
85 #define yylex b4_prefix[]lex
86 #define yyerror b4_prefix[]error
87 #define yylval b4_prefix[]lval
88 #define yychar b4_prefix[]char
89 #define yydebug b4_prefix[]debug
90 #define yynerrs b4_prefix[]nerrs
92 # define yylloc b4_prefix[]lloc
96 /* Copy the user declarations. */
99 /* Enabling traces. */
101 # define YYDEBUG b4_debug
104 /* Enabling verbose error messages. */
105 #ifdef YYERROR_VERBOSE
106 # undef YYERROR_VERBOSE
107 # define YYERROR_VERBOSE 1
109 # define YYERROR_VERBOSE b4_error_verbose
113 typedef b4_stype yystype;
114 # define YYSTYPE yystype
118 typedef struct yyltype
125 # define YYLTYPE b4_ltype
128 /* Line __line__ of __file__. */
129 #line __oline__ "b4_output_parser_name"
131 /* All symbols defined below should begin with yy or YY, to avoid
132 infringing on user name space. This should be done even for local
133 variables, as they might otherwise be expanded by user macros.
134 There are some unavoidable exceptions within include files to
135 define necessary library symbols; they are noted "INFRINGES ON
136 USER NAME SPACE" below. */
138 #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
140 /* The parser invokes alloca or malloc; define the necessary symbols. */
142 # if YYSTACK_USE_ALLOCA
143 # define YYSTACK_ALLOC alloca
145 # ifndef YYSTACK_USE_ALLOCA
146 # if defined (alloca) || defined (_ALLOCA_H)
147 # define YYSTACK_ALLOC alloca
150 # define YYSTACK_ALLOC __builtin_alloca
156 # ifdef YYSTACK_ALLOC
157 /* Pacify GCC's `empty if-body' warning. */
158 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
160 # if defined (__STDC__) || defined (__cplusplus)
161 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
162 # define YYSIZE_T size_t
164 # define YYSTACK_ALLOC malloc
165 # define YYSTACK_FREE free
168 /* A type that is properly aligned for any stack member. */
178 /* The size of the maximum gap between one aligned stack and the next. */
179 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
181 /* The size of an array large to enough to hold all stacks, each with
184 # define YYSTACK_BYTES(N) \
185 ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
186 + 2 * YYSTACK_GAP_MAX)
188 # define YYSTACK_BYTES(N) \
189 ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
193 /* Relocate the TYPE STACK from its old location to the new one. The
194 local variables YYSIZE and YYSTACKSIZE give the old and new number of
195 elements in the stack, and YYPTR gives the new location of the
196 stack. Advance YYPTR to a properly aligned location for the next
198 # define YYSTACK_RELOCATE(Type, Stack) \
201 YYSIZE_T yynewbytes; \
202 yymemcpy ((char *) yyptr, (char *) (Stack), \
203 yysize * (YYSIZE_T) sizeof (Type)); \
204 Stack = &yyptr->Stack; \
205 yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX; \
206 yyptr += yynewbytes / sizeof (*yyptr); \
210 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
213 b4_token_defines(b4_tokens)
215 /* YYFINAL -- State number of the termination state. */
216 #define YYFINAL b4_final
217 #define YYFLAG b4_flag
218 #define YYLAST b4_last
220 /* YYNTOKENS -- Number of terminals. */
221 #define YYNTOKENS b4_ntokens
222 /* YYNNTS -- Number of nonterminals. */
223 #define YYNNTS b4_nnts
224 /* YYNRULES -- Number of rules. */
225 #define YYNRULES b4_nrules
226 /* YYNRULES -- Number of states. */
227 #define YYNSTATES b4_nstates
228 #define YYMAXUTOK b4_maxtok
230 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
231 #define YYTRANSLATE(x) ((unsigned)(x) <= b4_maxtok ? yytranslate[[x]] : b4_nsym)
233 /* YYTRANSLATE[[YYLEX]] -- Bison symbol number corresponding to YYLEX. */
234 static const char yytranslate[[]] =
240 /* YYPRHS[[YYN]] -- Index of the first RHS symbol of rule number YYN in
242 static const short yyprhs[[]] =
247 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
248 static const short yyrhs[[]] =
253 /* YYRLINE[[YYN]] -- source line where rule number YYN was defined. */
254 static const short yyrline[[]] =
260 #if (YYDEBUG) || YYERROR_VERBOSE
261 /* YYTNME[[SYMBOL-NUM]] -- String name of the symbol SYMBOL-NUM.
262 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
263 static const char *const yytname[[]] =
269 /* YYTOKNUM[[YYN]] -- Index in YYTNAME corresponding to YYLEX. */
270 static const short yytoknum[[]] =
275 /* YYR1[[YYN]] -- Symbol number of symbol that rule YYN derives. */
276 static const short yyr1[[]] =
281 /* YYR2[[YYN]] -- Number of symbols composing right hand side of rule YYN. */
282 static const short yyr2[[]] =
287 /* YYDEFACT[[S]] -- default rule to reduce with in state S when YYTABLE
288 doesn't specify something else to do. Zero means the default is an
290 static const short yydefact[[]] =
295 /* YYPGOTO[[NTERM-NUM]]. */
296 static const short yydefgoto[[]] =
301 /* YYPACT[[STATE-NUM]] -- Index in YYTABLE of the portion describing
303 static const short yypact[[]] =
308 /* YYPGOTO[[NTERM-NUM]]. */
309 static const short yypgoto[[]] =
314 /* YYTABLE[[YYPACT[STATE-NUM]]]. What to do in state STATE-NUM. If
315 positive, shift that token. If negative, reduce the rule which
316 number is the opposite. If zero, do what YYDEFACT says. */
317 static const short yytable[[]] =
322 static const short yycheck[[]] =
328 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
329 # define YYSIZE_T __SIZE_TYPE__
331 #if ! defined (YYSIZE_T) && defined (size_t)
332 # define YYSIZE_T size_t
334 #if ! defined (YYSIZE_T)
335 # if defined (__STDC__) || defined (__cplusplus)
336 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
337 # define YYSIZE_T size_t
340 #if ! defined (YYSIZE_T)
341 # define YYSIZE_T unsigned int
344 #define yyerrok (yyerrstatus = 0)
345 #define yyclearin (yychar = YYEMPTY)
349 #define YYACCEPT goto yyacceptlab
350 #define YYABORT goto yyabortlab
351 #define YYERROR goto yyerrlab1
353 /* Like YYERROR except do call yyerror. This remains here temporarily
354 to ease the transition to the new meaning of YYERROR, for GCC.
355 Once GCC version 2 has supplanted version 1, this can go. */
357 #define YYFAIL goto yyerrlab
359 #define YYRECOVERING() (!!yyerrstatus)
361 #define YYBACKUP(Token, Value) \
363 if (yychar == YYEMPTY && yylen == 1) \
367 yychar1 = YYTRANSLATE (yychar); \
373 yyerror ("syntax error: cannot back up"); \
379 #define YYERRCODE 256
381 /* YYLLOC_DEFAULT -- Compute the default location (before the actions
384 When YYLLOC_DEFAULT is run, CURRENT is set the location of the
385 first token. By default, to implement support for ranges, extend
386 its range to the last symbol. */
388 #ifndef YYLLOC_DEFAULT
389 # define YYLLOC_DEFAULT(Current, Rhs, N) \
390 Current.last_line = Rhs[[N]].last_line; \
391 Current.last_column = Rhs[[N]].last_column;
394 /* YYLEX -- calling `yylex' with the right arguments. */
399 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
401 # define YYLEX yylex (&yylval, &yylloc)
403 # else /* !YYLSP_NEEDED */
405 # define YYLEX yylex (&yylval, YYLEX_PARAM)
407 # define YYLEX yylex (&yylval)
409 # endif /* !YYLSP_NEEDED */
411 # define YYLEX yylex ()
414 /* Enable debugging if requested. */
418 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
419 # define YYFPRINTF fprintf
422 # define YYDPRINTF(Args) \
427 /* Nonzero means print parse trace. Since this is uninitialized, it
428 does not stop multiple parsers from coexisting. */
431 # define YYDPRINTF(Args)
432 #endif /* !YYDEBUG */
434 /* YYINITDEPTH -- initial size of the parser's stacks. */
436 # define YYINITDEPTH b4_initdepth
439 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
440 if the built-in stack extension method is used).
442 Do not make this value too large; the results are undefined if
443 SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
444 evaluated with infinite-precision integer arithmetic. */
451 # define YYMAXDEPTH b4_maxdepth
456 #if ! defined (yyoverflow) && ! defined (yymemcpy)
457 # if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
458 # define yymemcpy __builtin_memcpy
459 # else /* not GNU C or C++ */
461 /* This is the most reliable way to avoid incompatibilities
462 in available built-in functions on various systems. */
464 # if defined (__STDC__) || defined (__cplusplus)
465 yymemcpy (char *yyto, const char *yyfrom, YYSIZE_T yycount)
467 yymemcpy (yyto, yyfrom, yycount)
473 register const char *yyf = yyfrom;
474 register char *yyt = yyto;
475 register YYSIZE_T yyi = yycount;
486 # if defined (__GLIBC__) && defined (_STRING_H)
487 # define yystrlen strlen
489 /* Return the length of YYSTR. */
491 # if defined (__STDC__) || defined (__cplusplus)
492 yystrlen (const char *yystr)
498 register const char *yys = yystr;
500 while (*yys++ != '\0')
503 return yys - yystr - 1;
509 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
510 # define yystpcpy stpcpy
512 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
515 # if defined (__STDC__) || defined (__cplusplus)
516 yystpcpy (char *yydest, const char *yysrc)
518 yystpcpy (yydest, yysrc)
523 register char *yyd = yydest;
524 register const char *yys = yysrc;
526 while ((*yyd++ = *yys++) != '\0')
534 #endif /* !YYERROR_VERBOSE */
538 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
539 into yyparse. The argument should have type void *.
540 It should actually point to an object.
541 Grammar actions can access the variable by casting it
542 to the proper pointer type. */
545 # if defined (__STDC__) || defined (__cplusplus)
546 # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
547 # define YYPARSE_PARAM_DECL
549 # define YYPARSE_PARAM_ARG YYPARSE_PARAM
550 # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
552 #else /* !YYPARSE_PARAM */
553 # define YYPARSE_PARAM_ARG
554 # define YYPARSE_PARAM_DECL
555 #endif /* !YYPARSE_PARAM */
557 /* Prevent warning if -Wstrict-prototypes. */
559 # ifdef YYPARSE_PARAM
560 int yyparse (void *);
566 /* YY_DECL_VARIABLES -- depending whether we use a pure parser,
567 variables are global, or local to YYPARSE. */
569 #define YY_DECL_NON_LSP_VARIABLES \
570 /* The lookahead symbol. */ \
573 /* The semantic value of the lookahead symbol. */ \
576 /* Number of parse errors so far. */ \
580 # define YY_DECL_VARIABLES \
581 YY_DECL_NON_LSP_VARIABLES \
583 /* Location data for the lookahead symbol. */ \
586 # define YY_DECL_VARIABLES \
587 YY_DECL_NON_LSP_VARIABLES
590 /* If nonreentrant, generate the variables here. */
597 yyparse (YYPARSE_PARAM_ARG)
600 /* If reentrant, generate the variables here. */
605 register int yystate;
608 /* Number of tokens to shift before error messages enabled. */
610 /* Lookahead token as an internal (translated) token number. */
613 /* Three stacks and their tools:
614 `yyss': related to states,
615 `yyvs': related to semantic values,
616 `yyls': related to locations.
618 Refer to the stacks thru separate pointers, to allow yyoverflow
619 to reallocate them elsewhere. */
621 /* The state stack. */
622 short yyssa[YYINITDEPTH];
624 register short *yyssp;
626 /* The semantic value stack. */
627 YYSTYPE yyvsa[YYINITDEPTH];
628 YYSTYPE *yyvs = yyvsa;
629 register YYSTYPE *yyvsp;
632 /* The location stack. */
633 YYLTYPE yylsa[YYINITDEPTH];
634 YYLTYPE *yyls = yylsa;
639 # define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
641 # define YYPOPSTACK (yyvsp--, yyssp--)
644 YYSIZE_T yystacksize = YYINITDEPTH;
646 /* The variables used to return semantic value and location from the
653 /* When reducing, the number of symbols on the RHS of the reduced
657 YYDPRINTF ((stderr, "Starting parse\n"));
662 yychar = YYEMPTY; /* Cause a token to be read. */
664 /* Initialize stack pointers.
665 Waste one element of value and location stack
666 so that they stay on the same level as the state stack.
667 The wasted elements are never initialized. */
676 /*------------------------------------------------------------.
677 | yynewstate -- Push a new state, which is found in yystate. |
678 `------------------------------------------------------------*/
680 /* In all cases, when you get here, the value and location stacks
681 have just been pushed. so pushing a state here evens the stacks.
688 if (yyssp >= yyss + yystacksize - 1)
690 /* Get the current used size of the three stacks, in elements. */
691 YYSIZE_T yysize = yyssp - yyss + 1;
695 /* Give user a chance to reallocate the stack. Use copies of
696 these so that the &'s don't force the real ones into
698 YYSTYPE *yyvs1 = yyvs;
701 /* Each stack pointer address is followed by the size of the
702 data in use in that stack, in bytes. */
704 YYLTYPE *yyls1 = yyls;
705 /* This used to be a conditional around just the two extra args,
706 but that might be undefined if yyoverflow is a macro. */
707 yyoverflow ("parser stack overflow",
708 &yyss1, yysize * sizeof (*yyssp),
709 &yyvs1, yysize * sizeof (*yyvsp),
710 &yyls1, yysize * sizeof (*yylsp),
714 yyoverflow ("parser stack overflow",
715 &yyss1, yysize * sizeof (*yyssp),
716 &yyvs1, yysize * sizeof (*yyvsp),
722 #else /* no yyoverflow */
723 /* Extend the stack our own way. */
724 if (yystacksize >= YYMAXDEPTH)
727 if (yystacksize > YYMAXDEPTH)
728 yystacksize = YYMAXDEPTH;
732 union yyalloc *yyptr =
733 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
736 YYSTACK_RELOCATE (short, yyss);
737 YYSTACK_RELOCATE (YYSTYPE, yyvs);
739 YYSTACK_RELOCATE (YYLTYPE, yyls);
741 # undef YYSTACK_RELOCATE
743 YYSTACK_FREE (yyss1);
745 #endif /* no yyoverflow */
747 yyssp = yyss + yysize - 1;
748 yyvsp = yyvs + yysize - 1;
750 yylsp = yyls + yysize - 1;
753 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
754 (unsigned long int) yystacksize));
756 if (yyssp >= yyss + yystacksize - 1)
760 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
769 /* Do appropriate processing given the current state. */
770 /* Read a lookahead token if we need one and don't already have one. */
773 /* First try to decide what to do without reference to lookahead token. */
775 yyn = yypact[yystate];
779 /* Not known => get a lookahead token if don't already have one. */
781 /* yychar is either YYEMPTY or YYEOF
782 or a valid token in external form. */
784 if (yychar == YYEMPTY)
786 YYDPRINTF ((stderr, "Reading a token: "));
790 /* Convert token to internal form (in yychar1) for indexing tables with. */
792 if (yychar <= 0) /* This means end of input. */
795 yychar = YYEOF; /* Don't call YYLEX any more. */
797 YYDPRINTF ((stderr, "Now at end of input.\n"));
801 yychar1 = YYTRANSLATE (yychar);
804 /* We have to keep this `#if YYDEBUG', since we use variables
805 which are defined only if `YYDEBUG' is set. */
808 YYFPRINTF (stderr, "Next token is %d (%s",
809 yychar, yytname[yychar1]);
810 /* Give the individual parser a way to print the precise
811 meaning of a token, for further debugging info. */
813 YYPRINT (stderr, yychar, yylval);
815 YYFPRINTF (stderr, ")\n");
821 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
826 /* yyn is what to do for this token type in this state.
827 Negative => reduce, -yyn is rule number.
828 Positive => shift, yyn is new state.
829 New state is final state => don't bother to shift,
831 0, or most negative number => error. */
846 /* Shift the lookahead token. */
847 YYDPRINTF ((stderr, "Shifting token %d (%s), ",
848 yychar, yytname[yychar1]));
850 /* Discard the token being shifted unless it is eof. */
859 /* Count tokens shifted since error; after three, turn off error
868 /*-----------------------------------------------------------.
869 | yydefault -- do the default action for the current state. |
870 `-----------------------------------------------------------*/
872 yyn = yydefact[yystate];
878 /*-----------------------------.
879 | yyreduce -- Do a reduction. |
880 `-----------------------------*/
882 /* yyn is the number of a rule to reduce with. */
885 /* If YYLEN is nonzero, implement the default value of the action:
888 Otherwise, the following line sets YYVAL to the semantic value of
889 the lookahead token. This behavior is undocumented and Bison
890 users should not rely upon it. Assigning to YYVAL
891 unconditionally makes the parser a bit smaller, and it avoids a
892 GCC warning that YYVAL may be used uninitialized. */
893 yyval = yyvsp[1-yylen];
896 /* Similarly for the default location. Let the user run additional
897 commands if for instance locations are ranges. */
898 yyloc = yylsp[1-yylen];
899 YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
903 /* We have to keep this `#if YYDEBUG', since we use variables which
904 are defined only if `YYDEBUG' is set. */
909 YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
910 yyn - 1, yyrline[yyn]);
912 /* Print the symbols being reduced, and their result. */
913 for (yyi = yyprhs[yyn]; yyrhs[yyi] >= 0; yyi++)
914 YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
915 YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
923 /* Line __line__ of __file__. */
924 #line __oline__ "b4_output_parser_name"
935 short *yyssp1 = yyss - 1;
936 YYFPRINTF (stderr, "state stack now");
937 while (yyssp1 != yyssp)
938 YYFPRINTF (stderr, " %d", *++yyssp1);
939 YYFPRINTF (stderr, "\n");
948 /* Now `shift' the result of the reduction. Determine what state
949 that goes to, based on the state we popped back to and the rule
950 number reduced by. */
954 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
955 if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
956 yystate = yytable[yystate];
958 yystate = yydefgoto[yyn - YYNTOKENS];
963 /*------------------------------------.
964 | yyerrlab -- here on detecting error |
965 `------------------------------------*/
967 /* If not already recovering from an error, report this error. */
973 yyn = yypact[yystate];
975 if (yyn > YYFLAG && yyn < YYLAST)
982 /* Start YYX at -YYN if negative to avoid negative indexes in
984 for (yyx = yyn < 0 ? -yyn : 0;
985 yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
986 if (yycheck[yyx + yyn] == yyx)
987 yysize += yystrlen (yytname[yyx]) + 15, yycount++;
988 yysize += yystrlen ("parse error, unexpected ") + 1;
989 yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
990 yymsg = (char *) YYSTACK_ALLOC (yysize);
993 char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
994 yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
999 for (yyx = yyn < 0 ? -yyn : 0;
1000 yyx < (int) (sizeof (yytname) / sizeof (char *));
1002 if (yycheck[yyx + yyn] == yyx)
1004 const char *yyq = ! yycount ? ", expecting " : " or ";
1005 yyp = yystpcpy (yyp, yyq);
1006 yyp = yystpcpy (yyp, yytname[yyx]);
1011 YYSTACK_FREE (yymsg);
1014 yyerror ("parse error; also virtual memory exhausted");
1017 #endif /* YYERROR_VERBOSE */
1018 yyerror ("parse error");
1023 /*----------------------------------------------------.
1024 | yyerrlab1 -- error raised explicitly by an action. |
1025 `----------------------------------------------------*/
1027 if (yyerrstatus == 3)
1029 /* If just tried and failed to reuse lookahead token after an
1030 error, discard it. */
1032 /* Return failure if at end of input. */
1033 if (yychar == YYEOF)
1035 YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
1036 yychar, yytname[yychar1]));
1040 /* Else will try to reuse lookahead token after shifting the error
1043 yyerrstatus = 3; /* Each real token shifted decrements this. */
1048 /*-------------------------------------------------------------------.
1049 | yyerrdefault -- current state does not do anything special for the |
1051 `-------------------------------------------------------------------*/
1054 /* This is wrong; only states that explicitly want error tokens
1055 should shift them. */
1057 /* If its default is to accept any token, ok. Otherwise pop it. */
1058 yyn = yydefact[yystate];
1064 /*---------------------------------------------------------------.
1065 | yyerrpop -- pop the current state because it cannot handle the |
1067 `---------------------------------------------------------------*/
1080 short *yyssp1 = yyss - 1;
1081 YYFPRINTF (stderr, "Error: state stack now");
1082 while (yyssp1 != yyssp)
1083 YYFPRINTF (stderr, " %d", *++yyssp1);
1084 YYFPRINTF (stderr, "\n");
1092 yyn = yypact[yystate];
1097 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
1114 YYDPRINTF ((stderr, "Shifting error token, "));
1125 /*-------------------------------------.
1126 | yyacceptlab -- YYACCEPT comes here. |
1127 `-------------------------------------*/
1132 /*-----------------------------------.
1133 | yyabortlab -- YYABORT comes here. |
1134 `-----------------------------------*/
1139 /*---------------------------------------------.
1140 | yyoverflowab -- parser overflow comes here. |
1141 `---------------------------------------------*/
1143 yyerror ("parser stack overflow");
1150 YYSTACK_FREE (yyss);
1156 m4_if(b4_defines_flag, 0, [],
1157 [#output "b4_output_header_name"
1158 #ifndef b4_header_guard
1159 # define b4_header_guard
1161 b4_token_defines(b4_tokens)
1166 # define YYSTYPE yystype
1170 [extern YYSTYPE b4_prefix[]lval;])
1172 m4_if(b4_locations_flag, [0], [],
1174 typedef struct yyltype
1181 # define YYLTYPE yyltype
1185 [extern YYLTYPE b4_prefix[]lloc;])
1187 #endif /* not b4_header_guard */