empty.tab.c revision 272955
1/* original parser id follows */
2/* yysccsid[] = "@(#)yaccpar	1.9 (Berkeley) 02/21/93" */
3/* (use YYMAJOR/YYMINOR for ifdefs dependent of parser version) */
4
5#define YYBYACC 1
6#define YYMAJOR 1
7#define YYMINOR 9
8#define YYCHECK "yyyymmdd"
9
10#define YYEMPTY        (-1)
11#define yyclearin      (yychar = YYEMPTY)
12#define yyerrok        (yyerrflag = 0)
13#define YYRECOVERING() (yyerrflag != 0)
14#define YYENOMEM       (-2)
15#define YYEOF          0
16#undef YYBTYACC
17#define YYBTYACC 0
18#define YYDEBUGSTR YYPREFIX "debug"
19
20#ifndef yyparse
21#define yyparse    empty_parse
22#endif /* yyparse */
23
24#ifndef yylex
25#define yylex      empty_lex
26#endif /* yylex */
27
28#ifndef yyerror
29#define yyerror    empty_error
30#endif /* yyerror */
31
32#ifndef yychar
33#define yychar     empty_char
34#endif /* yychar */
35
36#ifndef yyval
37#define yyval      empty_val
38#endif /* yyval */
39
40#ifndef yylval
41#define yylval     empty_lval
42#endif /* yylval */
43
44#ifndef yydebug
45#define yydebug    empty_debug
46#endif /* yydebug */
47
48#ifndef yynerrs
49#define yynerrs    empty_nerrs
50#endif /* yynerrs */
51
52#ifndef yyerrflag
53#define yyerrflag  empty_errflag
54#endif /* yyerrflag */
55
56#ifndef yylhs
57#define yylhs      empty_lhs
58#endif /* yylhs */
59
60#ifndef yylen
61#define yylen      empty_len
62#endif /* yylen */
63
64#ifndef yydefred
65#define yydefred   empty_defred
66#endif /* yydefred */
67
68#ifndef yystos
69#define yystos     empty_stos
70#endif /* yystos */
71
72#ifndef yydgoto
73#define yydgoto    empty_dgoto
74#endif /* yydgoto */
75
76#ifndef yysindex
77#define yysindex   empty_sindex
78#endif /* yysindex */
79
80#ifndef yyrindex
81#define yyrindex   empty_rindex
82#endif /* yyrindex */
83
84#ifndef yygindex
85#define yygindex   empty_gindex
86#endif /* yygindex */
87
88#ifndef yytable
89#define yytable    empty_table
90#endif /* yytable */
91
92#ifndef yycheck
93#define yycheck    empty_check
94#endif /* yycheck */
95
96#ifndef yyname
97#define yyname     empty_name
98#endif /* yyname */
99
100#ifndef yyrule
101#define yyrule     empty_rule
102#endif /* yyrule */
103
104#if YYBTYACC
105
106#ifndef yycindex
107#define yycindex   empty_cindex
108#endif /* yycindex */
109
110#ifndef yyctable
111#define yyctable   empty_ctable
112#endif /* yyctable */
113
114#endif /* YYBTYACC */
115
116#define YYPREFIX "empty_"
117
118#define YYPURE 0
119
120#line 2 "empty.y"
121#ifdef YYBISON
122#define YYLEX_DECL() yylex(void)
123#define YYERROR_DECL() yyerror(const char *s)
124static int YYLEX_DECL();
125static void YYERROR_DECL();
126#endif
127#line 128 "empty.tab.c"
128
129#if ! defined(YYSTYPE) && ! defined(YYSTYPE_IS_DECLARED)
130/* Default: YYSTYPE is the semantic value type. */
131typedef int YYSTYPE;
132# define YYSTYPE_IS_DECLARED 1
133#endif
134
135/* compatibility with bison */
136#ifdef YYPARSE_PARAM
137/* compatibility with FreeBSD */
138# ifdef YYPARSE_PARAM_TYPE
139#  define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM)
140# else
141#  define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM)
142# endif
143#else
144# define YYPARSE_DECL() yyparse(void)
145#endif
146
147/* Parameters sent to lex. */
148#ifdef YYLEX_PARAM
149# define YYLEX_DECL() yylex(void *YYLEX_PARAM)
150# define YYLEX yylex(YYLEX_PARAM)
151#else
152# define YYLEX_DECL() yylex(void)
153# define YYLEX yylex()
154#endif
155
156/* Parameters sent to yyerror. */
157#ifndef YYERROR_DECL
158#define YYERROR_DECL() yyerror(const char *s)
159#endif
160#ifndef YYERROR_CALL
161#define YYERROR_CALL(msg) yyerror(msg)
162#endif
163
164extern int YYPARSE_DECL();
165
166#define YYERRCODE 256
167typedef short YYINT;
168static const YYINT empty_lhs[] = {                       -1,
169    0,
170};
171static const YYINT empty_len[] = {                        2,
172    0,
173};
174static const YYINT empty_defred[] = {                     1,
175    0,
176};
177static const YYINT empty_stos[] = {                       0,
178  258,
179};
180static const YYINT empty_dgoto[] = {                      1,
181};
182static const YYINT empty_sindex[] = {                     0,
183    0,
184};
185static const YYINT empty_rindex[] = {                     0,
186    0,
187};
188#if YYBTYACC
189static const YYINT empty_cindex[] = {                     0,
190    0,
191};
192#endif
193static const YYINT empty_gindex[] = {                     0,
194};
195#define YYTABLESIZE 0
196static const YYINT empty_table[] = {                      0,
197};
198static const YYINT empty_check[] = {                     -1,
199};
200#if YYBTYACC
201static const YYINT empty_ctable[] = {                    -1,
202};
203#endif
204#define YYFINAL 1
205#ifndef YYDEBUG
206#define YYDEBUG 0
207#endif
208#define YYMAXTOKEN 256
209#define YYUNDFTOKEN 259
210#define YYTRANSLATE(a) ((a) > YYMAXTOKEN ? YYUNDFTOKEN : (a))
211#if YYDEBUG
212static const char *const empty_name[] = {
213
214"$end",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,
2150,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,0,
2160,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,0,
2170,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,0,
2180,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,0,
2190,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,0,
2200,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"error","$accept","start",
221"illegal-symbol",
222};
223static const char *const empty_rule[] = {
224"$accept : start",
225"start :",
226
227};
228#endif
229
230int      yydebug;
231int      yynerrs;
232
233int      yyerrflag;
234int      yychar;
235YYSTYPE  yyval;
236YYSTYPE  yylval;
237#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
238YYLTYPE  yyloc; /* position returned by actions */
239YYLTYPE  yylloc; /* position from the lexer */
240#endif
241
242#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
243#ifndef YYLLOC_DEFAULT
244#define YYLLOC_DEFAULT(loc, rhs, n) \
245do \
246{ \
247    if (n == 0) \
248    { \
249        (loc).first_line   = ((rhs)[-1]).last_line; \
250        (loc).first_column = ((rhs)[-1]).last_column; \
251        (loc).last_line    = ((rhs)[-1]).last_line; \
252        (loc).last_column  = ((rhs)[-1]).last_column; \
253    } \
254    else \
255    { \
256        (loc).first_line   = ((rhs)[ 0 ]).first_line; \
257        (loc).first_column = ((rhs)[ 0 ]).first_column; \
258        (loc).last_line    = ((rhs)[n-1]).last_line; \
259        (loc).last_column  = ((rhs)[n-1]).last_column; \
260    } \
261} while (0)
262#endif /* YYLLOC_DEFAULT */
263#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
264#if YYBTYACC
265
266#ifndef YYLVQUEUEGROWTH
267#define YYLVQUEUEGROWTH 32
268#endif
269#endif /* YYBTYACC */
270
271/* define the initial stack-sizes */
272#ifdef YYSTACKSIZE
273#undef YYMAXDEPTH
274#define YYMAXDEPTH  YYSTACKSIZE
275#else
276#ifdef YYMAXDEPTH
277#define YYSTACKSIZE YYMAXDEPTH
278#else
279#define YYSTACKSIZE 10000
280#define YYMAXDEPTH  10000
281#endif
282#endif
283
284#ifndef YYINITSTACKSIZE
285#define YYINITSTACKSIZE 200
286#endif
287
288typedef struct {
289    unsigned stacksize;
290    short    *s_base;
291    short    *s_mark;
292    short    *s_last;
293    YYSTYPE  *l_base;
294    YYSTYPE  *l_mark;
295#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
296    YYLTYPE  *p_base;
297    YYLTYPE  *p_mark;
298#endif
299} YYSTACKDATA;
300#if YYBTYACC
301
302struct YYParseState_s
303{
304    struct YYParseState_s *save;    /* Previously saved parser state */
305    YYSTACKDATA            yystack; /* saved parser stack */
306    int                    state;   /* saved parser state */
307    int                    errflag; /* saved error recovery status */
308    int                    lexeme;  /* saved index of the conflict lexeme in the lexical queue */
309    YYINT                  ctry;    /* saved index in yyctable[] for this conflict */
310};
311typedef struct YYParseState_s YYParseState;
312#endif /* YYBTYACC */
313/* variables for the parser stack */
314static YYSTACKDATA yystack;
315#if YYBTYACC
316
317/* Current parser state */
318static YYParseState *yyps = 0;
319
320/* yypath != NULL: do the full parse, starting at *yypath parser state. */
321static YYParseState *yypath = 0;
322
323/* Base of the lexical value queue */
324static YYSTYPE *yylvals = 0;
325
326/* Current position at lexical value queue */
327static YYSTYPE *yylvp = 0;
328
329/* End position of lexical value queue */
330static YYSTYPE *yylve = 0;
331
332/* The last allocated position at the lexical value queue */
333static YYSTYPE *yylvlim = 0;
334
335#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
336/* Base of the lexical position queue */
337static YYLTYPE *yylpsns = 0;
338
339/* Current position at lexical position queue */
340static YYLTYPE *yylpp = 0;
341
342/* End position of lexical position queue */
343static YYLTYPE *yylpe = 0;
344
345/* The last allocated position at the lexical position queue */
346static YYLTYPE *yylplim = 0;
347#endif
348
349/* Current position at lexical token queue */
350static short  *yylexp = 0;
351
352static short  *yylexemes = 0;
353#endif /* YYBTYACC */
354#line 13 "empty.y"
355
356#include <stdio.h>
357
358static int
359YYLEX_DECL() {
360  return -1;
361}
362
363static void
364YYERROR_DECL() {
365  printf("%s\n",s);
366}
367#line 368 "empty.tab.c"
368
369/* For use in generated program */
370#define yydepth (int)(yystack.s_mark - yystack.s_base)
371#if YYBTYACC
372#define yytrial (yyps->save)
373#endif /* YYBTYACC */
374
375#if YYDEBUG
376#include <stdio.h>         /* needed for printf */
377#endif
378
379#include <stdlib.h>        /* needed for malloc, etc */
380#include <string.h>        /* needed for memset */
381
382/* allocate initial stack or double stack size, up to YYMAXDEPTH */
383static int yygrowstack(YYSTACKDATA *data)
384{
385    int i;
386    unsigned newsize;
387    short *newss;
388    YYSTYPE *newvs;
389#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
390    YYLTYPE *newps;
391#endif
392
393    if ((newsize = data->stacksize) == 0)
394        newsize = YYINITSTACKSIZE;
395    else if (newsize >= YYMAXDEPTH)
396        return YYENOMEM;
397    else if ((newsize *= 2) > YYMAXDEPTH)
398        newsize = YYMAXDEPTH;
399
400    i = (int) (data->s_mark - data->s_base);
401    newss = (short *)realloc(data->s_base, newsize * sizeof(*newss));
402    if (newss == 0)
403        return YYENOMEM;
404
405    data->s_base = newss;
406    data->s_mark = newss + i;
407
408    newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
409    if (newvs == 0)
410        return YYENOMEM;
411
412    data->l_base = newvs;
413    data->l_mark = newvs + i;
414
415#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
416    newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
417    if (newps == 0)
418        return YYENOMEM;
419
420    data->p_base = newps;
421    data->p_mark = newps + i;
422#endif
423
424    data->stacksize = newsize;
425    data->s_last = data->s_base + newsize - 1;
426
427#if YYDEBUG
428    if (yydebug)
429        fprintf(stderr, "%sdebug: stack size increased to %d\n", YYPREFIX, newsize);
430#endif
431    return 0;
432}
433
434#if YYPURE || defined(YY_NO_LEAKS)
435static void yyfreestack(YYSTACKDATA *data)
436{
437    free(data->s_base);
438    free(data->l_base);
439#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
440    free(data->p_base);
441#endif
442    memset(data, 0, sizeof(*data));
443}
444#else
445#define yyfreestack(data) /* nothing */
446#endif /* YYPURE || defined(YY_NO_LEAKS) */
447#if YYBTYACC
448
449static YYParseState *
450yyNewState(unsigned size)
451{
452    YYParseState *p = (YYParseState *) malloc(sizeof(YYParseState));
453    if (p == NULL) return NULL;
454
455    p->yystack.stacksize = size;
456    if (size == 0)
457    {
458        p->yystack.s_base = NULL;
459        p->yystack.l_base = NULL;
460#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
461        p->yystack.p_base = NULL;
462#endif
463        return p;
464    }
465    p->yystack.s_base    = (short *) malloc(size * sizeof(short));
466    if (p->yystack.s_base == NULL) return NULL;
467    p->yystack.l_base    = (YYSTYPE *) malloc(size * sizeof(YYSTYPE));
468    if (p->yystack.l_base == NULL) return NULL;
469    memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE));
470#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
471    p->yystack.p_base    = (YYLTYPE *) malloc(size * sizeof(YYLTYPE));
472    if (p->yystack.p_base == NULL) return NULL;
473    memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE));
474#endif
475
476    return p;
477}
478
479static void
480yyFreeState(YYParseState *p)
481{
482    yyfreestack(&p->yystack);
483    free(p);
484}
485#endif /* YYBTYACC */
486
487#define YYABORT  goto yyabort
488#define YYREJECT goto yyabort
489#define YYACCEPT goto yyaccept
490#define YYERROR  goto yyerrlab
491#if YYBTYACC
492#define YYVALID        do { if (yyps->save)            goto yyvalid; } while(0)
493#define YYVALID_NESTED do { if (yyps->save && \
494                                yyps->save->save == 0) goto yyvalid; } while(0)
495#endif /* YYBTYACC */
496
497int
498YYPARSE_DECL()
499{
500    int yym, yyn, yystate, yyresult;
501#if YYBTYACC
502    int yynewerrflag;
503    YYParseState *yyerrctx = NULL;
504#endif /* YYBTYACC */
505#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
506    YYLTYPE  yyerror_loc_range[2]; /* position of error start & end */
507#endif
508#if YYDEBUG
509    const char *yys;
510
511    if ((yys = getenv("YYDEBUG")) != 0)
512    {
513        yyn = *yys;
514        if (yyn >= '0' && yyn <= '9')
515            yydebug = yyn - '0';
516    }
517    if (yydebug)
518        fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
519#endif
520
521#if YYBTYACC
522    yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
523    yyps->save = 0;
524#endif /* YYBTYACC */
525    yynerrs = 0;
526    yyerrflag = 0;
527    yychar = YYEMPTY;
528    yystate = 0;
529
530#if YYPURE
531    memset(&yystack, 0, sizeof(yystack));
532#endif
533
534    if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
535    yystack.s_mark = yystack.s_base;
536    yystack.l_mark = yystack.l_base;
537#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
538    yystack.p_mark = yystack.p_base;
539#endif
540    yystate = 0;
541    *yystack.s_mark = 0;
542
543yyloop:
544    if ((yyn = yydefred[yystate]) != 0) goto yyreduce;
545    if (yychar < 0)
546    {
547#if YYBTYACC
548        do {
549        if (yylvp < yylve)
550        {
551            /* we're currently re-reading tokens */
552            yylval = *yylvp++;
553#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
554            yylloc = *yylpp++;
555#endif
556            yychar = *yylexp++;
557            break;
558        }
559        if (yyps->save)
560        {
561            /* in trial mode; save scanner results for future parse attempts */
562            if (yylvp == yylvlim)
563            {   /* Enlarge lexical value queue */
564                size_t p = (size_t) (yylvp - yylvals);
565                size_t s = (size_t) (yylvlim - yylvals);
566
567                s += YYLVQUEUEGROWTH;
568                if ((yylexemes = (short *)   realloc(yylexemes, s * sizeof(short))) == NULL) goto yyenomem;
569                if ((yylvals   = (YYSTYPE *) realloc(yylvals, s * sizeof(YYSTYPE))) == NULL) goto yyenomem;
570#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
571                if ((yylpsns   = (YYLTYPE *) realloc(yylpsns, s * sizeof(YYLTYPE))) == NULL) goto yyenomem;
572#endif
573                yylvp   = yylve = yylvals + p;
574                yylvlim = yylvals + s;
575#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
576                yylpp   = yylpe = yylpsns + p;
577                yylplim = yylpsns + s;
578#endif
579                yylexp  = yylexemes + p;
580            }
581            *yylexp = (short) YYLEX;
582            *yylvp++ = yylval;
583            yylve++;
584#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
585            *yylpp++ = yylloc;
586            yylpe++;
587#endif
588            yychar = *yylexp++;
589            break;
590        }
591        /* normal operation, no conflict encountered */
592#endif /* YYBTYACC */
593        yychar = YYLEX;
594#if YYBTYACC
595        } while (0);
596#endif /* YYBTYACC */
597        if (yychar < 0) yychar = YYEOF;
598        /* if ((yychar = YYLEX) < 0) yychar = YYEOF; */
599#if YYDEBUG
600        if (yydebug)
601        {
602            yys = yyname[YYTRANSLATE(yychar)];
603            fprintf(stderr, "%s[%d]: state %d, reading token %d (%s)",
604                            YYDEBUGSTR, yydepth, yystate, yychar, yys);
605#ifdef YYSTYPE_TOSTRING
606#if YYBTYACC
607            if (!yytrial)
608#endif /* YYBTYACC */
609                fprintf(stderr, " <%s>", YYSTYPE_TOSTRING(yychar, yylval));
610#endif
611            fputc('\n', stderr);
612        }
613#endif
614    }
615#if YYBTYACC
616
617    /* Do we have a conflict? */
618    if (((yyn = yycindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
619        yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
620    {
621        YYINT ctry;
622
623        if (yypath)
624        {
625            YYParseState *save;
626#if YYDEBUG
627            if (yydebug)
628                fprintf(stderr, "%s[%d]: CONFLICT in state %d: following successful trial parse\n",
629                                YYDEBUGSTR, yydepth, yystate);
630#endif
631            /* Switch to the next conflict context */
632            save = yypath;
633            yypath = save->save;
634            save->save = NULL;
635            ctry = save->ctry;
636            if (save->state != yystate) YYABORT;
637            yyFreeState(save);
638
639        }
640        else
641        {
642
643            /* Unresolved conflict - start/continue trial parse */
644            YYParseState *save;
645#if YYDEBUG
646            if (yydebug)
647            {
648                fprintf(stderr, "%s[%d]: CONFLICT in state %d. ", YYDEBUGSTR, yydepth, yystate);
649                if (yyps->save)
650                    fputs("ALREADY in conflict, continuing trial parse.\n", stderr);
651                else
652                    fputs("Starting trial parse.\n", stderr);
653            }
654#endif
655            save                  = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
656            if (save == NULL) goto yyenomem;
657            save->save            = yyps->save;
658            save->state           = yystate;
659            save->errflag         = yyerrflag;
660            save->yystack.s_mark  = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
661            memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
662            save->yystack.l_mark  = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
663            memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
664#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
665            save->yystack.p_mark  = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
666            memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
667#endif
668            ctry                  = yytable[yyn];
669            if (yyctable[ctry] == -1)
670            {
671#if YYDEBUG
672                if (yydebug && yychar >= YYEOF)
673                    fprintf(stderr, "%s[%d]: backtracking 1 token\n", YYDEBUGSTR, yydepth);
674#endif
675                ctry++;
676            }
677            save->ctry = ctry;
678            if (yyps->save == NULL)
679            {
680                /* If this is a first conflict in the stack, start saving lexemes */
681                if (!yylexemes)
682                {
683                    yylexemes = (short *) malloc((YYLVQUEUEGROWTH) * sizeof(short));
684                    if (yylexemes == NULL) goto yyenomem;
685                    yylvals   = (YYSTYPE *) malloc((YYLVQUEUEGROWTH) * sizeof(YYSTYPE));
686                    if (yylvals == NULL) goto yyenomem;
687                    yylvlim   = yylvals + YYLVQUEUEGROWTH;
688#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
689                    yylpsns   = (YYLTYPE *) malloc((YYLVQUEUEGROWTH) * sizeof(YYLTYPE));
690                    if (yylpsns == NULL) goto yyenomem;
691                    yylplim   = yylpsns + YYLVQUEUEGROWTH;
692#endif
693                }
694                if (yylvp == yylve)
695                {
696                    yylvp  = yylve = yylvals;
697#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
698                    yylpp  = yylpe = yylpsns;
699#endif
700                    yylexp = yylexemes;
701                    if (yychar >= YYEOF)
702                    {
703                        *yylve++ = yylval;
704#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
705                        *yylpe++ = yylloc;
706#endif
707                        *yylexp  = (short) yychar;
708                        yychar   = YYEMPTY;
709                    }
710                }
711            }
712            if (yychar >= YYEOF)
713            {
714                yylvp--;
715#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
716                yylpp--;
717#endif
718                yylexp--;
719                yychar = YYEMPTY;
720            }
721            save->lexeme = (int) (yylvp - yylvals);
722            yyps->save   = save;
723        }
724        if (yytable[yyn] == ctry)
725        {
726#if YYDEBUG
727            if (yydebug)
728                fprintf(stderr, "%s[%d]: state %d, shifting to state %d\n",
729                                YYDEBUGSTR, yydepth, yystate, yyctable[ctry]);
730#endif
731            if (yychar < 0)
732            {
733                yylvp++;
734#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
735                yylpp++;
736#endif
737                yylexp++;
738            }
739            if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
740                goto yyoverflow;
741            yystate = yyctable[ctry];
742            *++yystack.s_mark = (short) yystate;
743            *++yystack.l_mark = yylval;
744#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
745            *++yystack.p_mark = yylloc;
746#endif
747            yychar  = YYEMPTY;
748            if (yyerrflag > 0) --yyerrflag;
749            goto yyloop;
750        }
751        else
752        {
753            yyn = yyctable[ctry];
754            goto yyreduce;
755        }
756    } /* End of code dealing with conflicts */
757#endif /* YYBTYACC */
758    if (((yyn = yysindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
759            yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
760    {
761#if YYDEBUG
762        if (yydebug)
763            fprintf(stderr, "%s[%d]: state %d, shifting to state %d\n",
764                            YYDEBUGSTR, yydepth, yystate, yytable[yyn]);
765#endif
766        if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
767        yystate = yytable[yyn];
768        *++yystack.s_mark = yytable[yyn];
769        *++yystack.l_mark = yylval;
770#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
771        *++yystack.p_mark = yylloc;
772#endif
773        yychar = YYEMPTY;
774        if (yyerrflag > 0)  --yyerrflag;
775        goto yyloop;
776    }
777    if (((yyn = yyrindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
778            yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
779    {
780        yyn = yytable[yyn];
781        goto yyreduce;
782    }
783    if (yyerrflag != 0) goto yyinrecovery;
784#if YYBTYACC
785
786    yynewerrflag = 1;
787    goto yyerrhandler;
788    goto yyerrlab;
789
790yyerrlab:
791    yynewerrflag = 0;
792yyerrhandler:
793    while (yyps->save)
794    {
795        int ctry;
796        YYParseState *save = yyps->save;
797#if YYDEBUG
798        if (yydebug)
799            fprintf(stderr, "%s[%d]: ERROR in state %d, CONFLICT BACKTRACKING to state %d, %d tokens\n",
800                            YYDEBUGSTR, yydepth, yystate, yyps->save->state,
801                    (int)(yylvp - yylvals - yyps->save->lexeme));
802#endif
803        /* Memorize most forward-looking error state in case it's really an error. */
804        if (yyerrctx == NULL || yyerrctx->lexeme < yylvp - yylvals)
805        {
806            /* Free old saved error context state */
807            if (yyerrctx) yyFreeState(yyerrctx);
808            /* Create and fill out new saved error context state */
809            yyerrctx                 = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
810            if (yyerrctx == NULL) goto yyenomem;
811            yyerrctx->save           = yyps->save;
812            yyerrctx->state          = yystate;
813            yyerrctx->errflag        = yyerrflag;
814            yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
815            memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
816            yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
817            memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
818#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
819            yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
820            memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
821#endif
822            yyerrctx->lexeme         = (int) (yylvp - yylvals);
823        }
824        yylvp          = yylvals   + save->lexeme;
825#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
826        yylpp          = yylpsns   + save->lexeme;
827#endif
828        yylexp         = yylexemes + save->lexeme;
829        yychar         = YYEMPTY;
830        yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
831        memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
832        yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
833        memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
834#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
835        yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
836        memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
837#endif
838        ctry           = ++save->ctry;
839        yystate        = save->state;
840        /* We tried shift, try reduce now */
841        if ((yyn = yyctable[ctry]) >= 0) goto yyreduce;
842        yyps->save     = save->save;
843        save->save     = NULL;
844        yyFreeState(save);
845
846        /* Nothing left on the stack -- error */
847        if (!yyps->save)
848        {
849#if YYDEBUG
850            if (yydebug)
851                fprintf(stderr, "%sdebug[%d,trial]: trial parse FAILED, entering ERROR mode\n",
852                                YYPREFIX, yydepth);
853#endif
854            /* Restore state as it was in the most forward-advanced error */
855            yylvp          = yylvals   + yyerrctx->lexeme;
856#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
857            yylpp          = yylpsns   + yyerrctx->lexeme;
858#endif
859            yylexp         = yylexemes + yyerrctx->lexeme;
860            yychar         = yylexp[-1];
861            yylval         = yylvp[-1];
862#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
863            yylloc         = yylpp[-1];
864#endif
865            yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
866            memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
867            yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
868            memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
869#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
870            yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
871            memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
872#endif
873            yystate        = yyerrctx->state;
874            yyFreeState(yyerrctx);
875            yyerrctx       = NULL;
876        }
877        yynewerrflag = 1;
878    }
879    if (yynewerrflag == 0) goto yyinrecovery;
880#endif /* YYBTYACC */
881
882    YYERROR_CALL("syntax error");
883#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
884    yyerror_loc_range[0] = yylloc; /* lookahead position is error start position */
885#endif
886
887#if !YYBTYACC
888    goto yyerrlab;
889yyerrlab:
890#endif
891    ++yynerrs;
892
893yyinrecovery:
894    if (yyerrflag < 3)
895    {
896        yyerrflag = 3;
897        for (;;)
898        {
899            if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
900                    yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) YYERRCODE)
901            {
902#if YYDEBUG
903                if (yydebug)
904                    fprintf(stderr, "%s[%d]: state %d, error recovery shifting to state %d\n",
905                                    YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
906#endif
907                if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
908                yystate = yytable[yyn];
909                *++yystack.s_mark = yytable[yyn];
910                *++yystack.l_mark = yylval;
911#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
912                /* lookahead position is error end position */
913                yyerror_loc_range[1] = yylloc;
914                YYLLOC_DEFAULT(yyloc, yyerror_loc_range, 2); /* position of error span */
915                *++yystack.p_mark = yyloc;
916#endif
917                goto yyloop;
918            }
919            else
920            {
921#if YYDEBUG
922                if (yydebug)
923                    fprintf(stderr, "%s[%d]: error recovery discarding state %d\n",
924                                    YYDEBUGSTR, yydepth, *yystack.s_mark);
925#endif
926                if (yystack.s_mark <= yystack.s_base) goto yyabort;
927#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
928                /* the current TOS position is the error start position */
929                yyerror_loc_range[0] = *yystack.p_mark;
930#endif
931#if defined(YYDESTRUCT_CALL)
932#if YYBTYACC
933                if (!yytrial)
934#endif /* YYBTYACC */
935#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
936                    YYDESTRUCT_CALL("error: discarding state",
937                                    yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
938#else
939                    YYDESTRUCT_CALL("error: discarding state",
940                                    yystos[*yystack.s_mark], yystack.l_mark);
941#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
942#endif /* defined(YYDESTRUCT_CALL) */
943                --yystack.s_mark;
944                --yystack.l_mark;
945#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
946                --yystack.p_mark;
947#endif
948            }
949        }
950    }
951    else
952    {
953        if (yychar == YYEOF) goto yyabort;
954#if YYDEBUG
955        if (yydebug)
956        {
957            yys = yyname[YYTRANSLATE(yychar)];
958            fprintf(stderr, "%s[%d]: state %d, error recovery discarding token %d (%s)\n",
959                            YYDEBUGSTR, yydepth, yystate, yychar, yys);
960        }
961#endif
962#if defined(YYDESTRUCT_CALL)
963#if YYBTYACC
964        if (!yytrial)
965#endif /* YYBTYACC */
966#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
967            YYDESTRUCT_CALL("error: discarding token", yychar, &yylval, &yylloc);
968#else
969            YYDESTRUCT_CALL("error: discarding token", yychar, &yylval);
970#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
971#endif /* defined(YYDESTRUCT_CALL) */
972        yychar = YYEMPTY;
973        goto yyloop;
974    }
975
976yyreduce:
977    yym = yylen[yyn];
978#if YYDEBUG
979    if (yydebug)
980    {
981        fprintf(stderr, "%s[%d]: state %d, reducing by rule %d (%s)",
982                        YYDEBUGSTR, yydepth, yystate, yyn, yyrule[yyn]);
983#ifdef YYSTYPE_TOSTRING
984#if YYBTYACC
985        if (!yytrial)
986#endif /* YYBTYACC */
987            if (yym > 0)
988            {
989                int i;
990                fputc('<', stderr);
991                for (i = yym; i > 0; i--)
992                {
993                    if (i != yym) fputs(", ", stderr);
994                    fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
995                                           yystack.l_mark[1-i]), stderr);
996                }
997                fputc('>', stderr);
998            }
999#endif
1000        fputc('\n', stderr);
1001    }
1002#endif
1003    if (yym > 0)
1004        yyval = yystack.l_mark[1-yym];
1005    else
1006        memset(&yyval, 0, sizeof yyval);
1007#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1008
1009    /* Perform position reduction */
1010    memset(&yyloc, 0, sizeof(yyloc));
1011#if YYBTYACC
1012    if (!yytrial)
1013#endif /* YYBTYACC */
1014    {
1015        YYLLOC_DEFAULT(yyloc, &yystack.p_mark[1-yym], yym);
1016        /* just in case YYERROR is invoked within the action, save
1017           the start of the rhs as the error start position */
1018        yyerror_loc_range[0] = yystack.p_mark[1-yym];
1019    }
1020#endif
1021
1022    switch (yyn)
1023    {
1024    default:
1025        break;
1026    }
1027    yystack.s_mark -= yym;
1028    yystate = *yystack.s_mark;
1029    yystack.l_mark -= yym;
1030#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1031    yystack.p_mark -= yym;
1032#endif
1033    yym = yylhs[yyn];
1034    if (yystate == 0 && yym == 0)
1035    {
1036#if YYDEBUG
1037        if (yydebug)
1038        {
1039            fprintf(stderr, "%s[%d]: after reduction, ", YYDEBUGSTR, yydepth);
1040#ifdef YYSTYPE_TOSTRING
1041#if YYBTYACC
1042            if (!yytrial)
1043#endif /* YYBTYACC */
1044                fprintf(stderr, "result is <%s>, ", YYSTYPE_TOSTRING(yystos[YYFINAL], yyval));
1045#endif
1046            fprintf(stderr, "shifting from state 0 to final state %d\n", YYFINAL);
1047        }
1048#endif
1049        yystate = YYFINAL;
1050        *++yystack.s_mark = YYFINAL;
1051        *++yystack.l_mark = yyval;
1052#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1053        *++yystack.p_mark = yyloc;
1054#endif
1055        if (yychar < 0)
1056        {
1057#if YYBTYACC
1058            do {
1059            if (yylvp < yylve)
1060            {
1061                /* we're currently re-reading tokens */
1062                yylval = *yylvp++;
1063#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1064                yylloc = *yylpp++;
1065#endif
1066                yychar = *yylexp++;
1067                break;
1068            }
1069            if (yyps->save)
1070            {
1071                /* in trial mode; save scanner results for future parse attempts */
1072                if (yylvp == yylvlim)
1073                {   /* Enlarge lexical value queue */
1074                    size_t p = (size_t) (yylvp - yylvals);
1075                    size_t s = (size_t) (yylvlim - yylvals);
1076
1077                    s += YYLVQUEUEGROWTH;
1078                    if ((yylexemes = (short *)   realloc(yylexemes, s * sizeof(short))) == NULL)
1079                        goto yyenomem;
1080                    if ((yylvals   = (YYSTYPE *) realloc(yylvals, s * sizeof(YYSTYPE))) == NULL)
1081                        goto yyenomem;
1082#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1083                    if ((yylpsns   = (YYLTYPE *) realloc(yylpsns, s * sizeof(YYLTYPE))) == NULL)
1084                        goto yyenomem;
1085#endif
1086                    yylvp   = yylve = yylvals + p;
1087                    yylvlim = yylvals + s;
1088#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1089                    yylpp   = yylpe = yylpsns + p;
1090                    yylplim = yylpsns + s;
1091#endif
1092                    yylexp  = yylexemes + p;
1093                }
1094                *yylexp = (short) YYLEX;
1095                *yylvp++ = yylval;
1096                yylve++;
1097#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1098                *yylpp++ = yylloc;
1099                yylpe++;
1100#endif
1101                yychar = *yylexp++;
1102                break;
1103            }
1104            /* normal operation, no conflict encountered */
1105#endif /* YYBTYACC */
1106            yychar = YYLEX;
1107#if YYBTYACC
1108            } while (0);
1109#endif /* YYBTYACC */
1110            if (yychar < 0) yychar = YYEOF;
1111            /* if ((yychar = YYLEX) < 0) yychar = YYEOF; */
1112#if YYDEBUG
1113            if (yydebug)
1114            {
1115                yys = yyname[YYTRANSLATE(yychar)];
1116                fprintf(stderr, "%s[%d]: state %d, reading %d (%s)\n",
1117                                YYDEBUGSTR, yydepth, YYFINAL, yychar, yys);
1118            }
1119#endif
1120        }
1121        if (yychar == YYEOF) goto yyaccept;
1122        goto yyloop;
1123    }
1124    if (((yyn = yygindex[yym]) != 0) && (yyn += yystate) >= 0 &&
1125            yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yystate)
1126        yystate = yytable[yyn];
1127    else
1128        yystate = yydgoto[yym];
1129#if YYDEBUG
1130    if (yydebug)
1131    {
1132        fprintf(stderr, "%s[%d]: after reduction, ", YYDEBUGSTR, yydepth);
1133#ifdef YYSTYPE_TOSTRING
1134#if YYBTYACC
1135        if (!yytrial)
1136#endif /* YYBTYACC */
1137            fprintf(stderr, "result is <%s>, ", YYSTYPE_TOSTRING(yystos[yystate], yyval));
1138#endif
1139        fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
1140    }
1141#endif
1142    if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1143    *++yystack.s_mark = (short) yystate;
1144    *++yystack.l_mark = yyval;
1145#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1146    *++yystack.p_mark = yyloc;
1147#endif
1148    goto yyloop;
1149#if YYBTYACC
1150
1151    /* Reduction declares that this path is valid. Set yypath and do a full parse */
1152yyvalid:
1153    if (yypath) YYABORT;
1154    while (yyps->save)
1155    {
1156        YYParseState *save = yyps->save;
1157        yyps->save = save->save;
1158        save->save = yypath;
1159        yypath = save;
1160    }
1161#if YYDEBUG
1162    if (yydebug)
1163        fprintf(stderr, "%s[%d]: state %d, CONFLICT trial successful, backtracking to state %d, %d tokens\n",
1164                        YYDEBUGSTR, yydepth, yystate, yypath->state, (int)(yylvp - yylvals - yypath->lexeme));
1165#endif
1166    if (yyerrctx)
1167    {
1168        yyFreeState(yyerrctx);
1169        yyerrctx = NULL;
1170    }
1171    yylvp          = yylvals + yypath->lexeme;
1172#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1173    yylpp          = yylpsns + yypath->lexeme;
1174#endif
1175    yylexp         = yylexemes + yypath->lexeme;
1176    yychar         = YYEMPTY;
1177    yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
1178    memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1179    yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
1180    memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1181#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1182    yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
1183    memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1184#endif
1185    yystate        = yypath->state;
1186    goto yyloop;
1187#endif /* YYBTYACC */
1188
1189yyoverflow:
1190    YYERROR_CALL("yacc stack overflow");
1191#if YYBTYACC
1192    goto yyabort_nomem;
1193yyenomem:
1194    YYERROR_CALL("memory exhausted");
1195yyabort_nomem:
1196#endif /* YYBTYACC */
1197    yyresult = 2;
1198    goto yyreturn;
1199
1200yyabort:
1201    yyresult = 1;
1202    goto yyreturn;
1203
1204yyaccept:
1205#if YYBTYACC
1206    if (yyps->save) goto yyvalid;
1207#endif /* YYBTYACC */
1208    yyresult = 0;
1209
1210yyreturn:
1211#if defined(YYDESTRUCT_CALL)
1212    if (yychar != YYEOF && yychar != YYEMPTY)
1213#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1214        YYDESTRUCT_CALL("cleanup: discarding token", yychar, &yylval, &yylloc);
1215#else
1216        YYDESTRUCT_CALL("cleanup: discarding token", yychar, &yylval);
1217#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
1218
1219    {
1220        YYSTYPE *pv;
1221#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
1222        YYLTYPE *pp;
1223
1224        for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
1225             YYDESTRUCT_CALL("cleanup: discarding state",
1226                             yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
1227#else
1228        for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
1229             YYDESTRUCT_CALL("cleanup: discarding state",
1230                             yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
1231#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
1232    }
1233#endif /* defined(YYDESTRUCT_CALL) */
1234
1235#if YYBTYACC
1236    if (yyerrctx)
1237    {
1238        yyFreeState(yyerrctx);
1239        yyerrctx = NULL;
1240    }
1241    while (yyps)
1242    {
1243        YYParseState *save = yyps;
1244        yyps = save->save;
1245        save->save = NULL;
1246        yyFreeState(save);
1247    }
1248    while (yypath)
1249    {
1250        YYParseState *save = yypath;
1251        yypath = save->save;
1252        save->save = NULL;
1253        yyFreeState(save);
1254    }
1255#endif /* YYBTYACC */
1256    yyfreestack(&yystack);
1257    return (yyresult);
1258}
1259