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