/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar	1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */

#define YYBYACC 1
#define YYMAJOR 2
#define YYMINOR 0
#define YYPATCH 20220114

#define YYEMPTY        (-1)
#define yyclearin      (yychar = YYEMPTY)
#define yyerrok        (yyerrflag = 0)
#define YYRECOVERING() (yyerrflag != 0)
#define YYENOMEM       (-2)
#define YYEOF          0
#undef YYBTYACC
#define YYBTYACC 0
#define YYDEBUGSTR YYPREFIX "debug"
#define YYPREFIX "yy"

#define YYPURE 0

#line 8 "parse.y"
/* note that this actually needs to appear before any system header
   files are included; byacc likes to throw in <stdlib.h> first. */
#include "rc.h"

static Node *star, *nolist;
Node *parsetree;	/* not using yylval because bison declares it as an auto */
#ifdef YYSTYPE
#undef  YYSTYPE_IS_DECLARED
#define YYSTYPE_IS_DECLARED 1
#endif
#ifndef YYSTYPE_IS_DECLARED
#define YYSTYPE_IS_DECLARED 1
#line 31 "parse.y"
typedef union YYSTYPE {
	struct Node *node;
	struct Redir redir;
	struct Pipe pipe;
	struct Dup dup;
	struct Word word;
	char *keyword;
} YYSTYPE;
#endif /* !YYSTYPE_IS_DECLARED */
#line 47 "parse.tab.c"

/* compatibility with bison */
#ifdef YYPARSE_PARAM
/* compatibility with FreeBSD */
# ifdef YYPARSE_PARAM_TYPE
#  define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM)
# else
#  define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM)
# endif
#else
# define YYPARSE_DECL() yyparse(void)
#endif

/* Parameters sent to lex. */
#ifdef YYLEX_PARAM
# define YYLEX_DECL() yylex(void *YYLEX_PARAM)
# define YYLEX yylex(YYLEX_PARAM)
#else
# define YYLEX_DECL() yylex(void)
# define YYLEX yylex()
#endif

#if !(defined(yylex) || defined(YYSTATE))
int YYLEX_DECL();
#endif

/* Parameters sent to yyerror. */
#ifndef YYERROR_DECL
#define YYERROR_DECL() yyerror(const char *s)
#endif
#ifndef YYERROR_CALL
#define YYERROR_CALL(msg) yyerror(msg)
#endif

extern int YYPARSE_DECL();

#define ANDAND 257
#define BACKBACK 258
#define BANG 259
#define CASE 260
#define COUNT 261
#define DUP 262
#define ELSE 263
#define END 264
#define FLAT 265
#define FN 266
#define FOR 267
#define IF 268
#define IN 269
#define OROR 270
#define PIPE 271
#define REDIR 272
#define SREDIR 273
#define SUB 274
#define SUBSHELL 275
#define SWITCH 276
#define TWIDDLE 277
#define WHILE 278
#define WORD 279
#define HUH 280
#define PREDIR 281
#define YYERRCODE 256
typedef int YYINT;
static const YYINT yylhs[] = {                           -1,
    0,    0,   25,   25,    8,    8,   13,   13,    3,    3,
    9,    9,    4,   15,    2,   11,   11,   16,   16,   16,
    5,    5,    6,    6,    6,   19,   24,   24,    7,    7,
    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
    7,    7,    7,    7,    7,    7,   26,   26,   18,   18,
   23,   23,   22,   22,   12,   12,   17,   17,   20,   20,
   10,   10,   10,   10,   10,   10,   10,   10,   10,   10,
   10,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    1,    1,    1,   21,   21,   14,   14,   14,   27,   27,
};
static const YYINT yylen[] = {                            2,
    2,    2,    1,    1,    2,    2,    1,    2,    1,    2,
    1,    2,    3,    3,    5,    0,    2,    1,    2,    2,
    3,    3,    1,    2,    2,    2,    0,    3,    0,    1,
    2,    4,    8,    6,    4,    8,    4,    4,    4,    4,
    2,    2,    3,    3,    3,    2,    0,    1,    1,    2,
    1,    2,    1,    1,    1,    3,    1,    1,    1,    3,
    2,    5,    2,    2,    2,    2,    3,    3,    3,    2,
    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    1,    1,    1,    0,    2,    0,    2,    2,    0,    2,
};
static const YYINT yydefred[] = {                         0,
    0,    0,    0,    0,   18,    0,   84,    0,    0,    0,
    0,    0,    0,    0,    0,   71,    0,    0,   86,    0,
    0,    0,    0,    0,    0,   55,    0,    0,    0,   30,
    3,    4,    2,   81,   79,   78,   77,   72,   75,   73,
    0,   82,   76,   80,   74,   83,   58,   57,   59,    0,
   48,    0,   63,   64,    0,    0,    0,   89,   70,    0,
    0,    0,    0,    0,   89,    0,    0,    0,   11,    0,
    0,   66,   65,    0,    0,   31,    0,   89,   89,   89,
    5,    6,    8,    0,   54,    0,   51,    0,    0,    1,
   41,    0,   67,   68,    0,   45,    0,    0,    0,    0,
    0,    0,    0,    0,   84,   13,   12,   10,   69,   87,
    0,   17,    0,    0,    0,   56,   52,    0,   60,   84,
   89,   14,   90,    0,   32,   89,    0,    0,    0,    0,
    0,   40,    0,    0,    0,   89,   26,    0,   62,    0,
   89,    0,    0,    0,    0,    0,   84,    0,    0,    0,
    0,    0,    0,   24,   36,   25,   22,   21,
};
#if defined(YYDESTRUCT_CALL) || defined(YYSTYPE_TOSTRING)
static const YYINT yystos[] = {                           0,
  256,  258,  259,  261,  262,  265,  266,  267,  268,  272,
  273,  275,  276,  277,  278,  279,   36,  123,   40,   96,
  283,  285,  287,  290,  291,  293,  295,  296,  299,  301,
  264,   10,  308,  259,  260,  263,  266,  267,  268,  269,
  272,  275,  276,  277,  278,   61,  284,  293,  300,  303,
   94,  309,  300,  300,  304,   40,   40,  298,  287,  303,
  303,  309,   40,  309,  298,  300,  286,  290,  291,  292,
  297,  287,  300,  290,  272,  294,  299,  257,  270,  271,
   59,   38,  296,   94,  299,  303,  305,  306,  309,  308,
  290,   94,  287,  300,  290,  287,  303,  303,  286,  310,
  290,  303,  303,  310,  274,  125,   10,  286,   41,   10,
  303,  294,  310,  310,  310,  300,  305,   61,  300,  269,
   41,   41,   10,  290,  302,   41,  304,  290,  304,  290,
  290,  290,  309,  304,  310,  263,  307,  310,   41,  303,
   41,  290,  310,  123,  310,  290,  260,  288,  289,  290,
  292,  290,  304,  289,  125,  289,   10,   59,
};
#endif /* YYDESTRUCT_CALL || YYSTYPE_TOSTRING */
static const YYINT yydgoto[] = {                         21,
   47,   22,   67,   23,  148,  149,   68,   69,   70,   48,
   76,   27,   28,   71,   58,   29,   49,   30,  125,   97,
   55,   87,   88,  137,   33,   52,  100,
};
static const YYINT yysindex[] = {                       847,
   24,  933,  -83,  933,    0,  933,    0,  -24,   -3,  821,
  933,  -83,    5,  -83,   -3,    0,  933, 1094,    0,  821,
    0, 1094, -253,  -30, 1094,    0,  773,   24, 1094,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  -81,    0,    0,    0,    0,    0,    0,    0,    0,  795,
    0, 1094,    0,    0,  821,  933, 1094,    0,    0,  -51,
  -51, 1094,  933,  933,    0, -217,  -64,  154,    0, 1094,
  402,    0,    0, -208,  933,    0, -253,    0,    0,    0,
    0,    0,    0, 1118,    0,  -51,    0,  636,    7,    0,
    0,  933,    0,    0, -208,    0,  -51,  -38,   25,  468,
 -208,  -29,  -51,  468,    0,    0,    0,    0,    0,    0,
  -51,    0,  468,  468,  468,    0,    0,  -83,    0,    0,
    0,    0,    0, -224,    0,    0,  933, -235,  884, -208,
 -208,    0,  933,  910,  468,    0,    0,   -9,    0,  -51,
    0, -235,  468,  969,  468, -235,    0,  969,  -56,  154,
  969, -235,  424,    0,    0,    0,    0,    0,
};
static const YYINT yyrindex[] = {                       134,
    0,    0,  110,    0,    0,    0,    0,    0,    0,    0,
    0,  110,    0, 1071,    0,    0,    0,  550,    0,    0,
    0,  187,  485,   30,  134,    0,  511,    0,  187,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,  187,    0,    0,  515,    0,  143,    0,    0,   14,
   38,  187,    0,    0,    0,  -10,    0,  -36,    0,  481,
    0,    0,    0,  678,    0,    0,  485,    0,    0,    0,
    0,    0,    0,    9,    0,   62,    0,  541,    0,    0,
    0,    0,    0,    0,  721,    0,   86,    0,    0,  -34,
  729,    0,  356,  -34,    0,    0,    0,    0,    0,    0,
  446,    0,  -34,  -34,  -34,    0,    0, 1071,    0,    0,
    0,    0,    0,   95,    0,    0,  570,  139,    0,  751,
  755,    0,    0,    0,  -34,    0,    0,    0,    0,  380,
    0,  145,  -34,  550,  -34,  759,    0,  550,    0,  -44,
  550,  763,    0,    0,    0,    0,    0,    0,
};
#if YYBTYACC
static const YYINT yycindex[] = {                         0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,
};
#endif
static const YYINT yygindex[] = {                         0,
    0,    0,   10,    3,    0, -110, 1392,    2, -130, 1380,
    6,    0,   57,    0,   70,  -17,  449,    0,    0, 1193,
  -88,   -1,    0,    0,   60,   50,  437,
};
#define YYTABLESIZE 1543
static const YYINT yytable[] = {                         61,
  123,   25,  121,   29,    9,   77,   29,   82,    5,   85,
   51,  126,   59,  151,  127,   56,  129,  151,   75,   11,
  151,   78,   72,   19,   29,   61,   25,   61,   81,   61,
   61,  134,   78,   32,   79,   80,   57,  154,  136,    7,
  156,   18,   92,   59,   63,   79,   80,   20,   61,   19,
   61,   19,   93,   19,   19,   92,  105,   96,  153,   77,
  106,   62,   80,   64,   92,  122,   99,  118,  155,   48,
   85,   53,   19,   20,   19,   20,   89,   20,   20,  108,
   23,   83,  112,   61,   65,   61,  117,   90,    9,    0,
   29,    0,    0,    0,    0,   85,   20,   53,   20,   53,
    0,   53,   53,    0,   27,    0,    0,    0,    0,   19,
    0,    0,   61,  144,   61,    0,    0,    0,    0,   47,
   53,   85,   53,   85,    0,   85,   85,    0,    0,    0,
    0,    0,   27,   20,    0,   27,   19,    0,   19,    0,
    0,    0,    0,   29,   85,   47,   85,   47,   35,   47,
   47,    0,   29,   27,   34,    0,    0,   53,    0,    0,
   20,    0,   20,  107,    0,    0,    0,  133,   47,    0,
    0,   29,    0,    0,    0,    0,   35,    0,    0,   35,
   29,   85,   34,   29,    0,   34,   53,    0,    0,    0,
    0,   82,   29,    0,    0,    0,   29,   35,    0,    0,
    0,   29,    0,   34,    0,   47,    0,    0,   85,    0,
   85,    0,   81,    0,    0,    0,    0,    0,    0,   27,
    0,    0,   29,    0,   29,    0,   78,   29,   29,   29,
  120,    0,   47,    0,   47,   29,   29,    0,    0,   79,
   80,    0,    0,    0,    0,   29,   61,   61,   61,   61,
   61,   61,   61,   61,   61,   61,   61,   61,   61,   61,
   61,   61,   61,   35,   61,   61,   61,   61,   61,   34,
   19,   19,   19,   19,   19,   19,   19,   19,   19,   19,
   19,   19,   19,   19,   19,   19,   19,   31,   19,   19,
   19,   19,   19,    7,   20,   20,   20,   20,   20,   20,
   20,   20,   20,   20,   20,   20,   20,   20,   20,   20,
   20,   29,   20,   20,   20,   20,   20,    0,   53,   53,
   53,   53,   53,   53,   53,   53,   53,   53,   53,   53,
   53,   53,   53,   53,   53,    0,   53,   53,   53,   53,
   53,    0,   85,   85,   85,   85,   85,    0,   85,   85,
   85,   85,   85,   85,   85,   85,   85,   85,   27,    0,
   85,   85,   85,   85,   85,   84,   47,   47,   47,    0,
   47,   47,   47,   47,   47,   47,   47,   47,    0,   47,
   47,   47,   47,    0,   47,   47,   47,   47,   47,   15,
   29,   84,    0,   84,    0,   84,   84,   29,    0,   29,
    0,   35,   35,   29,   29,    0,    0,   34,   34,    0,
   78,  110,   29,   29,   84,   15,   84,   15,    0,   15,
   15,    0,    0,   79,   80,    0,    0,    0,    0,    0,
    0,    0,    0,  157,    0,    0,    0,   17,   15,    0,
    0,   19,  109,   29,    0,    0,    0,    0,    0,   29,
   29,   84,   53,    0,   54,   88,   29,   29,    0,   17,
    0,    0,   46,   19,    0,   66,    0,    0,   73,    0,
    0,    0,    0,    0,    0,   15,    0,  123,    0,    0,
   84,   88,  158,    0,   46,   88,   88,    0,    0,    0,
   29,    0,    0,    0,   16,    0,    0,   20,   94,    0,
    0,  104,   15,   17,   15,    0,   88,   19,    0,    0,
    0,    0,    0,    0,  113,  114,  115,    0,   29,   20,
   49,   29,   16,    0,   46,   16,    0,    0,    0,    0,
    0,    0,  116,    0,    0,    0,    0,    0,    0,   29,
  119,   88,    0,   16,    0,    0,    0,    0,   49,    0,
   50,   49,   46,    0,    0,   46,    0,  135,    0,   29,
    0,    0,  138,   20,    0,    0,    0,    0,    0,   49,
    0,   47,  143,   46,    0,    0,    0,  145,   50,   37,
    0,   50,    0,    0,    0,    0,    0,   29,    0,    0,
   18,    0,    0,    0,    0,    0,    0,    0,    0,   50,
    0,    0,    0,    0,    0,   29,    0,   37,   29,   16,
   37,    0,   84,   84,   84,   84,   84,    0,   84,   84,
   84,   84,   84,   84,   84,   84,   84,   84,   37,    0,
   84,   84,   84,   84,   84,   49,   15,   15,   15,   46,
   15,   15,   15,   15,   15,   15,   15,   15,    0,   15,
   15,   15,   15,    0,   15,   15,   15,   15,   15,    2,
   34,   35,    4,    0,   36,   50,    6,   37,   38,   39,
   40,   17,    0,   41,   29,   19,   42,   43,   44,   45,
   16,    2,   34,   35,    4,    0,   36,   42,    6,   37,
   38,   39,   40,    0,   37,   41,   46,    0,   42,   43,
   44,   45,   16,   88,   88,   88,   88,    0,   88,    0,
   88,   88,   88,   88,   88,   42,    0,   88,   42,    0,
   88,   88,   88,   88,   88,    2,    3,    0,    4,    5,
   43,   20,    6,    7,    8,    9,   42,   29,   44,   10,
   11,   16,   12,   13,   14,   15,   16,   16,   16,    0,
   29,   29,    0,    0,   16,   16,    0,    0,   43,    0,
   38,   43,    0,    0,   39,    0,   44,   49,   28,   44,
    0,   46,   33,    0,   49,    0,    0,    0,   46,   43,
   49,   49,    0,    0,   46,   46,    0,   44,   38,    0,
    0,   38,   39,    0,    0,   39,   28,   50,    0,   28,
   33,    0,   42,   33,   50,    0,   29,    0,   17,   38,
   50,   50,   19,   39,    0,    0,    0,   28,    0,   29,
   29,   33,    0,    0,    0,    0,   37,    0,    0,    0,
   17,    0,    0,   37,   19,    0,    0,    0,    0,   37,
   37,    0,    0,    0,    0,   43,    0,    0,    0,    0,
    0,    0,    0,   44,    0,   46,   17,    0,    0,    0,
   19,    0,    0,    0,    0,    0,   84,    0,   20,    0,
    0,    0,    0,    0,    0,   38,    0,    0,    0,   39,
    0,   46,   17,   28,    0,    0,   19,   33,   92,    0,
   20,    0,    0,    2,   34,   35,    4,    5,   36,    0,
    6,   37,   38,   39,   40,    0,    0,   10,   11,    0,
   42,   43,   44,   45,   16,    0,   20,   18,    0,   17,
    0,    0,    0,   19,  139,    0,    0,    0,    0,    0,
    0,    0,    0,    0,   42,    0,    0,    0,    0,    0,
   42,   42,   20,   18,   46,   17,    0,   42,    0,   19,
  141,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,   17,   18,
   46,    0,   19,    0,    0,    0,    0,   43,    0,   20,
    0,    0,    0,   43,   43,   44,    0,    0,    0,    0,
   43,   44,   44,   46,    0,    0,    0,    0,   44,    0,
    0,    0,    0,    0,   17,   20,    0,   38,   19,    0,
    0,   39,    0,   38,   38,    0,    0,   39,   39,    0,
   38,   28,   28,    0,   39,   33,   33,    0,   20,    0,
    2,   34,   35,    4,    5,   36,    0,    6,   37,   38,
   39,   40,    0,    0,   10,   11,    0,   42,   43,   44,
   45,   16,    2,   34,   35,    4,    0,   36,    0,    6,
   37,   38,   39,   40,   20,    0,   41,    0,    0,   42,
   43,   44,   45,   16,    0,    0,    0,    0,    2,   34,
   35,    4,    0,   36,    0,    6,   37,   38,   39,   40,
    0,   18,   41,    0,    0,   42,   43,   44,   45,   16,
    0,    0,    1,    0,    2,    3,   47,    4,    5,    0,
   47,    6,    7,    8,    9,    0,    0,    0,   10,   11,
    0,   12,   13,   14,   15,   16,    0,    0,    0,   17,
    0,   47,    0,   19,    0,    0,    0,    0,    0,    0,
    0,    2,   34,   35,    4,    0,   36,    0,    6,   37,
   38,   39,   40,   17,    0,   41,    0,   19,   42,   43,
   44,   45,   16,    0,    0,    0,   47,    2,   34,   35,
    4,    0,   36,    0,    6,   37,   38,   39,   40,    0,
    0,   41,    0,    0,   42,   43,   44,   45,   16,   20,
    2,   34,   35,    4,   50,   36,    0,    6,   37,   38,
   39,   40,   60,   61,   41,    0,    0,   42,   43,   44,
   45,   16,    0,   20,    0,    0,   18,    0,    0,   86,
    0,    0,    0,    0,    0,    0,    2,    3,  147,    4,
    5,    0,    0,    6,    7,    8,    9,    0,    0,    0,
   10,   11,    0,   12,   13,   14,   15,   16,   98,    0,
    0,    0,    0,    0,    0,  102,  103,    0,    0,    0,
    0,    0,    0,  111,    0,    0,    0,   60,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
   86,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,  140,    0,    0,   47,   47,
   47,   47,    0,   47,    0,   47,   47,   47,   47,   47,
    0,    0,   47,    0,    0,   47,   47,   47,   47,   47,
    0,    2,    3,    0,    4,    5,    0,    0,    6,    7,
    8,    9,    0,    0,    0,   10,   11,    0,   12,   13,
   14,   15,   16,    0,    0,    2,   34,   35,    4,   26,
   36,    0,    6,   37,   38,   39,   40,    0,    0,   41,
    0,   24,   42,   43,   44,   45,   16,   26,    0,    0,
    0,   26,    0,    0,   26,    0,    0,    0,   26,    0,
    0,    0,    0,   74,    0,    0,   24,    0,    0,    0,
   91,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,   26,    0,    0,    0,    0,   26,    0,    0,    0,
    0,   26,    0,   95,    0,    0,    0,    0,    0,   26,
    0,    0,    0,  101,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,   26,
    0,    0,    0,   26,    0,    0,    0,    0,    0,    0,
    0,  124,   26,   26,   26,  128,    0,    0,    0,    0,
    0,    0,    0,    0,  130,  131,  132,    0,    0,    0,
    0,    0,    0,    0,   26,    0,    0,    0,    0,    0,
    0,    0,   26,   26,   26,    0,  142,   26,    0,    0,
   26,    0,    0,    0,  146,  150,  152,    0,    0,  150,
    0,    0,  150,
};
static const YYINT yycheck[] = {                         10,
   10,    0,   41,   38,   41,   23,   41,   38,  262,   27,
   94,   41,   10,  144,  103,   40,  105,  148,  272,  273,
  151,  257,   20,   10,   59,   36,   25,   38,   59,   40,
   41,  120,  257,   10,  270,  271,   40,  148,  263,   10,
  151,  123,   94,   41,   40,  270,  271,   10,   59,   36,
   61,   38,   50,   40,   41,   94,  274,   55,  147,   77,
  125,   12,  271,   14,   94,   41,   57,   61,  125,   61,
   88,   10,   59,   36,   61,   38,   27,   40,   41,   70,
  125,   25,   77,   94,   15,   96,   88,   28,  125,   -1,
  125,   -1,   -1,   -1,   -1,   10,   59,   36,   61,   38,
   -1,   40,   41,   -1,   10,   -1,   -1,   -1,   -1,   96,
   -1,   -1,  123,  123,  125,   -1,   -1,   -1,   -1,   10,
   59,   36,   61,   38,   -1,   40,   41,   -1,   -1,   -1,
   -1,   -1,   38,   96,   -1,   41,  123,   -1,  125,   -1,
   -1,   -1,   -1,   10,   59,   36,   61,   38,   10,   40,
   41,   -1,   10,   59,   10,   -1,   -1,   96,   -1,   -1,
  123,   -1,  125,   10,   -1,   -1,   -1,  118,   59,   -1,
   -1,   38,   -1,   -1,   -1,   -1,   38,   -1,   -1,   41,
   38,   96,   38,   41,   -1,   41,  125,   -1,   -1,   -1,
   -1,   38,   59,   -1,   -1,   -1,   10,   59,   -1,   -1,
   -1,   59,   -1,   59,   -1,   96,   -1,   -1,  123,   -1,
  125,   -1,   59,   -1,   -1,   -1,   -1,   -1,   -1,  125,
   -1,   -1,  257,   -1,   38,   -1,  257,   41,  263,  264,
  269,   -1,  123,   -1,  125,  270,  271,   -1,   -1,  270,
  271,   -1,   -1,   -1,   -1,   59,  257,  258,  259,  260,
  261,  262,  263,  264,  265,  266,  267,  268,  269,  270,
  271,  272,  273,  125,  275,  276,  277,  278,  279,  125,
  257,  258,  259,  260,  261,  262,  263,  264,  265,  266,
  267,  268,  269,  270,  271,  272,  273,  264,  275,  276,
  277,  278,  279,  264,  257,  258,  259,  260,  261,  262,
  263,  264,  265,  266,  267,  268,  269,  270,  271,  272,
  273,  125,  275,  276,  277,  278,  279,   -1,  257,  258,
  259,  260,  261,  262,  263,  264,  265,  266,  267,  268,
  269,  270,  271,  272,  273,   -1,  275,  276,  277,  278,
  279,   -1,  257,  258,  259,  260,  261,   -1,  263,  264,
  265,  266,  267,  268,  269,  270,  271,  272,  264,   -1,
  275,  276,  277,  278,  279,   10,  257,  258,  259,   -1,
  261,  262,  263,  264,  265,  266,  267,  268,   -1,  270,
  271,  272,  273,   -1,  275,  276,  277,  278,  279,   10,
  257,   36,   -1,   38,   -1,   40,   41,  264,   -1,  257,
   -1,  263,  264,  270,  271,   -1,   -1,  263,  264,   -1,
  257,   10,  270,  271,   59,   36,   61,   38,   -1,   40,
   41,   -1,   -1,  270,  271,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   10,   -1,   -1,   -1,   36,   59,   -1,
   -1,   40,   41,  257,   -1,   -1,   -1,   -1,   -1,  263,
  264,   96,    4,   -1,    6,   10,  270,  271,   -1,   36,
   -1,   -1,   61,   40,   -1,   17,   -1,   -1,   20,   -1,
   -1,   -1,   -1,   -1,   -1,   96,   -1,   10,   -1,   -1,
  125,   36,   59,   -1,   61,   40,   41,   -1,   -1,   -1,
   10,   -1,   -1,   -1,   10,   -1,   -1,   96,   50,   -1,
   -1,   65,  123,   36,  125,   -1,   61,   40,   -1,   -1,
   -1,   -1,   -1,   -1,   78,   79,   80,   -1,   38,   96,
   10,   41,   38,   -1,   10,   41,   -1,   -1,   -1,   -1,
   -1,   -1,   84,   -1,   -1,   -1,   -1,   -1,   -1,   59,
   92,   96,   -1,   59,   -1,   -1,   -1,   -1,   38,   -1,
   10,   41,   38,   -1,   -1,   41,   -1,  121,   -1,   10,
   -1,   -1,  126,   96,   -1,   -1,   -1,   -1,   -1,   59,
   -1,   61,  136,   59,   -1,   -1,   -1,  141,   38,   10,
   -1,   41,   -1,   -1,   -1,   -1,   -1,   38,   -1,   -1,
  123,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   59,
   -1,   -1,   -1,   -1,   -1,  125,   -1,   38,   59,  125,
   41,   -1,  257,  258,  259,  260,  261,   -1,  263,  264,
  265,  266,  267,  268,  269,  270,  271,  272,   59,   -1,
  275,  276,  277,  278,  279,  125,  257,  258,  259,  125,
  261,  262,  263,  264,  265,  266,  267,  268,   -1,  270,
  271,  272,  273,   -1,  275,  276,  277,  278,  279,  258,
  259,  260,  261,   -1,  263,  125,  265,  266,  267,  268,
  269,   36,   -1,  272,  125,   40,  275,  276,  277,  278,
  279,  258,  259,  260,  261,   -1,  263,   10,  265,  266,
  267,  268,  269,   -1,  125,  272,   61,   -1,  275,  276,
  277,  278,  279,  258,  259,  260,  261,   -1,  263,   -1,
  265,  266,  267,  268,  269,   38,   -1,  272,   41,   -1,
  275,  276,  277,  278,  279,  258,  259,   -1,  261,  262,
   10,   96,  265,  266,  267,  268,   59,  257,   10,  272,
  273,  257,  275,  276,  277,  278,  279,  263,  264,   -1,
  270,  271,   -1,   -1,  270,  271,   -1,   -1,   38,   -1,
   10,   41,   -1,   -1,   10,   -1,   38,  257,   10,   41,
   -1,  257,   10,   -1,  264,   -1,   -1,   -1,  264,   59,
  270,  271,   -1,   -1,  270,  271,   -1,   59,   38,   -1,
   -1,   41,   38,   -1,   -1,   41,   38,  257,   -1,   41,
   38,   -1,  125,   41,  264,   -1,  257,   -1,   36,   59,
  270,  271,   40,   59,   -1,   -1,   -1,   59,   -1,  270,
  271,   59,   -1,   -1,   -1,   -1,  257,   -1,   -1,   -1,
   36,   -1,   -1,  264,   40,   -1,   -1,   -1,   -1,  270,
  271,   -1,   -1,   -1,   -1,  125,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  125,   -1,   61,   36,   -1,   -1,   -1,
   40,   -1,   -1,   -1,   -1,   -1,   94,   -1,   96,   -1,
   -1,   -1,   -1,   -1,   -1,  125,   -1,   -1,   -1,  125,
   -1,   61,   36,  125,   -1,   -1,   40,  125,   94,   -1,
   96,   -1,   -1,  258,  259,  260,  261,  262,  263,   -1,
  265,  266,  267,  268,  269,   -1,   -1,  272,  273,   -1,
  275,  276,  277,  278,  279,   -1,   96,  123,   -1,   36,
   -1,   -1,   -1,   40,   41,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,  257,   -1,   -1,   -1,   -1,   -1,
  263,  264,   96,  123,   61,   36,   -1,  270,   -1,   40,
   41,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   36,  123,
   61,   -1,   40,   -1,   -1,   -1,   -1,  257,   -1,   96,
   -1,   -1,   -1,  263,  264,  257,   -1,   -1,   -1,   -1,
  270,  263,  264,   61,   -1,   -1,   -1,   -1,  270,   -1,
   -1,   -1,   -1,   -1,   36,   96,   -1,  257,   40,   -1,
   -1,  257,   -1,  263,  264,   -1,   -1,  263,  264,   -1,
  270,  263,  264,   -1,  270,  263,  264,   -1,   96,   -1,
  258,  259,  260,  261,  262,  263,   -1,  265,  266,  267,
  268,  269,   -1,   -1,  272,  273,   -1,  275,  276,  277,
  278,  279,  258,  259,  260,  261,   -1,  263,   -1,  265,
  266,  267,  268,  269,   96,   -1,  272,   -1,   -1,  275,
  276,  277,  278,  279,   -1,   -1,   -1,   -1,  258,  259,
  260,  261,   -1,  263,   -1,  265,  266,  267,  268,  269,
   -1,  123,  272,   -1,   -1,  275,  276,  277,  278,  279,
   -1,   -1,  256,   -1,  258,  259,   36,  261,  262,   -1,
   40,  265,  266,  267,  268,   -1,   -1,   -1,  272,  273,
   -1,  275,  276,  277,  278,  279,   -1,   -1,   -1,   36,
   -1,   61,   -1,   40,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,  258,  259,  260,  261,   -1,  263,   -1,  265,  266,
  267,  268,  269,   36,   -1,  272,   -1,   40,  275,  276,
  277,  278,  279,   -1,   -1,   -1,   96,  258,  259,  260,
  261,   -1,  263,   -1,  265,  266,  267,  268,  269,   -1,
   -1,  272,   -1,   -1,  275,  276,  277,  278,  279,   96,
  258,  259,  260,  261,    2,  263,   -1,  265,  266,  267,
  268,  269,   10,   11,  272,   -1,   -1,  275,  276,  277,
  278,  279,   -1,   96,   -1,   -1,  123,   -1,   -1,   27,
   -1,   -1,   -1,   -1,   -1,   -1,  258,  259,  260,  261,
  262,   -1,   -1,  265,  266,  267,  268,   -1,   -1,   -1,
  272,  273,   -1,  275,  276,  277,  278,  279,   56,   -1,
   -1,   -1,   -1,   -1,   -1,   63,   64,   -1,   -1,   -1,
   -1,   -1,   -1,   71,   -1,   -1,   -1,   75,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   88,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,  133,   -1,   -1,  258,  259,
  260,  261,   -1,  263,   -1,  265,  266,  267,  268,  269,
   -1,   -1,  272,   -1,   -1,  275,  276,  277,  278,  279,
   -1,  258,  259,   -1,  261,  262,   -1,   -1,  265,  266,
  267,  268,   -1,   -1,   -1,  272,  273,   -1,  275,  276,
  277,  278,  279,   -1,   -1,  258,  259,  260,  261,    0,
  263,   -1,  265,  266,  267,  268,  269,   -1,   -1,  272,
   -1,    0,  275,  276,  277,  278,  279,   18,   -1,   -1,
   -1,   22,   -1,   -1,   25,   -1,   -1,   -1,   29,   -1,
   -1,   -1,   -1,   22,   -1,   -1,   25,   -1,   -1,   -1,
   29,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   52,   -1,   -1,   -1,   -1,   57,   -1,   -1,   -1,
   -1,   62,   -1,   52,   -1,   -1,   -1,   -1,   -1,   70,
   -1,   -1,   -1,   62,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  100,
   -1,   -1,   -1,  104,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,  100,  113,  114,  115,  104,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,  113,  114,  115,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,  135,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,  143,  144,  145,   -1,  135,  148,   -1,   -1,
  151,   -1,   -1,   -1,  143,  144,  145,   -1,   -1,  148,
   -1,   -1,  151,
};
#if YYBTYACC
static const YYINT yyctable[] = {                        -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,
};
#endif
#define YYFINAL 21
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
#define YYMAXTOKEN 281
#define YYUNDFTOKEN 311
#define YYTRANSLATE(a) ((a) > YYMAXTOKEN ? YYUNDFTOKEN : (a))
#if YYDEBUG
static const char *const yyname[] = {

"$end",0,0,0,0,0,0,0,0,0,"'\\n'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,"'$'",0,"'&'",0,"'('","')'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"';'",0,"'='",
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'^'",0,"'`'",0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'{'",0,"'}'",0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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","ANDAND","BACKBACK","BANG","CASE","COUNT","DUP","ELSE","END","FLAT",
"FN","FOR","IF","IN","OROR","PIPE","REDIR","SREDIR","SUB","SUBSHELL","SWITCH",
"TWIDDLE","WHILE","WORD","HUH","PREDIR","$accept","rc","keyword","assign",
"body","brace","case","cbody","cmd","cmdsa","cmdsan","comword","epilog","first",
"line","nlwords","paren","redir","sword","simple","iftail","word","words","arg",
"args","else","end","optcaret","optnl","illegal-symbol",
};
static const char *const yyrule[] = {
"$accept : rc",
"rc : line end",
"rc : error end",
"end : END",
"end : '\\n'",
"cmdsa : cmd ';'",
"cmdsa : cmd '&'",
"line : cmd",
"line : cmdsa line",
"body : cmd",
"body : cmdsan body",
"cmdsan : cmdsa",
"cmdsan : cmd '\\n'",
"brace : '{' body '}'",
"paren : '(' body ')'",
"assign : first optcaret '=' optcaret word",
"epilog :",
"epilog : redir epilog",
"redir : DUP",
"redir : REDIR word",
"redir : SREDIR word",
"case : CASE words ';'",
"case : CASE words '\\n'",
"cbody : cmd",
"cbody : case cbody",
"cbody : cmdsan cbody",
"iftail : cmd else",
"else :",
"else : ELSE optnl cmd",
"cmd :",
"cmd : simple",
"cmd : brace epilog",
"cmd : IF paren optnl iftail",
"cmd : FOR '(' word IN words ')' optnl cmd",
"cmd : FOR '(' word ')' optnl cmd",
"cmd : WHILE paren optnl cmd",
"cmd : SWITCH '(' word ')' optnl '{' cbody '}'",
"cmd : TWIDDLE optcaret word words",
"cmd : cmd ANDAND optnl cmd",
"cmd : cmd OROR optnl cmd",
"cmd : cmd PIPE optnl cmd",
"cmd : redir cmd",
"cmd : assign cmd",
"cmd : BANG optcaret cmd",
"cmd : SUBSHELL optcaret cmd",
"cmd : FN words brace",
"cmd : FN words",
"optcaret :",
"optcaret : '^'",
"simple : first",
"simple : first args",
"args : arg",
"args : args arg",
"arg : word",
"arg : redir",
"first : comword",
"first : first '^' sword",
"sword : comword",
"sword : keyword",
"word : sword",
"word : word '^' sword",
"comword : '$' sword",
"comword : '$' sword SUB words ')'",
"comword : COUNT sword",
"comword : FLAT sword",
"comword : '`' sword",
"comword : '`' brace",
"comword : BACKBACK word brace",
"comword : BACKBACK word sword",
"comword : '(' nlwords ')'",
"comword : REDIR brace",
"comword : WORD",
"keyword : FOR",
"keyword : IN",
"keyword : WHILE",
"keyword : IF",
"keyword : SWITCH",
"keyword : FN",
"keyword : ELSE",
"keyword : CASE",
"keyword : TWIDDLE",
"keyword : BANG",
"keyword : SUBSHELL",
"keyword : '='",
"words :",
"words : words word",
"nlwords :",
"nlwords : nlwords '\\n'",
"nlwords : nlwords word",
"optnl :",
"optnl : optnl '\\n'",

};
#endif

#if YYDEBUG
int      yydebug;
#endif

int      yyerrflag;
int      yychar;
YYSTYPE  yyval;
YYSTYPE  yylval;
int      yynerrs;

#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
YYLTYPE  yyloc; /* position returned by actions */
YYLTYPE  yylloc; /* position from the lexer */
#endif

#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
#ifndef YYLLOC_DEFAULT
#define YYLLOC_DEFAULT(loc, rhs, n) \
do \
{ \
    if (n == 0) \
    { \
        (loc).first_line   = YYRHSLOC(rhs, 0).last_line; \
        (loc).first_column = YYRHSLOC(rhs, 0).last_column; \
        (loc).last_line    = YYRHSLOC(rhs, 0).last_line; \
        (loc).last_column  = YYRHSLOC(rhs, 0).last_column; \
    } \
    else \
    { \
        (loc).first_line   = YYRHSLOC(rhs, 1).first_line; \
        (loc).first_column = YYRHSLOC(rhs, 1).first_column; \
        (loc).last_line    = YYRHSLOC(rhs, n).last_line; \
        (loc).last_column  = YYRHSLOC(rhs, n).last_column; \
    } \
} while (0)
#endif /* YYLLOC_DEFAULT */
#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
#if YYBTYACC

#ifndef YYLVQUEUEGROWTH
#define YYLVQUEUEGROWTH 32
#endif
#endif /* YYBTYACC */

/* define the initial stack-sizes */
#ifdef YYSTACKSIZE
#undef YYMAXDEPTH
#define YYMAXDEPTH  YYSTACKSIZE
#else
#ifdef YYMAXDEPTH
#define YYSTACKSIZE YYMAXDEPTH
#else
#define YYSTACKSIZE 10000
#define YYMAXDEPTH  10000
#endif
#endif

#ifndef YYINITSTACKSIZE
#define YYINITSTACKSIZE 200
#endif

typedef struct {
    unsigned stacksize;
    YYINT    *s_base;
    YYINT    *s_mark;
    YYINT    *s_last;
    YYSTYPE  *l_base;
    YYSTYPE  *l_mark;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    YYLTYPE  *p_base;
    YYLTYPE  *p_mark;
#endif
} YYSTACKDATA;
#if YYBTYACC

struct YYParseState_s
{
    struct YYParseState_s *save;    /* Previously saved parser state */
    YYSTACKDATA            yystack; /* saved parser stack */
    int                    state;   /* saved parser state */
    int                    errflag; /* saved error recovery status */
    int                    lexeme;  /* saved index of the conflict lexeme in the lexical queue */
    YYINT                  ctry;    /* saved index in yyctable[] for this conflict */
};
typedef struct YYParseState_s YYParseState;
#endif /* YYBTYACC */
/* variables for the parser stack */
static YYSTACKDATA yystack;
#if YYBTYACC

/* Current parser state */
static YYParseState *yyps = 0;

/* yypath != NULL: do the full parse, starting at *yypath parser state. */
static YYParseState *yypath = 0;

/* Base of the lexical value queue */
static YYSTYPE *yylvals = 0;

/* Current position at lexical value queue */
static YYSTYPE *yylvp = 0;

/* End position of lexical value queue */
static YYSTYPE *yylve = 0;

/* The last allocated position at the lexical value queue */
static YYSTYPE *yylvlim = 0;

#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
/* Base of the lexical position queue */
static YYLTYPE *yylpsns = 0;

/* Current position at lexical position queue */
static YYLTYPE *yylpp = 0;

/* End position of lexical position queue */
static YYLTYPE *yylpe = 0;

/* The last allocated position at the lexical position queue */
static YYLTYPE *yylplim = 0;
#endif

/* Current position at lexical token queue */
static YYINT  *yylexp = 0;

static YYINT  *yylexemes = 0;
#endif /* YYBTYACC */
#line 181 "parse.y"

void initparse() {
	star = treecpy(mk(nVar, mk(nWord,"*", NULL, FALSE)), ealloc);
	nolist = treecpy(mk(nVar, mk(nWord,"ifs", NULL, FALSE)), ealloc);
}

#line 965 "parse.tab.c"

/* For use in generated program */
#define yydepth (int)(yystack.s_mark - yystack.s_base)
#if YYBTYACC
#define yytrial (yyps->save)
#endif /* YYBTYACC */

#if YYDEBUG
#include <stdio.h>	/* needed for printf */
#endif

#include <stdlib.h>	/* needed for malloc, etc */
#include <string.h>	/* needed for memset */

/* allocate initial stack or double stack size, up to YYMAXDEPTH */
static int yygrowstack(YYSTACKDATA *data)
{
    int i;
    unsigned newsize;
    YYINT *newss;
    YYSTYPE *newvs;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    YYLTYPE *newps;
#endif

    if ((newsize = data->stacksize) == 0)
        newsize = YYINITSTACKSIZE;
    else if (newsize >= YYMAXDEPTH)
        return YYENOMEM;
    else if ((newsize *= 2) > YYMAXDEPTH)
        newsize = YYMAXDEPTH;

    i = (int) (data->s_mark - data->s_base);
    newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
    if (newss == 0)
        return YYENOMEM;

    data->s_base = newss;
    data->s_mark = newss + i;

    newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
    if (newvs == 0)
        return YYENOMEM;

    data->l_base = newvs;
    data->l_mark = newvs + i;

#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
    if (newps == 0)
        return YYENOMEM;

    data->p_base = newps;
    data->p_mark = newps + i;
#endif

    data->stacksize = newsize;
    data->s_last = data->s_base + newsize - 1;

#if YYDEBUG
    if (yydebug)
        fprintf(stderr, "%sdebug: stack size increased to %d\n", YYPREFIX, newsize);
#endif
    return 0;
}

#if YYPURE || defined(YY_NO_LEAKS)
static void yyfreestack(YYSTACKDATA *data)
{
    free(data->s_base);
    free(data->l_base);
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    free(data->p_base);
#endif
    memset(data, 0, sizeof(*data));
}
#else
#define yyfreestack(data) /* nothing */
#endif /* YYPURE || defined(YY_NO_LEAKS) */
#if YYBTYACC

static YYParseState *
yyNewState(unsigned size)
{
    YYParseState *p = (YYParseState *) malloc(sizeof(YYParseState));
    if (p == NULL) return NULL;

    p->yystack.stacksize = size;
    if (size == 0)
    {
        p->yystack.s_base = NULL;
        p->yystack.l_base = NULL;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
        p->yystack.p_base = NULL;
#endif
        return p;
    }
    p->yystack.s_base    = (YYINT *) malloc(size * sizeof(YYINT));
    if (p->yystack.s_base == NULL) return NULL;
    p->yystack.l_base    = (YYSTYPE *) malloc(size * sizeof(YYSTYPE));
    if (p->yystack.l_base == NULL) return NULL;
    memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE));
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    p->yystack.p_base    = (YYLTYPE *) malloc(size * sizeof(YYLTYPE));
    if (p->yystack.p_base == NULL) return NULL;
    memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE));
#endif

    return p;
}

static void
yyFreeState(YYParseState *p)
{
    yyfreestack(&p->yystack);
    free(p);
}
#endif /* YYBTYACC */

#define YYABORT  goto yyabort
#define YYREJECT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR  goto yyerrlab
#if YYBTYACC
#define YYVALID        do { if (yyps->save)            goto yyvalid; } while(0)
#define YYVALID_NESTED do { if (yyps->save && \
                                yyps->save->save == 0) goto yyvalid; } while(0)
#endif /* YYBTYACC */

int
YYPARSE_DECL()
{
    int yym, yyn, yystate, yyresult;
#if YYBTYACC
    int yynewerrflag;
    YYParseState *yyerrctx = NULL;
#endif /* YYBTYACC */
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    YYLTYPE  yyerror_loc_range[3]; /* position of error start/end (0 unused) */
#endif
#if YYDEBUG
    const char *yys;

    if ((yys = getenv("YYDEBUG")) != 0)
    {
        yyn = *yys;
        if (yyn >= '0' && yyn <= '9')
            yydebug = yyn - '0';
    }
    if (yydebug)
        fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
#endif

#if YYBTYACC
    yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
    yyps->save = 0;
#endif /* YYBTYACC */
    yym = 0;
    /* yyn is set below */
    yynerrs = 0;
    yyerrflag = 0;
    yychar = YYEMPTY;
    yystate = 0;

#if YYPURE
    memset(&yystack, 0, sizeof(yystack));
#endif

    if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
    yystack.s_mark = yystack.s_base;
    yystack.l_mark = yystack.l_base;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    yystack.p_mark = yystack.p_base;
#endif
    yystate = 0;
    *yystack.s_mark = 0;

yyloop:
    if ((yyn = yydefred[yystate]) != 0) goto yyreduce;
    if (yychar < 0)
    {
#if YYBTYACC
        do {
        if (yylvp < yylve)
        {
            /* we're currently re-reading tokens */
            yylval = *yylvp++;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            yylloc = *yylpp++;
#endif
            yychar = *yylexp++;
            break;
        }
        if (yyps->save)
        {
            /* in trial mode; save scanner results for future parse attempts */
            if (yylvp == yylvlim)
            {   /* Enlarge lexical value queue */
                size_t p = (size_t) (yylvp - yylvals);
                size_t s = (size_t) (yylvlim - yylvals);

                s += YYLVQUEUEGROWTH;
                if ((yylexemes = (YYINT *)realloc(yylexemes, s * sizeof(YYINT))) == NULL) goto yyenomem;
                if ((yylvals   = (YYSTYPE *)realloc(yylvals, s * sizeof(YYSTYPE))) == NULL) goto yyenomem;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                if ((yylpsns   = (YYLTYPE *)realloc(yylpsns, s * sizeof(YYLTYPE))) == NULL) goto yyenomem;
#endif
                yylvp   = yylve = yylvals + p;
                yylvlim = yylvals + s;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                yylpp   = yylpe = yylpsns + p;
                yylplim = yylpsns + s;
#endif
                yylexp  = yylexemes + p;
            }
            *yylexp = (YYINT) YYLEX;
            *yylvp++ = yylval;
            yylve++;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            *yylpp++ = yylloc;
            yylpe++;
#endif
            yychar = *yylexp++;
            break;
        }
        /* normal operation, no conflict encountered */
#endif /* YYBTYACC */
        yychar = YYLEX;
#if YYBTYACC
        } while (0);
#endif /* YYBTYACC */
        if (yychar < 0) yychar = YYEOF;
#if YYDEBUG
        if (yydebug)
        {
            if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
            fprintf(stderr, "%s[%d]: state %d, reading token %d (%s)",
                            YYDEBUGSTR, yydepth, yystate, yychar, yys);
#ifdef YYSTYPE_TOSTRING
#if YYBTYACC
            if (!yytrial)
#endif /* YYBTYACC */
                fprintf(stderr, " <%s>", YYSTYPE_TOSTRING(yychar, yylval));
#endif
            fputc('\n', stderr);
        }
#endif
    }
#if YYBTYACC

    /* Do we have a conflict? */
    if (((yyn = yycindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
        yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
    {
        YYINT ctry;

        if (yypath)
        {
            YYParseState *save;
#if YYDEBUG
            if (yydebug)
                fprintf(stderr, "%s[%d]: CONFLICT in state %d: following successful trial parse\n",
                                YYDEBUGSTR, yydepth, yystate);
#endif
            /* Switch to the next conflict context */
            save = yypath;
            yypath = save->save;
            save->save = NULL;
            ctry = save->ctry;
            if (save->state != yystate) YYABORT;
            yyFreeState(save);

        }
        else
        {

            /* Unresolved conflict - start/continue trial parse */
            YYParseState *save;
#if YYDEBUG
            if (yydebug)
            {
                fprintf(stderr, "%s[%d]: CONFLICT in state %d. ", YYDEBUGSTR, yydepth, yystate);
                if (yyps->save)
                    fputs("ALREADY in conflict, continuing trial parse.\n", stderr);
                else
                    fputs("Starting trial parse.\n", stderr);
            }
#endif
            save                  = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
            if (save == NULL) goto yyenomem;
            save->save            = yyps->save;
            save->state           = yystate;
            save->errflag         = yyerrflag;
            save->yystack.s_mark  = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
            memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
            save->yystack.l_mark  = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
            memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            save->yystack.p_mark  = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
            memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
#endif
            ctry                  = yytable[yyn];
            if (yyctable[ctry] == -1)
            {
#if YYDEBUG
                if (yydebug && yychar >= YYEOF)
                    fprintf(stderr, "%s[%d]: backtracking 1 token\n", YYDEBUGSTR, yydepth);
#endif
                ctry++;
            }
            save->ctry = ctry;
            if (yyps->save == NULL)
            {
                /* If this is a first conflict in the stack, start saving lexemes */
                if (!yylexemes)
                {
                    yylexemes = (YYINT *) malloc((YYLVQUEUEGROWTH) * sizeof(YYINT));
                    if (yylexemes == NULL) goto yyenomem;
                    yylvals   = (YYSTYPE *) malloc((YYLVQUEUEGROWTH) * sizeof(YYSTYPE));
                    if (yylvals == NULL) goto yyenomem;
                    yylvlim   = yylvals + YYLVQUEUEGROWTH;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                    yylpsns   = (YYLTYPE *) malloc((YYLVQUEUEGROWTH) * sizeof(YYLTYPE));
                    if (yylpsns == NULL) goto yyenomem;
                    yylplim   = yylpsns + YYLVQUEUEGROWTH;
#endif
                }
                if (yylvp == yylve)
                {
                    yylvp  = yylve = yylvals;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                    yylpp  = yylpe = yylpsns;
#endif
                    yylexp = yylexemes;
                    if (yychar >= YYEOF)
                    {
                        *yylve++ = yylval;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                        *yylpe++ = yylloc;
#endif
                        *yylexp  = (YYINT) yychar;
                        yychar   = YYEMPTY;
                    }
                }
            }
            if (yychar >= YYEOF)
            {
                yylvp--;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                yylpp--;
#endif
                yylexp--;
                yychar = YYEMPTY;
            }
            save->lexeme = (int) (yylvp - yylvals);
            yyps->save   = save;
        }
        if (yytable[yyn] == ctry)
        {
#if YYDEBUG
            if (yydebug)
                fprintf(stderr, "%s[%d]: state %d, shifting to state %d\n",
                                YYDEBUGSTR, yydepth, yystate, yyctable[ctry]);
#endif
            if (yychar < 0)
            {
                yylvp++;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                yylpp++;
#endif
                yylexp++;
            }
            if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
                goto yyoverflow;
            yystate = yyctable[ctry];
            *++yystack.s_mark = (YYINT) yystate;
            *++yystack.l_mark = yylval;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            *++yystack.p_mark = yylloc;
#endif
            yychar  = YYEMPTY;
            if (yyerrflag > 0) --yyerrflag;
            goto yyloop;
        }
        else
        {
            yyn = yyctable[ctry];
            goto yyreduce;
        }
    } /* End of code dealing with conflicts */
#endif /* YYBTYACC */
    if (((yyn = yysindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
    {
#if YYDEBUG
        if (yydebug)
            fprintf(stderr, "%s[%d]: state %d, shifting to state %d\n",
                            YYDEBUGSTR, yydepth, yystate, yytable[yyn]);
#endif
        if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
        yystate = yytable[yyn];
        *++yystack.s_mark = yytable[yyn];
        *++yystack.l_mark = yylval;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
        *++yystack.p_mark = yylloc;
#endif
        yychar = YYEMPTY;
        if (yyerrflag > 0)  --yyerrflag;
        goto yyloop;
    }
    if (((yyn = yyrindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
    {
        yyn = yytable[yyn];
        goto yyreduce;
    }
    if (yyerrflag != 0) goto yyinrecovery;
#if YYBTYACC

    yynewerrflag = 1;
    goto yyerrhandler;
    goto yyerrlab; /* redundant goto avoids 'unused label' warning */

yyerrlab:
    /* explicit YYERROR from an action -- pop the rhs of the rule reduced
     * before looking for error recovery */
    yystack.s_mark -= yym;
    yystate = *yystack.s_mark;
    yystack.l_mark -= yym;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    yystack.p_mark -= yym;
#endif

    yynewerrflag = 0;
yyerrhandler:
    while (yyps->save)
    {
        int ctry;
        YYParseState *save = yyps->save;
#if YYDEBUG
        if (yydebug)
            fprintf(stderr, "%s[%d]: ERROR in state %d, CONFLICT BACKTRACKING to state %d, %d tokens\n",
                            YYDEBUGSTR, yydepth, yystate, yyps->save->state,
                    (int)(yylvp - yylvals - yyps->save->lexeme));
#endif
        /* Memorize most forward-looking error state in case it's really an error. */
        if (yyerrctx == NULL || yyerrctx->lexeme < yylvp - yylvals)
        {
            /* Free old saved error context state */
            if (yyerrctx) yyFreeState(yyerrctx);
            /* Create and fill out new saved error context state */
            yyerrctx                 = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
            if (yyerrctx == NULL) goto yyenomem;
            yyerrctx->save           = yyps->save;
            yyerrctx->state          = yystate;
            yyerrctx->errflag        = yyerrflag;
            yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
            memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
            yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
            memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
            memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
#endif
            yyerrctx->lexeme         = (int) (yylvp - yylvals);
        }
        yylvp          = yylvals   + save->lexeme;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
        yylpp          = yylpsns   + save->lexeme;
#endif
        yylexp         = yylexemes + save->lexeme;
        yychar         = YYEMPTY;
        yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
        memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
        yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
        memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
        yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
        memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
#endif
        ctry           = ++save->ctry;
        yystate        = save->state;
        /* We tried shift, try reduce now */
        if ((yyn = yyctable[ctry]) >= 0) goto yyreduce;
        yyps->save     = save->save;
        save->save     = NULL;
        yyFreeState(save);

        /* Nothing left on the stack -- error */
        if (!yyps->save)
        {
#if YYDEBUG
            if (yydebug)
                fprintf(stderr, "%sdebug[%d,trial]: trial parse FAILED, entering ERROR mode\n",
                                YYPREFIX, yydepth);
#endif
            /* Restore state as it was in the most forward-advanced error */
            yylvp          = yylvals   + yyerrctx->lexeme;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            yylpp          = yylpsns   + yyerrctx->lexeme;
#endif
            yylexp         = yylexemes + yyerrctx->lexeme;
            yychar         = yylexp[-1];
            yylval         = yylvp[-1];
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            yylloc         = yylpp[-1];
#endif
            yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
            memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
            yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
            memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
            memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
#endif
            yystate        = yyerrctx->state;
            yyFreeState(yyerrctx);
            yyerrctx       = NULL;
        }
        yynewerrflag = 1;
    }
    if (yynewerrflag == 0) goto yyinrecovery;
#endif /* YYBTYACC */

    YYERROR_CALL("syntax error");
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    yyerror_loc_range[1] = yylloc; /* lookahead position is error start position */
#endif

#if !YYBTYACC
    goto yyerrlab; /* redundant goto avoids 'unused label' warning */
yyerrlab:
#endif
    ++yynerrs;

yyinrecovery:
    if (yyerrflag < 3)
    {
        yyerrflag = 3;
        for (;;)
        {
            if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
                    yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) YYERRCODE)
            {
#if YYDEBUG
                if (yydebug)
                    fprintf(stderr, "%s[%d]: state %d, error recovery shifting to state %d\n",
                                    YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
#endif
                if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
                yystate = yytable[yyn];
                *++yystack.s_mark = yytable[yyn];
                *++yystack.l_mark = yylval;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                /* lookahead position is error end position */
                yyerror_loc_range[2] = yylloc;
                YYLLOC_DEFAULT(yyloc, yyerror_loc_range, 2); /* position of error span */
                *++yystack.p_mark = yyloc;
#endif
                goto yyloop;
            }
            else
            {
#if YYDEBUG
                if (yydebug)
                    fprintf(stderr, "%s[%d]: error recovery discarding state %d\n",
                                    YYDEBUGSTR, yydepth, *yystack.s_mark);
#endif
                if (yystack.s_mark <= yystack.s_base) goto yyabort;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                /* the current TOS position is the error start position */
                yyerror_loc_range[1] = *yystack.p_mark;
#endif
#if defined(YYDESTRUCT_CALL)
#if YYBTYACC
                if (!yytrial)
#endif /* YYBTYACC */
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                    YYDESTRUCT_CALL("error: discarding state",
                                    yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
#else
                    YYDESTRUCT_CALL("error: discarding state",
                                    yystos[*yystack.s_mark], yystack.l_mark);
#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
#endif /* defined(YYDESTRUCT_CALL) */
                --yystack.s_mark;
                --yystack.l_mark;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                --yystack.p_mark;
#endif
            }
        }
    }
    else
    {
        if (yychar == YYEOF) goto yyabort;
#if YYDEBUG
        if (yydebug)
        {
            if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
            fprintf(stderr, "%s[%d]: state %d, error recovery discarding token %d (%s)\n",
                            YYDEBUGSTR, yydepth, yystate, yychar, yys);
        }
#endif
#if defined(YYDESTRUCT_CALL)
#if YYBTYACC
        if (!yytrial)
#endif /* YYBTYACC */
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
            YYDESTRUCT_CALL("error: discarding token", yychar, &yylval, &yylloc);
#else
            YYDESTRUCT_CALL("error: discarding token", yychar, &yylval);
#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
#endif /* defined(YYDESTRUCT_CALL) */
        yychar = YYEMPTY;
        goto yyloop;
    }

yyreduce:
    yym = yylen[yyn];
#if YYDEBUG
    if (yydebug)
    {
        fprintf(stderr, "%s[%d]: state %d, reducing by rule %d (%s)",
                        YYDEBUGSTR, yydepth, yystate, yyn, yyrule[yyn]);
#ifdef YYSTYPE_TOSTRING
#if YYBTYACC
        if (!yytrial)
#endif /* YYBTYACC */
            if (yym > 0)
            {
                int i;
                fputc('<', stderr);
                for (i = yym; i > 0; i--)
                {
                    if (i != yym) fputs(", ", stderr);
                    fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
                                           yystack.l_mark[1-i]), stderr);
                }
                fputc('>', stderr);
            }
#endif
        fputc('\n', stderr);
    }
#endif
    if (yym > 0)
        yyval = yystack.l_mark[1-yym];
    else
        memset(&yyval, 0, sizeof yyval);
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)

    /* Perform position reduction */
    memset(&yyloc, 0, sizeof(yyloc));
#if YYBTYACC
    if (!yytrial)
#endif /* YYBTYACC */
    {
        YYLLOC_DEFAULT(yyloc, &yystack.p_mark[-yym], yym);
        /* just in case YYERROR is invoked within the action, save
           the start of the rhs as the error start position */
        yyerror_loc_range[1] = yystack.p_mark[1-yym];
    }
#endif

    switch (yyn)
    {
case 1:
#line 53 "parse.y"
	{ parsetree = yystack.l_mark[-1].node; YYACCEPT; }
#line 1638 "parse.tab.c"
break;
case 2:
#line 54 "parse.y"
	{ yyerrok; parsetree = NULL; YYABORT; }
#line 1643 "parse.tab.c"
break;
case 3:
#line 57 "parse.y"
	{ if (!heredoc(1)) YYABORT; }
#line 1648 "parse.tab.c"
break;
case 4:
#line 58 "parse.y"
	{ if (!heredoc(0)) YYABORT; }
#line 1653 "parse.tab.c"
break;
case 6:
#line 62 "parse.y"
	{ yyval.node = (yystack.l_mark[-1].node != NULL ? mk(nNowait,yystack.l_mark[-1].node) : yystack.l_mark[-1].node); }
#line 1658 "parse.tab.c"
break;
case 8:
#line 66 "parse.y"
	{ yyval.node = (yystack.l_mark[-1].node != NULL ? mk(nBody,yystack.l_mark[-1].node,yystack.l_mark[0].node) : yystack.l_mark[0].node); }
#line 1663 "parse.tab.c"
break;
case 10:
#line 70 "parse.y"
	{ yyval.node = (yystack.l_mark[-1].node == NULL ? yystack.l_mark[0].node : yystack.l_mark[0].node == NULL ? yystack.l_mark[-1].node : mk(nBody,yystack.l_mark[-1].node,yystack.l_mark[0].node)); }
#line 1668 "parse.tab.c"
break;
case 12:
#line 73 "parse.y"
	{ yyval.node = yystack.l_mark[-1].node; if (!heredoc(0)) YYABORT; }
#line 1673 "parse.tab.c"
break;
case 13:
#line 75 "parse.y"
	{ yyval.node = yystack.l_mark[-1].node; }
#line 1678 "parse.tab.c"
break;
case 14:
#line 77 "parse.y"
	{ yyval.node = yystack.l_mark[-1].node; }
#line 1683 "parse.tab.c"
break;
case 15:
#line 79 "parse.y"
	{ yyval.node = mk(nAssign,yystack.l_mark[-4].node,yystack.l_mark[0].node); }
#line 1688 "parse.tab.c"
break;
case 16:
#line 81 "parse.y"
	{ yyval.node = NULL; }
#line 1693 "parse.tab.c"
break;
case 17:
#line 82 "parse.y"
	{ yyval.node = mk(nEpilog,yystack.l_mark[-1].node,yystack.l_mark[0].node); }
#line 1698 "parse.tab.c"
break;
case 18:
#line 85 "parse.y"
	{ yyval.node = mk(nDup,yystack.l_mark[0].dup.type,yystack.l_mark[0].dup.left,yystack.l_mark[0].dup.right); }
#line 1703 "parse.tab.c"
break;
case 19:
#line 86 "parse.y"
	{ yyval.node = mk(nRedir,yystack.l_mark[-1].redir.type,yystack.l_mark[-1].redir.fd,yystack.l_mark[0].node);
				  if (yystack.l_mark[-1].redir.type == rHeredoc && !qdoc(yystack.l_mark[0].node, yyval.node)) YYABORT; /* queue heredocs up */
				}
#line 1710 "parse.tab.c"
break;
case 20:
#line 89 "parse.y"
	{ yyval.node = mk(nRedir,yystack.l_mark[-1].redir.type,yystack.l_mark[-1].redir.fd,yystack.l_mark[0].node);
				  if (yystack.l_mark[-1].redir.type == rHeredoc && !qdoc(yystack.l_mark[0].node, yyval.node)) YYABORT; /* queue heredocs up */
				}
#line 1717 "parse.tab.c"
break;
case 21:
#line 93 "parse.y"
	{ yyval.node = mk(nCase, yystack.l_mark[-1].node); }
#line 1722 "parse.tab.c"
break;
case 22:
#line 94 "parse.y"
	{ yyval.node = mk(nCase, yystack.l_mark[-1].node); }
#line 1727 "parse.tab.c"
break;
case 23:
#line 96 "parse.y"
	{ yyval.node = mk(nCbody, yystack.l_mark[0].node, NULL); }
#line 1732 "parse.tab.c"
break;
case 24:
#line 97 "parse.y"
	{ yyval.node = mk(nCbody, yystack.l_mark[-1].node, yystack.l_mark[0].node); }
#line 1737 "parse.tab.c"
break;
case 25:
#line 98 "parse.y"
	{ yyval.node = mk(nCbody, yystack.l_mark[-1].node, yystack.l_mark[0].node); }
#line 1742 "parse.tab.c"
break;
case 26:
#line 100 "parse.y"
	{ yyval.node = yystack.l_mark[0].node != NULL ? mk(nElse, yystack.l_mark[-1].node, yystack.l_mark[0].node) : yystack.l_mark[-1].node; }
#line 1747 "parse.tab.c"
break;
case 27:
#line 102 "parse.y"
	{ yyval.node = NULL; }
#line 1752 "parse.tab.c"
break;
case 28:
#line 103 "parse.y"
	{ yyval.node = yystack.l_mark[0].node; }
#line 1757 "parse.tab.c"
break;
case 29:
#line 105 "parse.y"
	{ yyval.node = NULL; }
#line 1762 "parse.tab.c"
break;
case 31:
#line 107 "parse.y"
	{ yyval.node = mk(nBrace,yystack.l_mark[-1].node,yystack.l_mark[0].node); }
#line 1767 "parse.tab.c"
break;
case 32:
#line 108 "parse.y"
	{ yyval.node = mk(nIf,yystack.l_mark[-2].node,yystack.l_mark[0].node); }
#line 1772 "parse.tab.c"
break;
case 33:
#line 109 "parse.y"
	{ yyval.node = mk(nForin,yystack.l_mark[-5].node,yystack.l_mark[-3].node,yystack.l_mark[0].node); }
#line 1777 "parse.tab.c"
break;
case 34:
#line 110 "parse.y"
	{ yyval.node = mk(nForin,yystack.l_mark[-3].node,star,yystack.l_mark[0].node); }
#line 1782 "parse.tab.c"
break;
case 35:
#line 111 "parse.y"
	{ yyval.node = mk(nWhile,yystack.l_mark[-2].node,yystack.l_mark[0].node); }
#line 1787 "parse.tab.c"
break;
case 36:
#line 112 "parse.y"
	{ yyval.node = mk(nSwitch,yystack.l_mark[-5].node,yystack.l_mark[-1].node); }
#line 1792 "parse.tab.c"
break;
case 37:
#line 113 "parse.y"
	{ yyval.node = mk(nMatch,yystack.l_mark[-1].node,yystack.l_mark[0].node); }
#line 1797 "parse.tab.c"
break;
case 38:
#line 114 "parse.y"
	{ yyval.node = mk(nAndalso,yystack.l_mark[-3].node,yystack.l_mark[0].node); }
#line 1802 "parse.tab.c"
break;
case 39:
#line 115 "parse.y"
	{ yyval.node = mk(nOrelse,yystack.l_mark[-3].node,yystack.l_mark[0].node); }
#line 1807 "parse.tab.c"
break;
case 40:
#line 116 "parse.y"
	{ yyval.node = mk(nPipe,yystack.l_mark[-2].pipe.left,yystack.l_mark[-2].pipe.right,yystack.l_mark[-3].node,yystack.l_mark[0].node); }
#line 1812 "parse.tab.c"
break;
case 41:
#line 117 "parse.y"
	{ yyval.node = (yystack.l_mark[0].node != NULL ? mk(nPre,yystack.l_mark[-1].node,yystack.l_mark[0].node) : yystack.l_mark[-1].node); }
#line 1817 "parse.tab.c"
break;
case 42:
#line 118 "parse.y"
	{ yyval.node = (yystack.l_mark[0].node != NULL ? mk(nPre,yystack.l_mark[-1].node,yystack.l_mark[0].node) : yystack.l_mark[-1].node); }
#line 1822 "parse.tab.c"
break;
case 43:
#line 119 "parse.y"
	{ yyval.node = mk(nBang,yystack.l_mark[0].node); }
#line 1827 "parse.tab.c"
break;
case 44:
#line 120 "parse.y"
	{ yyval.node = mk(nSubshell,yystack.l_mark[0].node); }
#line 1832 "parse.tab.c"
break;
case 45:
#line 121 "parse.y"
	{ yyval.node = mk(nNewfn,yystack.l_mark[-1].node,yystack.l_mark[0].node); }
#line 1837 "parse.tab.c"
break;
case 46:
#line 122 "parse.y"
	{ yyval.node = mk(nRmfn,yystack.l_mark[0].node); }
#line 1842 "parse.tab.c"
break;
case 50:
#line 128 "parse.y"
	{ yyval.node = (yystack.l_mark[0].node != NULL ? mk(nArgs,yystack.l_mark[-1].node,yystack.l_mark[0].node) : yystack.l_mark[-1].node); }
#line 1847 "parse.tab.c"
break;
case 52:
#line 131 "parse.y"
	{ yyval.node = (yystack.l_mark[0].node != NULL ? mk(nArgs,yystack.l_mark[-1].node,yystack.l_mark[0].node) : yystack.l_mark[-1].node); }
#line 1852 "parse.tab.c"
break;
case 56:
#line 137 "parse.y"
	{ yyval.node = mk(nConcat,yystack.l_mark[-2].node,yystack.l_mark[0].node); }
#line 1857 "parse.tab.c"
break;
case 58:
#line 140 "parse.y"
	{ yyval.node = mk(nWord, yystack.l_mark[0].keyword, NULL, FALSE); }
#line 1862 "parse.tab.c"
break;
case 60:
#line 143 "parse.y"
	{ yyval.node = mk(nConcat,yystack.l_mark[-2].node,yystack.l_mark[0].node); }
#line 1867 "parse.tab.c"
break;
case 61:
#line 145 "parse.y"
	{ yyval.node = mk(nVar,yystack.l_mark[0].node); }
#line 1872 "parse.tab.c"
break;
case 62:
#line 146 "parse.y"
	{ yyval.node = mk(nVarsub,yystack.l_mark[-3].node,yystack.l_mark[-1].node); }
#line 1877 "parse.tab.c"
break;
case 63:
#line 147 "parse.y"
	{ yyval.node = mk(nCount,yystack.l_mark[0].node); }
#line 1882 "parse.tab.c"
break;
case 64:
#line 148 "parse.y"
	{ yyval.node = mk(nFlat, yystack.l_mark[0].node); }
#line 1887 "parse.tab.c"
break;
case 65:
#line 149 "parse.y"
	{ yyval.node = mk(nBackq,nolist,yystack.l_mark[0].node); }
#line 1892 "parse.tab.c"
break;
case 66:
#line 150 "parse.y"
	{ yyval.node = mk(nBackq,nolist,yystack.l_mark[0].node); }
#line 1897 "parse.tab.c"
break;
case 67:
#line 151 "parse.y"
	{ yyval.node = mk(nBackq,yystack.l_mark[-1].node,yystack.l_mark[0].node); }
#line 1902 "parse.tab.c"
break;
case 68:
#line 152 "parse.y"
	{ yyval.node = mk(nBackq,yystack.l_mark[-1].node,yystack.l_mark[0].node); }
#line 1907 "parse.tab.c"
break;
case 69:
#line 153 "parse.y"
	{ yyval.node = yystack.l_mark[-1].node; }
#line 1912 "parse.tab.c"
break;
case 70:
#line 154 "parse.y"
	{ yyval.node = mk(nNmpipe,yystack.l_mark[-1].redir.type,yystack.l_mark[-1].redir.fd,yystack.l_mark[0].node); }
#line 1917 "parse.tab.c"
break;
case 71:
#line 155 "parse.y"
	{ yyval.node = mk(nWord, yystack.l_mark[0].word.w, yystack.l_mark[0].word.m, yystack.l_mark[0].word.q); }
#line 1922 "parse.tab.c"
break;
case 72:
#line 157 "parse.y"
	{ yyval.keyword = "for"; }
#line 1927 "parse.tab.c"
break;
case 73:
#line 158 "parse.y"
	{ yyval.keyword = "in"; }
#line 1932 "parse.tab.c"
break;
case 74:
#line 159 "parse.y"
	{ yyval.keyword = "while"; }
#line 1937 "parse.tab.c"
break;
case 75:
#line 160 "parse.y"
	{ yyval.keyword = "if"; }
#line 1942 "parse.tab.c"
break;
case 76:
#line 161 "parse.y"
	{ yyval.keyword = "switch"; }
#line 1947 "parse.tab.c"
break;
case 77:
#line 162 "parse.y"
	{ yyval.keyword = "fn"; }
#line 1952 "parse.tab.c"
break;
case 78:
#line 163 "parse.y"
	{ yyval.keyword = "else"; }
#line 1957 "parse.tab.c"
break;
case 79:
#line 164 "parse.y"
	{ yyval.keyword = "case"; }
#line 1962 "parse.tab.c"
break;
case 80:
#line 165 "parse.y"
	{ yyval.keyword = "~"; }
#line 1967 "parse.tab.c"
break;
case 81:
#line 166 "parse.y"
	{ yyval.keyword = "!"; }
#line 1972 "parse.tab.c"
break;
case 82:
#line 167 "parse.y"
	{ yyval.keyword = "@"; }
#line 1977 "parse.tab.c"
break;
case 83:
#line 168 "parse.y"
	{ yyval.keyword = "="; }
#line 1982 "parse.tab.c"
break;
case 84:
#line 170 "parse.y"
	{ yyval.node = NULL; }
#line 1987 "parse.tab.c"
break;
case 85:
#line 171 "parse.y"
	{ yyval.node = (yystack.l_mark[-1].node != NULL ? (yystack.l_mark[0].node != NULL ? mk(nLappend,yystack.l_mark[-1].node,yystack.l_mark[0].node) : yystack.l_mark[-1].node) : yystack.l_mark[0].node); }
#line 1992 "parse.tab.c"
break;
case 86:
#line 173 "parse.y"
	{ yyval.node = NULL; }
#line 1997 "parse.tab.c"
break;
case 88:
#line 175 "parse.y"
	{ yyval.node = (yystack.l_mark[-1].node != NULL ? (yystack.l_mark[0].node != NULL ? mk(nLappend,yystack.l_mark[-1].node,yystack.l_mark[0].node) : yystack.l_mark[-1].node) : yystack.l_mark[0].node); }
#line 2002 "parse.tab.c"
break;
#line 2004 "parse.tab.c"
    default:
        break;
    }
    yystack.s_mark -= yym;
    yystate = *yystack.s_mark;
    yystack.l_mark -= yym;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    yystack.p_mark -= yym;
#endif
    yym = yylhs[yyn];
    if (yystate == 0 && yym == 0)
    {
#if YYDEBUG
        if (yydebug)
        {
            fprintf(stderr, "%s[%d]: after reduction, ", YYDEBUGSTR, yydepth);
#ifdef YYSTYPE_TOSTRING
#if YYBTYACC
            if (!yytrial)
#endif /* YYBTYACC */
                fprintf(stderr, "result is <%s>, ", YYSTYPE_TOSTRING(yystos[YYFINAL], yyval));
#endif
            fprintf(stderr, "shifting from state 0 to final state %d\n", YYFINAL);
        }
#endif
        yystate = YYFINAL;
        *++yystack.s_mark = YYFINAL;
        *++yystack.l_mark = yyval;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
        *++yystack.p_mark = yyloc;
#endif
        if (yychar < 0)
        {
#if YYBTYACC
            do {
            if (yylvp < yylve)
            {
                /* we're currently re-reading tokens */
                yylval = *yylvp++;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                yylloc = *yylpp++;
#endif
                yychar = *yylexp++;
                break;
            }
            if (yyps->save)
            {
                /* in trial mode; save scanner results for future parse attempts */
                if (yylvp == yylvlim)
                {   /* Enlarge lexical value queue */
                    size_t p = (size_t) (yylvp - yylvals);
                    size_t s = (size_t) (yylvlim - yylvals);

                    s += YYLVQUEUEGROWTH;
                    if ((yylexemes = (YYINT *)realloc(yylexemes, s * sizeof(YYINT))) == NULL)
                        goto yyenomem;
                    if ((yylvals   = (YYSTYPE *)realloc(yylvals, s * sizeof(YYSTYPE))) == NULL)
                        goto yyenomem;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                    if ((yylpsns   = (YYLTYPE *)realloc(yylpsns, s * sizeof(YYLTYPE))) == NULL)
                        goto yyenomem;
#endif
                    yylvp   = yylve = yylvals + p;
                    yylvlim = yylvals + s;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                    yylpp   = yylpe = yylpsns + p;
                    yylplim = yylpsns + s;
#endif
                    yylexp  = yylexemes + p;
                }
                *yylexp = (YYINT) YYLEX;
                *yylvp++ = yylval;
                yylve++;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
                *yylpp++ = yylloc;
                yylpe++;
#endif
                yychar = *yylexp++;
                break;
            }
            /* normal operation, no conflict encountered */
#endif /* YYBTYACC */
            yychar = YYLEX;
#if YYBTYACC
            } while (0);
#endif /* YYBTYACC */
            if (yychar < 0) yychar = YYEOF;
#if YYDEBUG
            if (yydebug)
            {
                if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
                fprintf(stderr, "%s[%d]: state %d, reading token %d (%s)\n",
                                YYDEBUGSTR, yydepth, YYFINAL, yychar, yys);
            }
#endif
        }
        if (yychar == YYEOF) goto yyaccept;
        goto yyloop;
    }
    if (((yyn = yygindex[yym]) != 0) && (yyn += yystate) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yystate)
        yystate = yytable[yyn];
    else
        yystate = yydgoto[yym];
#if YYDEBUG
    if (yydebug)
    {
        fprintf(stderr, "%s[%d]: after reduction, ", YYDEBUGSTR, yydepth);
#ifdef YYSTYPE_TOSTRING
#if YYBTYACC
        if (!yytrial)
#endif /* YYBTYACC */
            fprintf(stderr, "result is <%s>, ", YYSTYPE_TOSTRING(yystos[yystate], yyval));
#endif
        fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
    }
#endif
    if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
    *++yystack.s_mark = (YYINT) yystate;
    *++yystack.l_mark = yyval;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    *++yystack.p_mark = yyloc;
#endif
    goto yyloop;
#if YYBTYACC

    /* Reduction declares that this path is valid. Set yypath and do a full parse */
yyvalid:
    if (yypath) YYABORT;
    while (yyps->save)
    {
        YYParseState *save = yyps->save;
        yyps->save = save->save;
        save->save = yypath;
        yypath = save;
    }
#if YYDEBUG
    if (yydebug)
        fprintf(stderr, "%s[%d]: state %d, CONFLICT trial successful, backtracking to state %d, %d tokens\n",
                        YYDEBUGSTR, yydepth, yystate, yypath->state, (int)(yylvp - yylvals - yypath->lexeme));
#endif
    if (yyerrctx)
    {
        yyFreeState(yyerrctx);
        yyerrctx = NULL;
    }
    yylvp          = yylvals + yypath->lexeme;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    yylpp          = yylpsns + yypath->lexeme;
#endif
    yylexp         = yylexemes + yypath->lexeme;
    yychar         = YYEMPTY;
    yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
    memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(YYINT));
    yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
    memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
    yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
    memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
#endif
    yystate        = yypath->state;
    goto yyloop;
#endif /* YYBTYACC */

yyoverflow:
    YYERROR_CALL("yacc stack overflow");
#if YYBTYACC
    goto yyabort_nomem;
yyenomem:
    YYERROR_CALL("memory exhausted");
yyabort_nomem:
#endif /* YYBTYACC */
    yyresult = 2;
    goto yyreturn;

yyabort:
    yyresult = 1;
    goto yyreturn;

yyaccept:
#if YYBTYACC
    if (yyps->save) goto yyvalid;
#endif /* YYBTYACC */
    yyresult = 0;

yyreturn:
#if defined(YYDESTRUCT_CALL)
    if (yychar != YYEOF && yychar != YYEMPTY)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
        YYDESTRUCT_CALL("cleanup: discarding token", yychar, &yylval, &yylloc);
#else
        YYDESTRUCT_CALL("cleanup: discarding token", yychar, &yylval);
#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */

    {
        YYSTYPE *pv;
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
        YYLTYPE *pp;

        for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
             YYDESTRUCT_CALL("cleanup: discarding state",
                             yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
#else
        for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
             YYDESTRUCT_CALL("cleanup: discarding state",
                             yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
#endif /* defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) */
    }
#endif /* defined(YYDESTRUCT_CALL) */

#if YYBTYACC
    if (yyerrctx)
    {
        yyFreeState(yyerrctx);
        yyerrctx = NULL;
    }
    while (yyps)
    {
        YYParseState *save = yyps;
        yyps = save->save;
        save->save = NULL;
        yyFreeState(save);
    }
    while (yypath)
    {
        YYParseState *save = yypath;
        yypath = save->save;
        save->save = NULL;
        yyFreeState(save);
    }
#endif /* YYBTYACC */
    yyfreestack(&yystack);
    return (yyresult);
}
