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