3 /* A Bison parser, made from %%filename
4 by GNU bison %%version. */
6 /* Skeleton output parser for bison,
7 Copyright 1984, 1989, 1990, 2000, 2001 Free Software Foundation, Inc.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
24 /* As a special exception, when this file is copied by Bison into a
25 Bison output file, you may use that output file without restriction.
26 This special exception was added by the Free Software Foundation
27 in version 1.24 of Bison. */
29 /* This is the parser code that is written into each bison parser when
30 the %semantic_parser declaration is not specified in the grammar.
31 It was written by Richard Stallman by simplifying the hairy parser
32 used when %semantic_parser is specified. */
34 /* Identify Bison output. */
40 /* Using locations. */
41 #define YYLSP_NEEDED %%locations-flag
43 /* Enabling traces. */
45 # define YYDEBUG %%debug
48 /* Enabling verbose error messages. */
49 #ifdef YYERROR_VERBOSE
50 # undef YYERROR_VERBOSE
51 # define YYERROR_VERBOSE 1
53 # define YYERROR_VERBOSE %%error-verbose
56 /* If name_prefix is specify substitute the variables and functions
58 #define yyparse %%prefix##parse
59 #define yylex %%prefix##lex
60 #define yyerror %%prefix##error
61 #define yylval %%prefix##lval
62 #define yychar %%prefix##char
63 #define yydebug %%prefix##debug
64 #define yynerrs %%prefix##nerrs
67 typedef %%stype yystype;
68 # define YYSTYPE yystype
72 typedef struct yyltype
79 # define YYLTYPE %%ltype
82 /* Copy the user declarations. */
85 /* Line %%skeleton-line of %%skeleton. */
86 #line %%line "%%parser-file-name"
88 /* All symbols defined below should begin with yy or YY, to avoid
89 infringing on user name space. This should be done even for local
90 variables, as they might otherwise be expanded by user macros.
91 There are some unavoidable exceptions within include files to
92 define necessary library symbols; they are noted "INFRINGES ON
93 USER NAME SPACE" below. */
96 # define YYSTD(x) std::x
101 #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
103 /* The parser invokes alloca or malloc; define the necessary symbols. */
105 # if YYSTACK_USE_ALLOCA
106 # define YYSTACK_ALLOC alloca
107 # define YYSIZE_T YYSTD (size_t)
109 # ifndef YYSTACK_USE_ALLOCA
110 # if defined (alloca) || defined (_ALLOCA_H)
111 # define YYSTACK_ALLOC alloca
112 # define YYSIZE_T YYSTD (size_t)
115 # define YYSTACK_ALLOC __builtin_alloca
121 # ifdef YYSTACK_ALLOC
122 /* Pacify GCC's `empty if-body' warning. */
123 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
126 # include <cstdlib> /* INFRINGES ON USER NAME SPACE */
127 # define YYSIZE_T std::size_t
130 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
131 # define YYSIZE_T size_t
134 # define YYSTACK_ALLOC YYSTD (malloc)
135 # define YYSTACK_FREE YYSTD (free)
138 /* A type that is properly aligned for any stack member. */
148 /* The size of the maximum gap between one aligned stack and the next. */
149 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
151 /* The size of an array large to enough to hold all stacks, each with
154 # define YYSTACK_BYTES(N) \
155 ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
156 + 2 * YYSTACK_GAP_MAX)
158 # define YYSTACK_BYTES(N) \
159 ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
163 /* Relocate the TYPE STACK from its old location to the new one. The
164 local variables YYSIZE and YYSTACKSIZE give the old and new number of
165 elements in the stack, and YYPTR gives the new location of the
166 stack. Advance YYPTR to a properly aligned location for the next
168 # define YYSTACK_RELOCATE(Type, Stack) \
171 YYSIZE_T yynewbytes; \
172 yymemcpy ((char *) yyptr, (char *) (Stack), \
173 yysize * (YYSIZE_T) sizeof (Type)); \
174 Stack = &yyptr->Stack; \
175 yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX; \
176 yyptr += yynewbytes / sizeof (*yyptr); \
180 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
185 /* YYFINAL -- State number of the termination state. */
186 #define YYFINAL %%final
187 #define YYFLAG %%flag
188 #define YYLAST %%last
190 /* YYNTOKENS -- Number of terminals. */
191 #define YYNTOKENS %%ntokens
192 /* YYNNTS -- Number of nonterminals. */
193 #define YYNNTS %%nnts
194 /* YYNRULES -- Number of rules. */
195 #define YYNRULES %%nrules
196 /* YYNRULES -- Number of states. */
197 #define YYNSTATES %%nstates
198 #define YYMAXUTOK %%maxtok
200 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
201 #define YYTRANSLATE(x) ((unsigned)(x) <= %%maxtok ? yytranslate[x] : %%nsym)
203 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
204 static const char yytranslate[] =
210 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
212 static const short yyprhs[] =
217 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
218 static const short yyrhs[] =
223 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
224 static const short yyrline[] =
230 #if (YYDEBUG) || YYERROR_VERBOSE
231 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
232 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
233 static const char *const yytname[] =
239 /* YYTOKNUM[YYN] -- Index in YYTNAME corresponding to YYLEX. */
240 static const short yytoknum[] =
245 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
246 static const short yyr1[] =
251 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
252 static const short yyr2[] =
257 /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
258 doesn't specify something else to do. Zero means the default is an
260 static const short yydefact[] =
265 /* YYPGOTO[NTERM-NUM]. */
266 static const short yydefgoto[] =
271 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
273 static const short yypact[] =
278 /* YYPGOTO[NTERM-NUM]. */
279 static const short yypgoto[] =
284 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
285 positive, shift that token. If negative, reduce the rule which
286 number is the opposite. If zero, do what YYDEFACT says. */
287 static const short yytable[] =
292 static const short yycheck[] =
298 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
299 # define YYSIZE_T __SIZE_TYPE__
301 #if ! defined (YYSIZE_T) && defined (size_t)
302 # define YYSIZE_T size_t
304 #if ! defined (YYSIZE_T)
306 # include <cstddef> /* INFRINGES ON USER NAME SPACE */
307 # define YYSIZE_T std::size_t
310 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
311 # define YYSIZE_T size_t
315 #if ! defined (YYSIZE_T)
316 # define YYSIZE_T unsigned int
319 #define yyerrok (yyerrstatus = 0)
320 #define yyclearin (yychar = YYEMPTY)
324 #define YYACCEPT goto yyacceptlab
325 #define YYABORT goto yyabortlab
326 #define YYERROR goto yyerrlab1
328 /* Like YYERROR except do call yyerror. This remains here temporarily
329 to ease the transition to the new meaning of YYERROR, for GCC.
330 Once GCC version 2 has supplanted version 1, this can go. */
332 #define YYFAIL goto yyerrlab
334 #define YYRECOVERING() (!!yyerrstatus)
336 #define YYBACKUP(Token, Value) \
338 if (yychar == YYEMPTY && yylen == 1) \
342 yychar1 = YYTRANSLATE (yychar); \
348 yyerror ("syntax error: cannot back up"); \
354 #define YYERRCODE 256
356 /* YYLLOC_DEFAULT -- Compute the default location (before the actions
359 When YYLLOC_DEFAULT is run, CURRENT is set the location of the
360 first token. By default, to implement support for ranges, extend
361 its range to the last symbol. */
363 #ifndef YYLLOC_DEFAULT
364 # define YYLLOC_DEFAULT(Current, Rhs, N) \
365 Current.last_line = Rhs[N].last_line; \
366 Current.last_column = Rhs[N].last_column;
369 /* YYLEX -- calling `yylex' with the right arguments. */
374 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
376 # define YYLEX yylex (&yylval, &yylloc)
378 # else /* !YYLSP_NEEDED */
380 # define YYLEX yylex (&yylval, YYLEX_PARAM)
382 # define YYLEX yylex (&yylval)
384 # endif /* !YYLSP_NEEDED */
386 # define YYLEX yylex ()
389 /* Enable debugging if requested. */
394 # include <cstdio.h> /* INFRINGES ON USER NAME SPACE */
396 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
398 # define YYFPRINTF YYSTD (fprintf)
399 # define YYSTDERR YYSTD (stderr)
402 # define YYDPRINTF(Args) \
407 /* Nonzero means print parse trace. [The following comment makes no
408 sense to me. Could someone clarify it? --akim] Since this is
409 uninitialized, it does not stop multiple parsers from coexisting.
413 # define YYDPRINTF(Args)
414 #endif /* !YYDEBUG */
416 /* YYINITDEPTH -- initial size of the parser's stacks. */
418 # define YYINITDEPTH %%initdepth
421 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
422 if the built-in stack extension method is used).
424 Do not make this value too large; the results are undefined if
425 SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
426 evaluated with infinite-precision integer arithmetic. */
433 # define YYMAXDEPTH %%maxdepth
438 #if ! defined (yyoverflow) && ! defined (yymemcpy)
439 # if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
440 # define yymemcpy __builtin_memcpy
441 # else /* not GNU C or C++ */
443 /* This is the most reliable way to avoid incompatibilities
444 in available built-in functions on various systems. */
446 # if defined (__STDC__) || defined (__cplusplus)
447 yymemcpy (char *yyto, const char *yyfrom, YYSIZE_T yycount)
449 yymemcpy (yyto, yyfrom, yycount)
455 register const char *yyf = yyfrom;
456 register char *yyt = yyto;
457 register YYSIZE_T yyi = yycount;
468 # if defined (__GLIBC__) && defined (_STRING_H)
469 # define yystrlen strlen
471 /* Return the length of YYSTR. */
473 # if defined (__STDC__) || defined (__cplusplus)
474 yystrlen (const char *yystr)
480 register const char *yys = yystr;
482 while (*yys++ != '\0')
485 return yys - yystr - 1;
491 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
492 # define yystpcpy stpcpy
494 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
497 # if defined (__STDC__) || defined (__cplusplus)
498 yystpcpy (char *yydest, const char *yysrc)
500 yystpcpy (yydest, yysrc)
505 register char *yyd = yydest;
506 register const char *yys = yysrc;
508 while ((*yyd++ = *yys++) != '\0')
516 #endif /* !YYERROR_VERBOSE */
520 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
521 into yyparse. The argument should have type void *.
522 It should actually point to an object.
523 Grammar actions can access the variable by casting it
524 to the proper pointer type. */
528 # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
529 # define YYPARSE_PARAM_DECL
530 # else /* !__cplusplus */
531 # define YYPARSE_PARAM_ARG YYPARSE_PARAM
532 # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
533 # endif /* !__cplusplus */
534 #else /* !YYPARSE_PARAM */
535 # define YYPARSE_PARAM_ARG
536 # define YYPARSE_PARAM_DECL
537 #endif /* !YYPARSE_PARAM */
539 /* Prevent warning if -Wstrict-prototypes. */
541 # ifdef YYPARSE_PARAM
542 int yyparse (void *);
548 /* YY_DECL_VARIABLES -- depending whether we use a pure parser,
549 variables are global, or local to YYPARSE. */
551 #define YY_DECL_NON_LSP_VARIABLES \
552 /* The lookahead symbol. */ \
555 /* The semantic value of the lookahead symbol. */ \
558 /* Number of parse errors so far. */ \
562 # define YY_DECL_VARIABLES \
563 YY_DECL_NON_LSP_VARIABLES \
565 /* Location data for the lookahead symbol. */ \
568 # define YY_DECL_VARIABLES \
569 YY_DECL_NON_LSP_VARIABLES
572 /* If nonreentrant, generate the variables here. */
579 yyparse (YYPARSE_PARAM_ARG)
582 /* If reentrant, generate the variables here. */
587 register int yystate;
590 /* Number of tokens to shift before error messages enabled. */
592 /* Lookahead token as an internal (translated) token number. */
595 /* Three stacks and their tools:
596 `yyss': related to states,
597 `yyvs': related to semantic values,
598 `yyls': related to locations.
600 Refer to the stacks thru separate pointers, to allow yyoverflow
601 to reallocate them elsewhere. */
603 /* The state stack. */
604 short yyssa[YYINITDEPTH];
606 register short *yyssp;
608 /* The semantic value stack. */
609 YYSTYPE yyvsa[YYINITDEPTH];
610 YYSTYPE *yyvs = yyvsa;
611 register YYSTYPE *yyvsp;
614 /* The location stack. */
615 YYLTYPE yylsa[YYINITDEPTH];
616 YYLTYPE *yyls = yylsa;
621 # define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
623 # define YYPOPSTACK (yyvsp--, yyssp--)
626 YYSIZE_T yystacksize = YYINITDEPTH;
628 /* The variables used to return semantic value and location from the
635 /* When reducing, the number of symbols on the RHS of the reduced
639 YYDPRINTF ((YYSTDERR, "Starting parse\n"));
644 yychar = YYEMPTY; /* Cause a token to be read. */
646 /* Initialize stack pointers.
647 Waste one element of value and location stack
648 so that they stay on the same level as the state stack.
649 The wasted elements are never initialized. */
658 /*------------------------------------------------------------.
659 | yynewstate -- Push a new state, which is found in yystate. |
660 `------------------------------------------------------------*/
662 /* In all cases, when you get here, the value and location stacks
663 have just been pushed. so pushing a state here evens the stacks.
670 if (yyssp >= yyss + yystacksize - 1)
672 /* Get the current used size of the three stacks, in elements. */
673 YYSIZE_T yysize = yyssp - yyss + 1;
677 /* Give user a chance to reallocate the stack. Use copies of
678 these so that the &'s don't force the real ones into
680 YYSTYPE *yyvs1 = yyvs;
683 /* Each stack pointer address is followed by the size of the
684 data in use in that stack, in bytes. */
686 YYLTYPE *yyls1 = yyls;
687 /* This used to be a conditional around just the two extra args,
688 but that might be undefined if yyoverflow is a macro. */
689 yyoverflow ("parser stack overflow",
690 &yyss1, yysize * sizeof (*yyssp),
691 &yyvs1, yysize * sizeof (*yyvsp),
692 &yyls1, yysize * sizeof (*yylsp),
696 yyoverflow ("parser stack overflow",
697 &yyss1, yysize * sizeof (*yyssp),
698 &yyvs1, yysize * sizeof (*yyvsp),
704 #else /* no yyoverflow */
705 /* Extend the stack our own way. */
706 if (yystacksize >= YYMAXDEPTH)
709 if (yystacksize > YYMAXDEPTH)
710 yystacksize = YYMAXDEPTH;
714 union yyalloc *yyptr =
715 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
718 YYSTACK_RELOCATE (short, yyss);
719 YYSTACK_RELOCATE (YYSTYPE, yyvs);
721 YYSTACK_RELOCATE (YYLTYPE, yyls);
723 # undef YYSTACK_RELOCATE
725 YYSTACK_FREE (yyss1);
727 #endif /* no yyoverflow */
729 yyssp = yyss + yysize - 1;
730 yyvsp = yyvs + yysize - 1;
732 yylsp = yyls + yysize - 1;
735 YYDPRINTF ((YYSTDERR, "Stack size increased to %lu\n",
736 (unsigned long int) yystacksize));
738 if (yyssp >= yyss + yystacksize - 1)
742 YYDPRINTF ((YYSTDERR, "Entering state %d\n", yystate));
751 /* Do appropriate processing given the current state. */
752 /* Read a lookahead token if we need one and don't already have one. */
755 /* First try to decide what to do without reference to lookahead token. */
757 yyn = yypact[yystate];
761 /* Not known => get a lookahead token if don't already have one. */
763 /* yychar is either YYEMPTY or YYEOF
764 or a valid token in external form. */
766 if (yychar == YYEMPTY)
768 YYDPRINTF ((YYSTDERR, "Reading a token: "));
772 /* Convert token to internal form (in yychar1) for indexing tables with. */
774 if (yychar <= 0) /* This means end of input. */
777 yychar = YYEOF; /* Don't call YYLEX any more. */
779 YYDPRINTF ((YYSTDERR, "Now at end of input.\n"));
783 yychar1 = YYTRANSLATE (yychar);
786 /* We have to keep this `#if YYDEBUG', since we use variables
787 which are defined only if `YYDEBUG' is set. */
790 YYFPRINTF (YYSTDERR, "Next token is %d (%s",
791 yychar, yytname[yychar1]);
792 /* Give the individual parser a way to print the precise
793 meaning of a token, for further debugging info. */
795 YYPRINT (YYSTDERR, yychar, yylval);
797 YYFPRINTF (YYSTDERR, ")\n");
803 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
808 /* yyn is what to do for this token type in this state.
809 Negative => reduce, -yyn is rule number.
810 Positive => shift, yyn is new state.
811 New state is final state => don't bother to shift,
813 0, or most negative number => error. */
828 /* Shift the lookahead token. */
829 YYDPRINTF ((YYSTDERR, "Shifting token %d (%s), ",
830 yychar, yytname[yychar1]));
832 /* Discard the token being shifted unless it is eof. */
841 /* Count tokens shifted since error; after three, turn off error
850 /*-----------------------------------------------------------.
851 | yydefault -- do the default action for the current state. |
852 `-----------------------------------------------------------*/
854 yyn = yydefact[yystate];
860 /*-----------------------------.
861 | yyreduce -- Do a reduction. |
862 `-----------------------------*/
864 /* yyn is the number of a rule to reduce with. */
867 /* If YYLEN is nonzero, implement the default value of the action:
870 Otherwise, the following line sets YYVAL to the semantic value of
871 the lookahead token. This behavior is undocumented and Bison
872 users should not rely upon it. Assigning to YYVAL
873 unconditionally makes the parser a bit smaller, and it avoids a
874 GCC warning that YYVAL may be used uninitialized. */
875 yyval = yyvsp[1-yylen];
878 /* Similarly for the default location. Let the user run additional
879 commands if for instance locations are ranges. */
880 yyloc = yylsp[1-yylen];
881 YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
885 /* We have to keep this `#if YYDEBUG', since we use variables which
886 are defined only if `YYDEBUG' is set. */
891 YYFPRINTF (YYSTDERR, "Reducing via rule %d (line %d), ",
892 yyn - 1, yyrline[yyn]);
894 /* Print the symbols being reduced, and their result. */
895 for (yyi = yyprhs[yyn]; yyrhs[yyi] >= 0; yyi++)
896 YYFPRINTF (YYSTDERR, "%s ", yytname[yyrhs[yyi]]);
897 YYFPRINTF (YYSTDERR, " -> %s\n", yytname[yyr1[yyn]]);
905 /* Line %%skeleton-line of %%skeleton. */
906 #line %%line "%%parser-file-name"
917 short *yyssp1 = yyss - 1;
918 YYFPRINTF (YYSTDERR, "state stack now");
919 while (yyssp1 != yyssp)
920 YYFPRINTF (YYSTDERR, " %d", *++yyssp1);
921 YYFPRINTF (YYSTDERR, "\n");
930 /* Now `shift' the result of the reduction. Determine what state
931 that goes to, based on the state we popped back to and the rule
932 number reduced by. */
936 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
937 if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
938 yystate = yytable[yystate];
940 yystate = yydefgoto[yyn - YYNTOKENS];
945 /*------------------------------------.
946 | yyerrlab -- here on detecting error |
947 `------------------------------------*/
949 /* If not already recovering from an error, report this error. */
955 yyn = yypact[yystate];
957 if (yyn > YYFLAG && yyn < YYLAST)
964 /* Start YYX at -YYN if negative to avoid negative indexes in
966 for (yyx = yyn < 0 ? -yyn : 0;
967 yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
968 if (yycheck[yyx + yyn] == yyx)
969 yysize += yystrlen (yytname[yyx]) + 15, yycount++;
970 yysize += yystrlen ("parse error, unexpected ") + 1;
971 yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
972 yymsg = (char *) YYSTACK_ALLOC (yysize);
975 char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
976 yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
981 for (yyx = yyn < 0 ? -yyn : 0;
982 yyx < (int) (sizeof (yytname) / sizeof (char *));
984 if (yycheck[yyx + yyn] == yyx)
986 const char *yyq = ! yycount ? ", expecting " : " or ";
987 yyp = yystpcpy (yyp, yyq);
988 yyp = yystpcpy (yyp, yytname[yyx]);
993 YYSTACK_FREE (yymsg);
996 yyerror ("parse error; also virtual memory exhausted");
999 #endif /* YYERROR_VERBOSE */
1000 yyerror ("parse error");
1005 /*----------------------------------------------------.
1006 | yyerrlab1 -- error raised explicitly by an action. |
1007 `----------------------------------------------------*/
1009 if (yyerrstatus == 3)
1011 /* If just tried and failed to reuse lookahead token after an
1012 error, discard it. */
1014 /* Return failure if at end of input. */
1015 if (yychar == YYEOF)
1017 YYDPRINTF ((YYSTDERR, "Discarding token %d (%s).\n",
1018 yychar, yytname[yychar1]));
1022 /* Else will try to reuse lookahead token after shifting the error
1025 yyerrstatus = 3; /* Each real token shifted decrements this. */
1030 /*-------------------------------------------------------------------.
1031 | yyerrdefault -- current state does not do anything special for the |
1033 `-------------------------------------------------------------------*/
1036 /* This is wrong; only states that explicitly want error tokens
1037 should shift them. */
1039 /* If its default is to accept any token, ok. Otherwise pop it. */
1040 yyn = yydefact[yystate];
1046 /*---------------------------------------------------------------.
1047 | yyerrpop -- pop the current state because it cannot handle the |
1049 `---------------------------------------------------------------*/
1062 short *yyssp1 = yyss - 1;
1063 YYFPRINTF (YYSTDERR, "Error: state stack now");
1064 while (yyssp1 != yyssp)
1065 YYFPRINTF (YYSTDERR, " %d", *++yyssp1);
1066 YYFPRINTF (YYSTDERR, "\n");
1074 yyn = yypact[yystate];
1079 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
1096 YYDPRINTF ((YYSTDERR, "Shifting error token, "));
1107 /*-------------------------------------.
1108 | yyacceptlab -- YYACCEPT comes here. |
1109 `-------------------------------------*/
1114 /*-----------------------------------.
1115 | yyabortlab -- YYABORT comes here. |
1116 `-----------------------------------*/
1121 /*---------------------------------------------.
1122 | yyoverflowab -- parser overflow comes here. |
1123 `---------------------------------------------*/
1125 yyerror ("parser stack overflow");
1132 YYSTACK_FREE (yyss);