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