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