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