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