Home | History | Annotate | Line # | Download | only in btyacc
err_syntax10.tab.c revision 1.2.4.1
      1 /*	$NetBSD: err_syntax10.tab.c,v 1.2.4.1 2017/07/18 18:09:43 snj 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 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    524     memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
    525 #endif
    526 
    527 #if YYBTYACC
    528     yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
    529     yyps->save = 0;
    530 #endif /* YYBTYACC */
    531     yym = 0;
    532     yyn = 0;
    533     yynerrs = 0;
    534     yyerrflag = 0;
    535     yychar = YYEMPTY;
    536     yystate = 0;
    537 
    538 #if YYPURE
    539     memset(&yystack, 0, sizeof(yystack));
    540 #endif
    541 
    542     if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
    543     yystack.s_mark = yystack.s_base;
    544     yystack.l_mark = yystack.l_base;
    545 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    546     yystack.p_mark = yystack.p_base;
    547 #endif
    548     yystate = 0;
    549     *yystack.s_mark = 0;
    550 
    551 yyloop:
    552     if ((yyn = yydefred[yystate]) != 0) goto yyreduce;
    553     if (yychar < 0)
    554     {
    555 #if YYBTYACC
    556         do {
    557         if (yylvp < yylve)
    558         {
    559             /* we're currently re-reading tokens */
    560             yylval = *yylvp++;
    561 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    562             yylloc = *yylpp++;
    563 #endif
    564             yychar = *yylexp++;
    565             break;
    566         }
    567         if (yyps->save)
    568         {
    569             /* in trial mode; save scanner results for future parse attempts */
    570             if (yylvp == yylvlim)
    571             {   /* Enlarge lexical value queue */
    572                 size_t p = (size_t) (yylvp - yylvals);
    573                 size_t s = (size_t) (yylvlim - yylvals);
    574 
    575                 s += YYLVQUEUEGROWTH;
    576                 if ((yylexemes = realloc(yylexemes, s * sizeof(YYINT))) == NULL) goto yyenomem;
    577                 if ((yylvals   = realloc(yylvals, s * sizeof(YYSTYPE))) == NULL) goto yyenomem;
    578 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    579                 if ((yylpsns   = realloc(yylpsns, s * sizeof(YYLTYPE))) == NULL) goto yyenomem;
    580 #endif
    581                 yylvp   = yylve = yylvals + p;
    582                 yylvlim = yylvals + s;
    583 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    584                 yylpp   = yylpe = yylpsns + p;
    585                 yylplim = yylpsns + s;
    586 #endif
    587                 yylexp  = yylexemes + p;
    588             }
    589             *yylexp = (YYINT) YYLEX;
    590             *yylvp++ = yylval;
    591             yylve++;
    592 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    593             *yylpp++ = yylloc;
    594             yylpe++;
    595 #endif
    596             yychar = *yylexp++;
    597             break;
    598         }
    599         /* normal operation, no conflict encountered */
    600 #endif /* YYBTYACC */
    601         yychar = YYLEX;
    602 #if YYBTYACC
    603         } while (0);
    604 #endif /* YYBTYACC */
    605         if (yychar < 0) yychar = YYEOF;
    606 #if YYDEBUG
    607         if (yydebug)
    608         {
    609             if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
    610             fprintf(stderr, "%s[%d]: state %d, reading token %d (%s)",
    611                             YYDEBUGSTR, yydepth, yystate, yychar, yys);
    612 #ifdef YYSTYPE_TOSTRING
    613 #if YYBTYACC
    614             if (!yytrial)
    615 #endif /* YYBTYACC */
    616                 fprintf(stderr, " <%s>", YYSTYPE_TOSTRING(yychar, yylval));
    617 #endif
    618             fputc('\n', stderr);
    619         }
    620 #endif
    621     }
    622 #if YYBTYACC
    623 
    624     /* Do we have a conflict? */
    625     if (((yyn = yycindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
    626         yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
    627     {
    628         YYINT ctry;
    629 
    630         if (yypath)
    631         {
    632             YYParseState *save;
    633 #if YYDEBUG
    634             if (yydebug)
    635                 fprintf(stderr, "%s[%d]: CONFLICT in state %d: following successful trial parse\n",
    636                                 YYDEBUGSTR, yydepth, yystate);
    637 #endif
    638             /* Switch to the next conflict context */
    639             save = yypath;
    640             yypath = save->save;
    641             save->save = NULL;
    642             ctry = save->ctry;
    643             if (save->state != yystate) YYABORT;
    644             yyFreeState(save);
    645 
    646         }
    647         else
    648         {
    649 
    650             /* Unresolved conflict - start/continue trial parse */
    651             YYParseState *save;
    652 #if YYDEBUG
    653             if (yydebug)
    654             {
    655                 fprintf(stderr, "%s[%d]: CONFLICT in state %d. ", YYDEBUGSTR, yydepth, yystate);
    656                 if (yyps->save)
    657                     fputs("ALREADY in conflict, continuing trial parse.\n", stderr);
    658                 else
    659                     fputs("Starting trial parse.\n", stderr);
    660             }
    661 #endif
    662             save                  = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
    663             if (save == NULL) goto yyenomem;
    664             save->save            = yyps->save;
    665             save->state           = yystate;
    666             save->errflag         = yyerrflag;
    667             save->yystack.s_mark  = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
    668             memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
    669             save->yystack.l_mark  = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
    670             memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
    671 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    672             save->yystack.p_mark  = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
    673             memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
    674 #endif
    675             ctry                  = yytable[yyn];
    676             if (yyctable[ctry] == -1)
    677             {
    678 #if YYDEBUG
    679                 if (yydebug && yychar >= YYEOF)
    680                     fprintf(stderr, "%s[%d]: backtracking 1 token\n", YYDEBUGSTR, yydepth);
    681 #endif
    682                 ctry++;
    683             }
    684             save->ctry = ctry;
    685             if (yyps->save == NULL)
    686             {
    687                 /* If this is a first conflict in the stack, start saving lexemes */
    688                 if (!yylexemes)
    689                 {
    690                     yylexemes = malloc((YYLVQUEUEGROWTH) * sizeof(YYINT));
    691                     if (yylexemes == NULL) goto yyenomem;
    692                     yylvals   = (YYSTYPE *) malloc((YYLVQUEUEGROWTH) * sizeof(YYSTYPE));
    693                     if (yylvals == NULL) goto yyenomem;
    694                     yylvlim   = yylvals + YYLVQUEUEGROWTH;
    695 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    696                     yylpsns   = (YYLTYPE *) malloc((YYLVQUEUEGROWTH) * sizeof(YYLTYPE));
    697                     if (yylpsns == NULL) goto yyenomem;
    698                     yylplim   = yylpsns + YYLVQUEUEGROWTH;
    699 #endif
    700                 }
    701                 if (yylvp == yylve)
    702                 {
    703                     yylvp  = yylve = yylvals;
    704 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    705                     yylpp  = yylpe = yylpsns;
    706 #endif
    707                     yylexp = yylexemes;
    708                     if (yychar >= YYEOF)
    709                     {
    710                         *yylve++ = yylval;
    711 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    712                         *yylpe++ = yylloc;
    713 #endif
    714                         *yylexp  = (YYINT) yychar;
    715                         yychar   = YYEMPTY;
    716                     }
    717                 }
    718             }
    719             if (yychar >= YYEOF)
    720             {
    721                 yylvp--;
    722 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    723                 yylpp--;
    724 #endif
    725                 yylexp--;
    726                 yychar = YYEMPTY;
    727             }
    728             save->lexeme = (int) (yylvp - yylvals);
    729             yyps->save   = save;
    730         }
    731         if (yytable[yyn] == ctry)
    732         {
    733 #if YYDEBUG
    734             if (yydebug)
    735                 fprintf(stderr, "%s[%d]: state %d, shifting to state %d\n",
    736                                 YYDEBUGSTR, yydepth, yystate, yyctable[ctry]);
    737 #endif
    738             if (yychar < 0)
    739             {
    740                 yylvp++;
    741 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    742                 yylpp++;
    743 #endif
    744                 yylexp++;
    745             }
    746             if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
    747                 goto yyoverflow;
    748             yystate = yyctable[ctry];
    749             *++yystack.s_mark = (YYINT) yystate;
    750             *++yystack.l_mark = yylval;
    751 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    752             *++yystack.p_mark = yylloc;
    753 #endif
    754             yychar  = YYEMPTY;
    755             if (yyerrflag > 0) --yyerrflag;
    756             goto yyloop;
    757         }
    758         else
    759         {
    760             yyn = yyctable[ctry];
    761             goto yyreduce;
    762         }
    763     } /* End of code dealing with conflicts */
    764 #endif /* YYBTYACC */
    765     if (((yyn = yysindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
    766             yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
    767     {
    768 #if YYDEBUG
    769         if (yydebug)
    770             fprintf(stderr, "%s[%d]: state %d, shifting to state %d\n",
    771                             YYDEBUGSTR, yydepth, yystate, yytable[yyn]);
    772 #endif
    773         if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
    774         yystate = yytable[yyn];
    775         *++yystack.s_mark = yytable[yyn];
    776         *++yystack.l_mark = yylval;
    777 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    778         *++yystack.p_mark = yylloc;
    779 #endif
    780         yychar = YYEMPTY;
    781         if (yyerrflag > 0)  --yyerrflag;
    782         goto yyloop;
    783     }
    784     if (((yyn = yyrindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
    785             yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
    786     {
    787         yyn = yytable[yyn];
    788         goto yyreduce;
    789     }
    790     if (yyerrflag != 0) goto yyinrecovery;
    791 #if YYBTYACC
    792 
    793     yynewerrflag = 1;
    794     goto yyerrhandler;
    795     goto yyerrlab; /* redundant goto avoids 'unused label' warning */
    796 
    797 yyerrlab:
    798     /* explicit YYERROR from an action -- pop the rhs of the rule reduced
    799      * before looking for error recovery */
    800     yystack.s_mark -= yym;
    801     yystate = *yystack.s_mark;
    802     yystack.l_mark -= yym;
    803 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    804     yystack.p_mark -= yym;
    805 #endif
    806 
    807     yynewerrflag = 0;
    808 yyerrhandler:
    809     while (yyps->save)
    810     {
    811         int ctry;
    812         YYParseState *save = yyps->save;
    813 #if YYDEBUG
    814         if (yydebug)
    815             fprintf(stderr, "%s[%d]: ERROR in state %d, CONFLICT BACKTRACKING to state %d, %d tokens\n",
    816                             YYDEBUGSTR, yydepth, yystate, yyps->save->state,
    817                     (int)(yylvp - yylvals - yyps->save->lexeme));
    818 #endif
    819         /* Memorize most forward-looking error state in case it's really an error. */
    820         if (yyerrctx == NULL || yyerrctx->lexeme < yylvp - yylvals)
    821         {
    822             /* Free old saved error context state */
    823             if (yyerrctx) yyFreeState(yyerrctx);
    824             /* Create and fill out new saved error context state */
    825             yyerrctx                 = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
    826             if (yyerrctx == NULL) goto yyenomem;
    827             yyerrctx->save           = yyps->save;
    828             yyerrctx->state          = yystate;
    829             yyerrctx->errflag        = yyerrflag;
    830             yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
    831             memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
    832             yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
    833             memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
    834 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    835             yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
    836             memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
    837 #endif
    838             yyerrctx->lexeme         = (int) (yylvp - yylvals);
    839         }
    840         yylvp          = yylvals   + save->lexeme;
    841 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    842         yylpp          = yylpsns   + save->lexeme;
    843 #endif
    844         yylexp         = yylexemes + save->lexeme;
    845         yychar         = YYEMPTY;
    846         yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
    847         memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
    848         yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
    849         memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
    850 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    851         yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
    852         memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
    853 #endif
    854         ctry           = ++save->ctry;
    855         yystate        = save->state;
    856         /* We tried shift, try reduce now */
    857         if ((yyn = yyctable[ctry]) >= 0) goto yyreduce;
    858         yyps->save     = save->save;
    859         save->save     = NULL;
    860         yyFreeState(save);
    861 
    862         /* Nothing left on the stack -- error */
    863         if (!yyps->save)
    864         {
    865 #if YYDEBUG
    866             if (yydebug)
    867                 fprintf(stderr, "%sdebug[%d,trial]: trial parse FAILED, entering ERROR mode\n",
    868                                 YYPREFIX, yydepth);
    869 #endif
    870             /* Restore state as it was in the most forward-advanced error */
    871             yylvp          = yylvals   + yyerrctx->lexeme;
    872 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    873             yylpp          = yylpsns   + yyerrctx->lexeme;
    874 #endif
    875             yylexp         = yylexemes + yyerrctx->lexeme;
    876             yychar         = yylexp[-1];
    877             yylval         = yylvp[-1];
    878 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    879             yylloc         = yylpp[-1];
    880 #endif
    881             yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
    882             memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
    883             yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
    884             memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
    885 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    886             yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
    887             memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
    888 #endif
    889             yystate        = yyerrctx->state;
    890             yyFreeState(yyerrctx);
    891             yyerrctx       = NULL;
    892         }
    893         yynewerrflag = 1;
    894     }
    895     if (yynewerrflag == 0) goto yyinrecovery;
    896 #endif /* YYBTYACC */
    897 
    898     YYERROR_CALL("syntax error");
    899 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    900     yyerror_loc_range[0] = yylloc; /* lookahead position is error start position */
    901 #endif
    902 
    903 #if !YYBTYACC
    904     goto yyerrlab; /* redundant goto avoids 'unused label' warning */
    905 yyerrlab:
    906 #endif
    907     ++yynerrs;
    908 
    909 yyinrecovery:
    910     if (yyerrflag < 3)
    911     {
    912         yyerrflag = 3;
    913         for (;;)
    914         {
    915             if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
    916                     yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) YYERRCODE)
    917             {
    918 #if YYDEBUG
    919                 if (yydebug)
    920                     fprintf(stderr, "%s[%d]: state %d, error recovery shifting to state %d\n",
    921                                     YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
    922 #endif
    923                 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
    924                 yystate = yytable[yyn];
    925                 *++yystack.s_mark = yytable[yyn];
    926                 *++yystack.l_mark = yylval;
    927 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    928                 /* lookahead position is error end position */
    929                 yyerror_loc_range[1] = yylloc;
    930                 YYLLOC_DEFAULT(yyloc, yyerror_loc_range, 2); /* position of error span */
    931                 *++yystack.p_mark = yyloc;
    932 #endif
    933                 goto yyloop;
    934             }
    935             else
    936             {
    937 #if YYDEBUG
    938                 if (yydebug)
    939                     fprintf(stderr, "%s[%d]: error recovery discarding state %d\n",
    940                                     YYDEBUGSTR, yydepth, *yystack.s_mark);
    941 #endif
    942                 if (yystack.s_mark <= yystack.s_base) goto yyabort;
    943 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    944                 /* the current TOS position is the error start position */
    945                 yyerror_loc_range[0] = *yystack.p_mark;
    946 #endif
    947 #if defined(YYDESTRUCT_CALL)
    948 #if YYBTYACC
    949                 if (!yytrial)
    950 #endif /* YYBTYACC */
    951 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    952                     YYDESTRUCT_CALL("error: discarding state",
    953                                     yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
    954 #else
    955                     YYDESTRUCT_CALL("error: discarding state",
    956                                     yystos[*yystack.s_mark], yystack.l_mark);
    957 #endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
    958 #endif /* defined(YYDESTRUCT_CALL) */
    959                 --yystack.s_mark;
    960                 --yystack.l_mark;
    961 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    962                 --yystack.p_mark;
    963 #endif
    964             }
    965         }
    966     }
    967     else
    968     {
    969         if (yychar == YYEOF) goto yyabort;
    970 #if YYDEBUG
    971         if (yydebug)
    972         {
    973             if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
    974             fprintf(stderr, "%s[%d]: state %d, error recovery discarding token %d (%s)\n",
    975                             YYDEBUGSTR, yydepth, yystate, yychar, yys);
    976         }
    977 #endif
    978 #if defined(YYDESTRUCT_CALL)
    979 #if YYBTYACC
    980         if (!yytrial)
    981 #endif /* YYBTYACC */
    982 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    983             YYDESTRUCT_CALL("error: discarding token", yychar, &yylval, &yylloc);
    984 #else
    985             YYDESTRUCT_CALL("error: discarding token", yychar, &yylval);
    986 #endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
    987 #endif /* defined(YYDESTRUCT_CALL) */
    988         yychar = YYEMPTY;
    989         goto yyloop;
    990     }
    991 
    992 yyreduce:
    993     yym = yylen[yyn];
    994 #if YYDEBUG
    995     if (yydebug)
    996     {
    997         fprintf(stderr, "%s[%d]: state %d, reducing by rule %d (%s)",
    998                         YYDEBUGSTR, yydepth, yystate, yyn, yyrule[yyn]);
    999 #ifdef YYSTYPE_TOSTRING
   1000 #if YYBTYACC
   1001         if (!yytrial)
   1002 #endif /* YYBTYACC */
   1003             if (yym > 0)
   1004             {
   1005                 int i;
   1006                 fputc('<', stderr);
   1007                 for (i = yym; i > 0; i--)
   1008                 {
   1009                     if (i != yym) fputs(", ", stderr);
   1010                     fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
   1011                                            yystack.l_mark[1-i]), stderr);
   1012                 }
   1013                 fputc('>', stderr);
   1014             }
   1015 #endif
   1016         fputc('\n', stderr);
   1017     }
   1018 #endif
   1019     if (yym > 0)
   1020         yyval = yystack.l_mark[1-yym];
   1021     else
   1022         memset(&yyval, 0, sizeof yyval);
   1023 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1024 
   1025     /* Perform position reduction */
   1026     memset(&yyloc, 0, sizeof(yyloc));
   1027 #if YYBTYACC
   1028     if (!yytrial)
   1029 #endif /* YYBTYACC */
   1030     {
   1031         YYLLOC_DEFAULT(yyloc, &yystack.p_mark[1-yym], yym);
   1032         /* just in case YYERROR is invoked within the action, save
   1033            the start of the rhs as the error start position */
   1034         yyerror_loc_range[0] = yystack.p_mark[1-yym];
   1035     }
   1036 #endif
   1037 
   1038     switch (yyn)
   1039     {
   1040     default:
   1041         break;
   1042     }
   1043     yystack.s_mark -= yym;
   1044     yystate = *yystack.s_mark;
   1045     yystack.l_mark -= yym;
   1046 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1047     yystack.p_mark -= yym;
   1048 #endif
   1049     yym = yylhs[yyn];
   1050     if (yystate == 0 && yym == 0)
   1051     {
   1052 #if YYDEBUG
   1053         if (yydebug)
   1054         {
   1055             fprintf(stderr, "%s[%d]: after reduction, ", YYDEBUGSTR, yydepth);
   1056 #ifdef YYSTYPE_TOSTRING
   1057 #if YYBTYACC
   1058             if (!yytrial)
   1059 #endif /* YYBTYACC */
   1060                 fprintf(stderr, "result is <%s>, ", YYSTYPE_TOSTRING(yystos[YYFINAL], yyval));
   1061 #endif
   1062             fprintf(stderr, "shifting from state 0 to final state %d\n", YYFINAL);
   1063         }
   1064 #endif
   1065         yystate = YYFINAL;
   1066         *++yystack.s_mark = YYFINAL;
   1067         *++yystack.l_mark = yyval;
   1068 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1069         *++yystack.p_mark = yyloc;
   1070 #endif
   1071         if (yychar < 0)
   1072         {
   1073 #if YYBTYACC
   1074             do {
   1075             if (yylvp < yylve)
   1076             {
   1077                 /* we're currently re-reading tokens */
   1078                 yylval = *yylvp++;
   1079 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1080                 yylloc = *yylpp++;
   1081 #endif
   1082                 yychar = *yylexp++;
   1083                 break;
   1084             }
   1085             if (yyps->save)
   1086             {
   1087                 /* in trial mode; save scanner results for future parse attempts */
   1088                 if (yylvp == yylvlim)
   1089                 {   /* Enlarge lexical value queue */
   1090                     size_t p = (size_t) (yylvp - yylvals);
   1091                     size_t s = (size_t) (yylvlim - yylvals);
   1092 
   1093                     s += YYLVQUEUEGROWTH;
   1094                     if ((yylexemes = realloc(yylexemes, s * sizeof(YYINT))) == NULL)
   1095                         goto yyenomem;
   1096                     if ((yylvals   = realloc(yylvals, s * sizeof(YYSTYPE))) == NULL)
   1097                         goto yyenomem;
   1098 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1099                     if ((yylpsns   = realloc(yylpsns, s * sizeof(YYLTYPE))) == NULL)
   1100                         goto yyenomem;
   1101 #endif
   1102                     yylvp   = yylve = yylvals + p;
   1103                     yylvlim = yylvals + s;
   1104 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1105                     yylpp   = yylpe = yylpsns + p;
   1106                     yylplim = yylpsns + s;
   1107 #endif
   1108                     yylexp  = yylexemes + p;
   1109                 }
   1110                 *yylexp = (YYINT) YYLEX;
   1111                 *yylvp++ = yylval;
   1112                 yylve++;
   1113 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1114                 *yylpp++ = yylloc;
   1115                 yylpe++;
   1116 #endif
   1117                 yychar = *yylexp++;
   1118                 break;
   1119             }
   1120             /* normal operation, no conflict encountered */
   1121 #endif /* YYBTYACC */
   1122             yychar = YYLEX;
   1123 #if YYBTYACC
   1124             } while (0);
   1125 #endif /* YYBTYACC */
   1126             if (yychar < 0) yychar = YYEOF;
   1127 #if YYDEBUG
   1128             if (yydebug)
   1129             {
   1130                 if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
   1131                 fprintf(stderr, "%s[%d]: state %d, reading token %d (%s)\n",
   1132                                 YYDEBUGSTR, yydepth, YYFINAL, yychar, yys);
   1133             }
   1134 #endif
   1135         }
   1136         if (yychar == YYEOF) goto yyaccept;
   1137         goto yyloop;
   1138     }
   1139     if (((yyn = yygindex[yym]) != 0) && (yyn += yystate) >= 0 &&
   1140             yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yystate)
   1141         yystate = yytable[yyn];
   1142     else
   1143         yystate = yydgoto[yym];
   1144 #if YYDEBUG
   1145     if (yydebug)
   1146     {
   1147         fprintf(stderr, "%s[%d]: after reduction, ", YYDEBUGSTR, yydepth);
   1148 #ifdef YYSTYPE_TOSTRING
   1149 #if YYBTYACC
   1150         if (!yytrial)
   1151 #endif /* YYBTYACC */
   1152             fprintf(stderr, "result is <%s>, ", YYSTYPE_TOSTRING(yystos[yystate], yyval));
   1153 #endif
   1154         fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
   1155     }
   1156 #endif
   1157     if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
   1158     *++yystack.s_mark = (YYINT) yystate;
   1159     *++yystack.l_mark = yyval;
   1160 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1161     *++yystack.p_mark = yyloc;
   1162 #endif
   1163     goto yyloop;
   1164 #if YYBTYACC
   1165 
   1166     /* Reduction declares that this path is valid. Set yypath and do a full parse */
   1167 yyvalid:
   1168     if (yypath) YYABORT;
   1169     while (yyps->save)
   1170     {
   1171         YYParseState *save = yyps->save;
   1172         yyps->save = save->save;
   1173         save->save = yypath;
   1174         yypath = save;
   1175     }
   1176 #if YYDEBUG
   1177     if (yydebug)
   1178         fprintf(stderr, "%s[%d]: state %d, CONFLICT trial successful, backtracking to state %d, %d tokens\n",
   1179                         YYDEBUGSTR, yydepth, yystate, yypath->state, (int)(yylvp - yylvals - yypath->lexeme));
   1180 #endif
   1181     if (yyerrctx)
   1182     {
   1183         yyFreeState(yyerrctx);
   1184         yyerrctx = NULL;
   1185     }
   1186     yylvp          = yylvals + yypath->lexeme;
   1187 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1188     yylpp          = yylpsns + yypath->lexeme;
   1189 #endif
   1190     yylexp         = yylexemes + yypath->lexeme;
   1191     yychar         = YYEMPTY;
   1192     yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
   1193     memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
   1194     yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
   1195     memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
   1196 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1197     yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
   1198     memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
   1199 #endif
   1200     yystate        = yypath->state;
   1201     goto yyloop;
   1202 #endif /* YYBTYACC */
   1203 
   1204 yyoverflow:
   1205     YYERROR_CALL("yacc stack overflow");
   1206 #if YYBTYACC
   1207     goto yyabort_nomem;
   1208 yyenomem:
   1209     YYERROR_CALL("memory exhausted");
   1210 yyabort_nomem:
   1211 #endif /* YYBTYACC */
   1212     yyresult = 2;
   1213     goto yyreturn;
   1214 
   1215 yyabort:
   1216     yyresult = 1;
   1217     goto yyreturn;
   1218 
   1219 yyaccept:
   1220 #if YYBTYACC
   1221     if (yyps->save) goto yyvalid;
   1222 #endif /* YYBTYACC */
   1223     yyresult = 0;
   1224 
   1225 yyreturn:
   1226 #if defined(YYDESTRUCT_CALL)
   1227     if (yychar != YYEOF && yychar != YYEMPTY)
   1228 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1229         YYDESTRUCT_CALL("cleanup: discarding token", yychar, &yylval, &yylloc);
   1230 #else
   1231         YYDESTRUCT_CALL("cleanup: discarding token", yychar, &yylval);
   1232 #endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
   1233 
   1234     {
   1235         YYSTYPE *pv;
   1236 #if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
   1237         YYLTYPE *pp;
   1238 
   1239         for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
   1240              YYDESTRUCT_CALL("cleanup: discarding state",
   1241                              yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
   1242 #else
   1243         for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
   1244              YYDESTRUCT_CALL("cleanup: discarding state",
   1245                              yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
   1246 #endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
   1247     }
   1248 #endif /* defined(YYDESTRUCT_CALL) */
   1249 
   1250 #if YYBTYACC
   1251     if (yyerrctx)
   1252     {
   1253         yyFreeState(yyerrctx);
   1254         yyerrctx = NULL;
   1255     }
   1256     while (yyps)
   1257     {
   1258         YYParseState *save = yyps;
   1259         yyps = save->save;
   1260         save->save = NULL;
   1261         yyFreeState(save);
   1262     }
   1263     while (yypath)
   1264     {
   1265         YYParseState *save = yypath;
   1266         yypath = save->save;
   1267         save->save = NULL;
   1268         yyFreeState(save);
   1269     }
   1270 #endif /* YYBTYACC */
   1271     yyfreestack(&yystack);
   1272     return (yyresult);
   1273 }
   1274