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