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