Logo Search packages:      
Sourcecode: intercal version File versions  Download package

parser.c

/* A Bison parser, made by GNU Bison 2.3.  */

/* Skeleton implementation for Bison's Yacc-like parsers in C

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Bison version.  */
#define YYBISON_VERSION "2.3"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     UNKNOWN = 258,
     GETS = 259,
     RESIZE = 260,
     NEXT = 261,
     GO_AHEAD = 262,
     GO_BACK = 263,
     FORGET = 264,
     RESUME = 265,
     STASH = 266,
     RETRIEVE = 267,
     IGNORE = 268,
     REMEMBER = 269,
     ABSTAIN = 270,
     REINSTATE = 271,
     DISABLE = 272,
     ENABLE = 273,
     MANYFROM = 274,
     GIVE_UP = 275,
     READ_OUT = 276,
     WRITE_IN = 277,
     PIN = 278,
     COME_FROM = 279,
     NEXTFROMLABEL = 280,
     NEXTFROMEXPR = 281,
     NEXTFROMGERUND = 282,
     COMPUCOME = 283,
     GERUCOME = 284,
     PREPROC = 285,
     WHILE = 286,
     TRY_AGAIN = 287,
     CREATE = 288,
     FROM = 289,
     MAYBE = 290,
     DO = 291,
     PLEASE = 292,
     NOT = 293,
     ONCE = 294,
     AGAIN = 295,
     MESH = 296,
     NOSPOT = 297,
     ick_ONESPOT = 298,
     ick_TWOSPOT = 299,
     ick_TAIL = 300,
     ick_HYBRID = 301,
     MINGLE = 302,
     SELECT = 303,
     SUB = 304,
     BY = 305,
     BADCHAR = 306,
     SLAT = 307,
     BACKSLAT = 308,
     NUMBER = 309,
     UNARY = 310,
     OHOHSEVEN = 311,
     GERUND = 312,
     LABEL = 313,
     INTERSECTION = 314,
     SPLATTERED = 315,
     MESH32 = 316,
     C_AND = 317,
     C_OR = 318,
     C_XOR = 319,
     C_NOT = 320,
     C_LOGICALNOT = 321,
     C_LSHIFTBY = 322,
     C_RSHIFTBY = 323,
     C_NOTEQUAL = 324,
     C_A = 325,
     C_PLUS = 326,
     C_MINUS = 327,
     C_TIMES = 328,
     C_DIVIDEBY = 329,
     C_MODULUS = 330,
     C_GREATER = 331,
     C_LESS = 332,
     C_ISEQUAL = 333,
     C_LOGICALAND = 334,
     C_LOGICALOR = 335,
     AND = 336,
     OR = 337,
     XOR = 338,
     FIN = 339,
     WHIRL = 340,
     WHIRL2 = 341,
     WHIRL3 = 342,
     WHIRL4 = 343,
     WHIRL5 = 344,
     REV_AND = 345,
     REV_OR = 346,
     REV_XOR = 347,
     REV_FIN = 348,
     REV_WHIRL = 349,
     REV_WHIRL2 = 350,
     REV_WHIRL3 = 351,
     REV_WHIRL4 = 352,
     REV_WHIRL5 = 353,
     UNKNOWNID = 354,
     US_ID = 355,
     US_SCALAR = 356,
     US_ARRVAR = 357,
     US_ELEM = 358,
     US_EXPR = 359,
     CLOSESPARK = 360,
     CLOSEEARS = 361,
     OPENSPARK = 362,
     OPENEARS = 363,
     HIGHPREC = 364,
     UNARYPREC = 365,
     LOWPREC = 366
   };
#endif
/* Tokens.  */
#define UNKNOWN 258
#define GETS 259
#define RESIZE 260
#define NEXT 261
#define GO_AHEAD 262
#define GO_BACK 263
#define FORGET 264
#define RESUME 265
#define STASH 266
#define RETRIEVE 267
#define IGNORE 268
#define REMEMBER 269
#define ABSTAIN 270
#define REINSTATE 271
#define DISABLE 272
#define ENABLE 273
#define MANYFROM 274
#define GIVE_UP 275
#define READ_OUT 276
#define WRITE_IN 277
#define PIN 278
#define COME_FROM 279
#define NEXTFROMLABEL 280
#define NEXTFROMEXPR 281
#define NEXTFROMGERUND 282
#define COMPUCOME 283
#define GERUCOME 284
#define PREPROC 285
#define WHILE 286
#define TRY_AGAIN 287
#define CREATE 288
#define FROM 289
#define MAYBE 290
#define DO 291
#define PLEASE 292
#define NOT 293
#define ONCE 294
#define AGAIN 295
#define MESH 296
#define NOSPOT 297
#define ick_ONESPOT 298
#define ick_TWOSPOT 299
#define ick_TAIL 300
#define ick_HYBRID 301
#define MINGLE 302
#define SELECT 303
#define SUB 304
#define BY 305
#define BADCHAR 306
#define SLAT 307
#define BACKSLAT 308
#define NUMBER 309
#define UNARY 310
#define OHOHSEVEN 311
#define GERUND 312
#define LABEL 313
#define INTERSECTION 314
#define SPLATTERED 315
#define MESH32 316
#define C_AND 317
#define C_OR 318
#define C_XOR 319
#define C_NOT 320
#define C_LOGICALNOT 321
#define C_LSHIFTBY 322
#define C_RSHIFTBY 323
#define C_NOTEQUAL 324
#define C_A 325
#define C_PLUS 326
#define C_MINUS 327
#define C_TIMES 328
#define C_DIVIDEBY 329
#define C_MODULUS 330
#define C_GREATER 331
#define C_LESS 332
#define C_ISEQUAL 333
#define C_LOGICALAND 334
#define C_LOGICALOR 335
#define AND 336
#define OR 337
#define XOR 338
#define FIN 339
#define WHIRL 340
#define WHIRL2 341
#define WHIRL3 342
#define WHIRL4 343
#define WHIRL5 344
#define REV_AND 345
#define REV_OR 346
#define REV_XOR 347
#define REV_FIN 348
#define REV_WHIRL 349
#define REV_WHIRL2 350
#define REV_WHIRL3 351
#define REV_WHIRL4 352
#define REV_WHIRL5 353
#define UNKNOWNID 354
#define US_ID 355
#define US_SCALAR 356
#define US_ARRVAR 357
#define US_ELEM 358
#define US_EXPR 359
#define CLOSESPARK 360
#define CLOSEEARS 361
#define OPENSPARK 362
#define OPENEARS 363
#define HIGHPREC 364
#define UNARYPREC 365
#define LOWPREC 366




/* Copy the first part of user declarations.  */
#line 30 "src/parser.y"

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include "sizes.h"
#include "ick.h"
#include "feh.h"
#include "ick_lose.h"

extern int yyerror(char*);

/* Intervene our ick_first-stage lexer. */
extern int lexer(void);
#define yylex() lexer()

static node *rlist;     /* pointer to current right-hand node list */
/*static node *llist;*/ /* pointer to current left-hand node list */
static node *np;  /* variable for building node lists */

extern int stbeginline; /* line number of last seen preamble */
static int thisline;    /* line number of beginning of current statement */

extern int mark112;    /* AIS: Mark the tuple for W112 when it's created. */
static int lineuid=65537; /* AIS: a line number not used anywhere else */
static int cacsofar=0; /* AIS: Number of args in a CREATE statement */

static tuple *splat(int);

static tuple *prevtuple = NULL;

#define GETLINENO                         \
    {if (stbeginline < 0) thisline = -stbeginline;    \
     else {thisline = stbeginline; stbeginline = 0;}}

#define ACTION(x, nt, nn)     \
    {x = newtuple(); x->type = nt; x->ick_lineno = thisline; x->u.node = nn;}
#define TARGET(x, nt, nn)     \
    {x = newtuple(); x->type = nt; x->ick_lineno = thisline; x->u.target = nn;}
#define ACTARGET(x, nt, nn, nn2)\
    {x = newtuple(); x->type = nt; x->ick_lineno = thisline;\
      x->u.node = nn; x->u.target = nn2;}
/* AIS : The macro above was added for ABSTAIN expr FROM. */
#define NEWFANGLED mark112 = 1; /* AIS: Added the mention of mark112 */ \
      if (ick_traditional) ick_lose(IE111,iyylineno,(char*)NULL); else

#define DESTACKSE1 sparkearsstack[sparkearslev--/32] >>= 1
#define DESTACKSPARKEARS DESTACKSE1; DESTACKSE1



/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif

#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 83 "src/parser.y"
{
    int           numval;           /* a numeric value */
    tuple   *tuple;           /* a code tuple */
    node    *node;            /* an expression-tree node */
}
/* Line 187 of yacc.c.  */
#line 374 "y.tab.c"
      YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif



/* Copy the second part of user declarations.  */


/* Line 216 of yacc.c.  */
#line 387 "y.tab.c"

#ifdef short
# undef short
#endif

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif

#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif

#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif

#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned int
# endif
#endif

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif

/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int i)
#else
static int
YYID (i)
    int i;
#endif
{
  return i;
}
#endif

#if ! defined yyoverflow || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef _STDLIB_H
#      define _STDLIB_H 1
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined _STDLIB_H \
       && ! ((defined YYMALLOC || defined malloc) \
           && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef _STDLIB_H
#    define _STDLIB_H 1
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


#if (! defined yyoverflow \
     && (! defined __cplusplus \
       || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yytype_int16 yyss;
  YYSTYPE yyvs;
  };

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)        \
      do                            \
      {                             \
        YYSIZE_T yyi;                     \
        for (yyi = 0; yyi < (Count); yyi++)     \
          (To)[yyi] = (From)[yyi];        \
      }                             \
      while (YYID (0))
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack)                            \
    do                                                      \
      {                                                     \
      YYSIZE_T yynewbytes;                                  \
      YYCOPY (&yyptr->Stack, Stack, yysize);                      \
      Stack = &yyptr->Stack;                                \
      yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
      yyptr += yynewbytes / sizeof (*yyptr);                      \
      }                                                     \
    while (YYID (0))

#endif

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  2
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   600

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  112
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  41
/* YYNRULES -- Number of rules.  */
#define YYNRULES  136
/* YYNRULES -- Number of states.  */
#define YYNSTATES  215

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   366

#define YYTRANSLATE(YYX)                                    \
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     4,     7,    10,    14,    18,    23,    25,
      27,    30,    33,    35,    39,    41,    44,    46,    49,    53,
      57,    61,    64,    67,    70,    73,    76,    79,    82,    86,
      90,    95,   100,   103,   106,   109,   112,   115,   117,   119,
     121,   123,   125,   128,   131,   133,   136,   139,   142,   144,
     146,   148,   150,   153,   155,   157,   160,   162,   164,   166,
     168,   170,   172,   176,   178,   180,   182,   184,   187,   190,
     193,   196,   199,   203,   207,   210,   212,   216,   218,   220,
     222,   226,   228,   230,   232,   234,   236,   240,   242,   246,
     248,   250,   254,   258,   261,   264,   266,   268,   270,   272,
     276,   280,   282,   286,   290,   294,   296,   298,   300,   302,
     306,   310,   314,   316,   320,   324,   328,   330,   332,   334,
     336,   338,   340,   344,   349,   354,   358,   362,   364,   366,
     368,   371,   373,   376,   378,   380,   382
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
     113,     0,    -1,    -1,   113,   114,    -1,   117,   115,    -1,
     117,    56,   115,    -1,    58,   117,   115,    -1,    58,   117,
      56,   115,    -1,     1,    -1,   116,    -1,   116,    39,    -1,
     116,    40,    -1,   118,    -1,   118,    31,   118,    -1,    36,
      -1,    36,    38,    -1,    35,    -1,    35,    38,    -1,   125,
       4,   143,    -1,   128,     4,   136,    -1,   144,     4,   143,
      -1,    58,     6,    -1,     9,   143,    -1,    10,   143,    -1,
      11,   131,    -1,    12,   131,    -1,    13,   131,    -1,    14,
     131,    -1,    15,    34,    58,    -1,    15,    34,   123,    -1,
      15,   143,    34,    58,    -1,    15,   143,    34,   123,    -1,
      16,    58,    -1,    16,   123,    -1,    22,   133,    -1,    21,
     135,    -1,    23,   126,    -1,    20,    -1,     7,    -1,     8,
      -1,    32,    -1,    24,    -1,    28,   123,    -1,    28,   143,
      -1,    25,    -1,    26,   123,    -1,    26,   143,    -1,    33,
     119,    -1,   119,    -1,    51,    -1,     1,    -1,   121,    -1,
     120,   121,    -1,   120,    -1,   122,    -1,   119,   122,    -1,
     137,    -1,   127,    -1,   144,    -1,   128,    -1,    99,    -1,
      57,    -1,   123,    59,    57,    -1,   127,    -1,   128,    -1,
     127,    -1,   137,    -1,    44,    54,    -1,    43,    54,    -1,
      44,    54,    -1,    45,    54,    -1,    46,    54,    -1,    45,
      55,    54,    -1,    46,    55,    54,    -1,    41,    54,    -1,
     124,    -1,   131,    59,   124,    -1,   127,    -1,   137,    -1,
     128,    -1,   132,    59,   133,    -1,   132,    -1,   127,    -1,
     137,    -1,   130,    -1,   128,    -1,   134,    59,   135,    -1,
     134,    -1,   143,    50,   136,    -1,   143,    -1,   138,    -1,
     128,    49,   139,    -1,   128,    49,   140,    -1,   150,   139,
      -1,   150,   140,    -1,   138,    -1,   142,    -1,   150,    -1,
     142,    -1,   129,    49,   139,    -1,   129,    49,   140,    -1,
     150,    -1,   150,    48,   143,    -1,   150,    47,   143,    -1,
     127,    52,   143,    -1,   137,    -1,   141,    -1,   149,    -1,
     141,    -1,   150,    48,   143,    -1,   150,    47,   143,    -1,
     127,    52,   143,    -1,   148,    -1,   148,    48,   143,    -1,
     148,    47,   143,    -1,   127,    52,   143,    -1,   137,    -1,
     141,    -1,    41,    -1,    43,    -1,    44,    -1,   130,    -1,
     146,    55,    54,    -1,   151,    55,   143,   105,    -1,   152,
      55,   143,   106,    -1,   151,   145,   105,    -1,   152,   145,
     106,    -1,   147,    -1,   127,    -1,   147,    -1,    55,   150,
      -1,   148,    -1,    55,   150,    -1,   107,    -1,   105,    -1,
     108,    -1,   106,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   168,   168,   169,   181,   183,   185,   187,   189,   204,
     206,   209,   226,   227,   266,   267,   268,   269,   273,   274,
     275,   279,   280,   281,   282,   283,   284,   285,   286,   287,
     288,   289,   291,   292,   293,   294,   295,   296,   297,   298,
     299,   300,   301,   304,   307,   309,   312,   315,   317,   319,
     320,   325,   326,   328,   331,   332,   337,   344,   351,   358,
     361,   365,   367,   376,   376,   378,   378,   380,   386,   392,
     400,   406,   416,   424,   435,   450,   451,   457,   457,   457,
     458,   459,   464,   464,   464,   464,   465,   466,   472,   473,
     477,   478,   480,   482,   483,   485,   486,   487,   491,   492,
     495,   500,   503,   504,   506,   511,   512,   516,   517,   518,
     519,   520,   528,   529,   530,   531,   536,   537,   541,   541,
     541,   546,   548,   570,   577,   586,   587,   590,   591,   594,
     595,   605,   606,   610,   611,   614,   615
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "UNKNOWN", "GETS", "RESIZE", "NEXT",
  "GO_AHEAD", "GO_BACK", "FORGET", "RESUME", "STASH", "RETRIEVE", "IGNORE",
  "REMEMBER", "ABSTAIN", "REINSTATE", "DISABLE", "ENABLE", "MANYFROM",
  "GIVE_UP", "READ_OUT", "WRITE_IN", "PIN", "COME_FROM", "NEXTFROMLABEL",
  "NEXTFROMEXPR", "NEXTFROMGERUND", "COMPUCOME", "GERUCOME", "PREPROC",
  "WHILE", "TRY_AGAIN", "CREATE", "FROM", "MAYBE", "DO", "PLEASE", "NOT",
  "ONCE", "AGAIN", "MESH", "NOSPOT", "ick_ONESPOT", "ick_TWOSPOT",
  "ick_TAIL", "ick_HYBRID", "MINGLE", "SELECT", "SUB", "BY", "BADCHAR",
  "SLAT", "BACKSLAT", "NUMBER", "UNARY", "OHOHSEVEN", "GERUND", "LABEL",
  "INTERSECTION", "SPLATTERED", "MESH32", "C_AND", "C_OR", "C_XOR",
  "C_NOT", "C_LOGICALNOT", "C_LSHIFTBY", "C_RSHIFTBY", "C_NOTEQUAL", "C_A",
  "C_PLUS", "C_MINUS", "C_TIMES", "C_DIVIDEBY", "C_MODULUS", "C_GREATER",
  "C_LESS", "C_ISEQUAL", "C_LOGICALAND", "C_LOGICALOR", "AND", "OR", "XOR",
  "FIN", "WHIRL", "WHIRL2", "WHIRL3", "WHIRL4", "WHIRL5", "REV_AND",
  "REV_OR", "REV_XOR", "REV_FIN", "REV_WHIRL", "REV_WHIRL2", "REV_WHIRL3",
  "REV_WHIRL4", "REV_WHIRL5", "UNKNOWNID", "US_ID", "US_SCALAR",
  "US_ARRVAR", "US_ELEM", "US_EXPR", "CLOSESPARK", "CLOSEEARS",
  "OPENSPARK", "OPENEARS", "HIGHPREC", "UNARYPREC", "LOWPREC", "$accept",
  "program", "command", "mtperform", "preproc", "please", "perform",
  "unknownstatement", "unknownsin", "unknownatom", "unknownaid", "gerunds",
  "variable", "lvalue", "scalar2s", "scalar", "ick_array", "oparray",
  "constant", "varlist", "initem", "inlist", "outitem", "outlist",
  "byexpr", "subscr", "subscr1", "sublist", "sublist1", "osubscr",
  "osubscr1", "expr", "notanlvalue", "limexpr", "preftype", "lunambig",
  "limunambig", "nlunambig", "unambig", "eitherspark", "eitherears", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,
     345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
     355,   356,   357,   358,   359,   360,   361,   362,   363,   364,
     365,   366
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint8 yyr1[] =
{
       0,   112,   113,   113,   114,   114,   114,   114,   114,   115,
     115,   115,   116,   116,   117,   117,   117,   117,   118,   118,
     118,   118,   118,   118,   118,   118,   118,   118,   118,   118,
     118,   118,   118,   118,   118,   118,   118,   118,   118,   118,
     118,   118,   118,   118,   118,   118,   118,   118,   118,   118,
     118,   119,   119,   119,   120,   120,   121,   121,   121,   121,
     122,   123,   123,   124,   124,   125,   125,   126,   127,   127,
     128,   128,   129,   129,   130,   131,   131,   132,   132,   132,
     133,   133,   134,   134,   134,   134,   135,   135,   136,   136,
     137,   137,   138,   139,   139,   140,   140,   140,   141,   141,
     142,   143,   143,   143,   143,   143,   143,   144,   144,   144,
     144,   144,   145,   145,   145,   145,   145,   145,   146,   146,
     146,   147,   147,   147,   147,   147,   147,   148,   148,   149,
     149,   150,   150,   151,   151,   152,   152
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     0,     2,     2,     3,     3,     4,     1,     1,
       2,     2,     1,     3,     1,     2,     1,     2,     3,     3,
       3,     2,     2,     2,     2,     2,     2,     2,     3,     3,
       4,     4,     2,     2,     2,     2,     2,     1,     1,     1,
       1,     1,     2,     2,     1,     2,     2,     2,     1,     1,
       1,     1,     2,     1,     1,     2,     1,     1,     1,     1,
       1,     1,     3,     1,     1,     1,     1,     2,     2,     2,
       2,     2,     3,     3,     2,     1,     3,     1,     1,     1,
       3,     1,     1,     1,     1,     1,     3,     1,     3,     1,
       1,     3,     3,     2,     2,     1,     1,     1,     1,     3,
       3,     1,     3,     3,     3,     1,     1,     1,     1,     3,
       3,     3,     1,     3,     3,     3,     1,     1,     1,     1,
       1,     1,     3,     4,     4,     3,     3,     1,     1,     1,
       2,     1,     2,     1,     1,     1,     1
};

/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
static const yytype_uint8 yydefact[] =
{
       2,     0,     1,     8,    16,    14,     0,     3,     0,    17,
      15,     0,    50,    38,    39,     0,     0,     0,     0,     0,
       0,     0,     0,    37,     0,     0,     0,    41,    44,     0,
       0,    40,     0,   118,   119,   120,     0,     0,    49,     0,
       0,     0,    60,   134,   136,   133,   135,     4,     9,    12,
      48,    53,    51,    54,     0,    57,    59,     0,   121,    56,
      90,   108,    98,    58,     0,   129,   131,   107,     0,     0,
       0,     0,     6,     0,   128,     0,   105,   106,    22,   127,
     101,    23,     0,     0,     0,     0,    75,    63,    64,    24,
      25,    26,    27,     0,     0,    61,    32,    33,     0,    82,
      85,    84,    87,    35,    83,    77,    79,    81,    34,    78,
       0,    36,    45,    46,    42,    43,    47,    57,    59,    56,
      58,    74,    68,    69,    70,     0,    71,     0,   128,   130,
       5,    21,    10,    11,     0,    55,    52,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   128,   116,   117,
       0,   112,     0,     0,     7,   132,     0,     0,     0,     0,
      28,    29,     0,     0,     0,     0,    67,    72,    73,    13,
      18,   111,    19,    89,     0,     0,    95,    91,    92,    96,
      97,    99,   100,    20,   122,   110,   109,     0,     0,   125,
       0,     0,     0,   126,   104,   103,   102,    76,    30,    31,
      62,    86,    80,     0,     0,     0,    93,    94,   123,   115,
     114,   113,   124,    88,    97
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     1,     7,    47,    48,     8,    49,    50,    51,    52,
      53,    97,    86,    54,   111,    74,    75,    57,    58,    89,
     107,   108,   102,   103,   172,    76,    60,   177,   178,    77,
      62,   173,    63,   150,    64,    79,    66,    67,    80,    69,
      70
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -140
static const yytype_int16 yypact[] =
{
    -140,   233,  -140,  -140,   -20,   -18,     4,  -140,   251,  -140,
    -140,   319,  -140,  -140,  -140,   424,   424,    48,    48,    48,
      48,   130,    22,  -140,   204,    48,   -21,  -140,  -140,   403,
     403,  -140,   418,   -29,   -27,   -24,    20,    67,  -140,   -22,
     387,    28,  -140,  -140,  -140,  -140,  -140,  -140,    85,    11,
     -49,   444,  -140,  -140,    49,    60,     0,    51,  -140,    54,
    -140,  -140,  -140,   110,    14,    80,  -140,  -140,    95,   457,
     492,   387,  -140,   -22,    19,    57,  -140,  -140,  -140,  -140,
     106,  -140,   -27,   -24,    63,    86,  -140,  -140,  -140,    89,
      89,    89,    89,   102,   111,  -140,  -140,    96,   -29,  -140,
      57,  -140,   103,  -140,  -140,  -140,    57,   125,  -140,  -140,
     116,  -140,    96,  -140,    96,  -140,   -49,     8,    57,  -140,
    -140,  -140,  -140,  -140,  -140,   136,  -140,   141,  -140,   140,
    -140,  -140,  -140,  -140,   387,  -140,  -140,   424,   424,   424,
     424,   424,   424,   144,   424,   424,   424,   148,  -140,  -140,
     104,   158,   424,    13,  -140,  -140,   424,   424,   424,    48,
    -140,    96,   159,   168,   204,    48,  -140,  -140,  -140,  -140,
    -140,  -140,  -140,   165,   177,   178,  -140,  -140,  -140,  -140,
      58,  -140,  -140,  -140,  -140,  -140,  -140,   123,   424,  -140,
     424,   424,   133,  -140,  -140,  -140,  -140,  -140,  -140,    96,
    -140,  -140,  -140,   424,   424,   424,  -140,  -140,  -140,  -140,
    -140,  -140,  -140,  -140,  -140
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -140,  -140,  -140,    17,  -140,   234,   108,   219,  -140,   202,
     -44,   -16,   119,  -140,  -140,    -8,    27,   -11,   -23,    91,
    -140,    90,  -140,   117,    77,    65,     9,  -126,  -139,   112,
      39,    66,   -25,   200,  -140,   107,   151,  -140,    -3,  -140,
    -140
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -133
static const yytype_int16 yytable[] =
{
      55,   101,   182,    55,   139,    68,   135,   120,    68,    87,
      87,    87,    87,   112,   114,   181,    99,   105,     9,    33,
      10,    34,    35,   110,   117,   121,   120,   122,    72,    68,
     123,   128,    55,    73,   131,    56,   129,    68,    56,     4,
       5,   207,   134,   117,    88,    88,    88,    88,    68,   140,
      42,   100,   106,   137,   206,  -128,  -128,   130,   -66,   118,
     138,   147,   147,    55,   -65,   128,   182,    56,    68,   143,
     155,   156,   135,    59,   124,   125,    59,   161,   118,    95,
      96,    78,    81,    43,    44,    45,    46,    94,   154,   104,
     109,    82,    83,    84,    85,   113,   115,   119,    56,    33,
     141,    34,    35,    36,    37,    59,   140,  -128,  -128,    90,
      91,    92,   138,    73,   142,    65,   119,   124,    65,   193,
      61,   126,   127,    61,   132,   133,    55,  -127,  -127,   175,
     175,    68,   128,   128,   148,   148,    59,   180,   180,    65,
     126,   101,   144,   145,    61,   162,   199,    65,   159,   176,
     176,    87,    61,   157,   158,   163,    99,   105,    65,    95,
     160,    56,   164,    61,    93,    45,    46,   174,   174,   175,
     166,    33,   128,    34,    35,    36,    37,   180,    65,   179,
     179,   149,   149,    61,   165,    73,    88,  -132,  -132,   176,
     167,   100,   106,   175,   175,   168,   128,   128,   184,    59,
     188,   214,   214,   170,   171,   190,   191,   174,   183,   189,
     185,   186,   187,   176,   176,   203,    95,   198,   192,   179,
     151,   151,   194,   195,   196,   200,   204,   205,   208,   104,
     109,   174,   174,     2,     3,    43,    44,    45,    46,   212,
      11,    65,   169,   179,   179,    98,    61,    82,    83,    84,
      85,   116,    12,   136,   209,   202,   210,   211,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,     4,     5,
     153,    23,    24,    25,    26,    27,    28,    29,   197,    30,
     213,   201,     0,    31,    32,     0,     0,     0,     0,     0,
       0,     6,    33,     0,    34,    35,    36,    37,     0,     0,
       0,     0,    38,     0,     0,     0,    39,    40,     0,    41,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      12,     0,     0,     0,     0,     0,    13,    14,    15,    16,
      17,    18,    19,    20,    21,    22,     0,     0,     0,    23,
      24,    25,    26,    27,    28,    29,     0,    30,     0,     0,
      42,    31,    32,     0,     0,     0,    43,    44,    45,    46,
      33,     0,    34,    35,    36,    37,     0,     0,     0,     0,
      38,     0,     0,     0,    39,    71,     0,    41,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    12,     0,
       0,     0,     0,     0,    13,    14,    15,    16,    17,    18,
      19,    20,    21,    22,     0,     0,     0,    23,    24,    25,
      26,    27,    28,    29,     0,    30,     0,     0,    42,    31,
      32,     0,     0,     0,    43,    44,    45,    46,    33,     0,
      34,    35,    36,    37,     0,     0,     0,     0,    38,     0,
       0,     0,    39,     0,    33,    41,    34,    35,    36,    37,
       0,     0,     0,     0,     0,     0,     0,     0,    73,    33,
      95,    34,    35,    36,    37,    33,     0,    34,    35,    36,
      37,     0,     0,    39,     0,     0,     0,     0,     0,    73,
       0,     0,     0,     0,     0,    33,    42,    34,    35,    36,
      37,     0,    43,    44,    45,    46,     0,     0,    33,    39,
      34,    35,    36,    37,     0,     0,     0,     0,    43,    44,
      45,    46,   146,     0,     0,     0,     0,    42,     0,     0,
       0,     0,     0,    43,    44,    45,    46,     0,     0,    43,
      44,    45,    46,    33,     0,    34,    35,    36,    37,     0,
       0,     0,     0,     0,     0,     0,     0,   152,     0,    43,
      44,    45,    46,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    43,    44,    45,    46,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    43,    44,    45,
      46
};

static const yytype_int16 yycheck[] =
{
       8,    24,   141,    11,     4,     8,    50,    32,    11,    17,
      18,    19,    20,    29,    30,   141,    24,    25,    38,    41,
      38,    43,    44,    44,    32,    54,    51,    54,    11,    32,
      54,    39,    40,    55,     6,     8,    39,    40,    11,    35,
      36,   180,    31,    51,    17,    18,    19,    20,    51,    49,
      99,    24,    25,     4,   180,    47,    48,    40,     4,    32,
      52,    69,    70,    71,     4,    73,   205,    40,    71,    55,
      73,    52,   116,     8,    54,    55,    11,    93,    51,    57,
      58,    15,    16,   105,   106,   107,   108,    21,    71,    24,
      25,    43,    44,    45,    46,    29,    30,    32,    71,    41,
      49,    43,    44,    45,    46,    40,    49,    47,    48,    18,
      19,    20,    52,    55,     4,     8,    51,    54,    11,   106,
       8,    54,    55,    11,    39,    40,   134,    47,    48,   140,
     141,   134,   140,   141,    69,    70,    71,   140,   141,    32,
      54,   164,    47,    48,    32,    34,   162,    40,    59,   140,
     141,   159,    40,    47,    48,    59,   164,   165,    51,    57,
      58,   134,    59,    51,    34,   107,   108,   140,   141,   180,
      54,    41,   180,    43,    44,    45,    46,   180,    71,   140,
     141,    69,    70,    71,    59,    55,   159,    47,    48,   180,
      54,   164,   165,   204,   205,    54,   204,   205,    54,   134,
      52,   204,   205,   137,   138,    47,    48,   180,   142,   105,
     144,   145,   146,   204,   205,    50,    57,    58,   152,   180,
      69,    70,   156,   157,   158,    57,    49,    49,   105,   164,
     165,   204,   205,     0,     1,   105,   106,   107,   108,   106,
       6,   134,   134,   204,   205,    41,   134,    43,    44,    45,
      46,    32,     1,    51,   188,   165,   190,   191,     7,     8,
       9,    10,    11,    12,    13,    14,    15,    16,    35,    36,
      70,    20,    21,    22,    23,    24,    25,    26,   159,    28,
     203,   164,    -1,    32,    33,    -1,    -1,    -1,    -1,    -1,
      -1,    58,    41,    -1,    43,    44,    45,    46,    -1,    -1,
      -1,    -1,    51,    -1,    -1,    -1,    55,    56,    -1,    58,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
       1,    -1,    -1,    -1,    -1,    -1,     7,     8,     9,    10,
      11,    12,    13,    14,    15,    16,    -1,    -1,    -1,    20,
      21,    22,    23,    24,    25,    26,    -1,    28,    -1,    -1,
      99,    32,    33,    -1,    -1,    -1,   105,   106,   107,   108,
      41,    -1,    43,    44,    45,    46,    -1,    -1,    -1,    -1,
      51,    -1,    -1,    -1,    55,    56,    -1,    58,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     1,    -1,
      -1,    -1,    -1,    -1,     7,     8,     9,    10,    11,    12,
      13,    14,    15,    16,    -1,    -1,    -1,    20,    21,    22,
      23,    24,    25,    26,    -1,    28,    -1,    -1,    99,    32,
      33,    -1,    -1,    -1,   105,   106,   107,   108,    41,    -1,
      43,    44,    45,    46,    -1,    -1,    -1,    -1,    51,    -1,
      -1,    -1,    55,    -1,    41,    58,    43,    44,    45,    46,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    55,    41,
      57,    43,    44,    45,    46,    41,    -1,    43,    44,    45,
      46,    -1,    -1,    55,    -1,    -1,    -1,    -1,    -1,    55,
      -1,    -1,    -1,    -1,    -1,    41,    99,    43,    44,    45,
      46,    -1,   105,   106,   107,   108,    -1,    -1,    41,    55,
      43,    44,    45,    46,    -1,    -1,    -1,    -1,   105,   106,
     107,   108,    55,    -1,    -1,    -1,    -1,    99,    -1,    -1,
      -1,    -1,    -1,   105,   106,   107,   108,    -1,    -1,   105,
     106,   107,   108,    41,    -1,    43,    44,    45,    46,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    55,    -1,   105,
     106,   107,   108,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   105,   106,   107,   108,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   105,   106,   107,
     108
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const yytype_uint8 yystos[] =
{
       0,   113,     0,     1,    35,    36,    58,   114,   117,    38,
      38,   117,     1,     7,     8,     9,    10,    11,    12,    13,
      14,    15,    16,    20,    21,    22,    23,    24,    25,    26,
      28,    32,    33,    41,    43,    44,    45,    46,    51,    55,
      56,    58,    99,   105,   106,   107,   108,   115,   116,   118,
     119,   120,   121,   122,   125,   127,   128,   129,   130,   137,
     138,   141,   142,   144,   146,   147,   148,   149,   150,   151,
     152,    56,   115,    55,   127,   128,   137,   141,   143,   147,
     150,   143,    43,    44,    45,    46,   124,   127,   128,   131,
     131,   131,   131,    34,   143,    57,    58,   123,    41,   127,
     128,   130,   134,   135,   137,   127,   128,   132,   133,   137,
      44,   126,   123,   143,   123,   143,   119,   127,   128,   137,
     144,    54,    54,    54,    54,    55,    54,    55,   127,   150,
     115,     6,    39,    40,    31,   122,   121,     4,    52,     4,
      49,    49,     4,    55,    47,    48,    55,   127,   137,   141,
     145,   148,    55,   145,   115,   150,    52,    47,    48,    59,
      58,   123,    34,    59,    59,    59,    54,    54,    54,   118,
     143,   143,   136,   143,   128,   129,   138,   139,   140,   142,
     150,   139,   140,   143,    54,   143,   143,   143,    52,   105,
      47,    48,   143,   106,   143,   143,   143,   124,    58,   123,
      57,   135,   133,    50,    49,    49,   139,   140,   105,   143,
     143,   143,   106,   136,   150
};

#define yyerrok         (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY         (-2)
#define YYEOF           0

#define YYACCEPT  goto yyacceptlab
#define YYABORT         goto yyabortlab
#define YYERROR         goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */

#define YYFAIL          goto yyerrlab

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)                              \
do                                              \
  if (yychar == YYEMPTY && yylen == 1)                      \
    {                                           \
      yychar = (Token);                               \
      yylval = (Value);                               \
      yytoken = YYTRANSLATE (yychar);                       \
      YYPOPSTACK (1);                                 \
      goto yybackup;                                  \
    }                                           \
  else                                                \
    {                                           \
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                        \
    }                                           \
while (YYID (0))


#define YYTERROR  1
#define YYERRCODE 256


/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */

#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)                    \
    do                                                      \
      if (YYID (N))                                                    \
      {                                               \
        (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;    \
        (Current).first_column = YYRHSLOC (Rhs, 1).first_column;  \
        (Current).last_line    = YYRHSLOC (Rhs, N).last_line;           \
        (Current).last_column  = YYRHSLOC (Rhs, N).last_column;   \
      }                                               \
      else                                            \
      {                                               \
        (Current).first_line   = (Current).last_line   =          \
          YYRHSLOC (Rhs, 0).last_line;                      \
        (Current).first_column = (Current).last_column =          \
          YYRHSLOC (Rhs, 0).last_column;                    \
      }                                               \
    while (YYID (0))
#endif


/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

#ifndef YY_LOCATION_PRINT
# if YYLTYPE_IS_TRIVIAL
#  define YY_LOCATION_PRINT(File, Loc)                \
     fprintf (File, "%d.%d-%d.%d",              \
            (Loc).first_line, (Loc).first_column,     \
            (Loc).last_line,  (Loc).last_column)
# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif


/* YYLEX -- calling `yylex' with the right arguments.  */

#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#endif

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)                  \
do {                                \
  if (yydebug)                            \
    YYFPRINTF Args;                       \
} while (YYID (0))

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
do {                                                    \
  if (yydebug)                                                \
    {                                                   \
      YYFPRINTF (stderr, "%s ", Title);                             \
      yy_symbol_print (stderr,                                      \
              Type, Value); \
      YYFPRINTF (stderr, "\n");                                     \
    }                                                   \
} while (YYID (0))


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (!yyvaluep)
    return;
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
      break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  yy_symbol_value_print (yyoutput, yytype, yyvaluep);
  YYFPRINTF (yyoutput, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
#else
static void
yy_stack_print (bottom, top)
    yytype_int16 *bottom;
    yytype_int16 *top;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (; bottom <= top; ++bottom)
    YYFPRINTF (stderr, " %d", *bottom);
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)                        \
do {                                            \
  if (yydebug)                                        \
    yy_stack_print ((Bottom), (Top));                       \
} while (YYID (0))


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
static void
yy_reduce_print (yyvsp, yyrule)
    YYSTYPE *yyvsp;
    int yyrule;
#endif
{
  int yynrhs = yyr2[yyrule];
  int yyi;
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
           yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      fprintf (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
                   &(yyvsp[(yyi + 1) - (yynrhs)])
                                     );
      fprintf (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)            \
do {                          \
  if (yydebug)                      \
    yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef     YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
    const char *yystr;
#endif
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
    char *yydest;
    const char *yysrc;
#endif
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
      switch (*++yyp)
        {
        case '\'':
        case ',':
          goto do_not_strip_quotes;

        case '\\':
          if (*++yyp != '\\')
            goto do_not_strip_quotes;
          /* Fall through.  */
        default:
          if (yyres)
            yyres[yyn] = *yyp;
          yyn++;
          break;

        case '"':
          if (yyres)
            yyres[yyn] = '\0';
          return yyn;
        }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return yystrlen (yystr);

  return yystpcpy (yyres, yystr) - yyres;
}
# endif

/* Copy into YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
  int yyn = yypact[yystate];

  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    return 0;
  else
    {
      int yytype = YYTRANSLATE (yychar);
      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
      YYSIZE_T yysize = yysize0;
      YYSIZE_T yysize1;
      int yysize_overflow = 0;
      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
      int yyx;

# if 0
      /* This is so xgettext sees the translatable formats that are
       constructed on the fly.  */
      YY_("syntax error, unexpected %s");
      YY_("syntax error, unexpected %s, expecting %s");
      YY_("syntax error, unexpected %s, expecting %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
      char *yyfmt;
      char const *yyf;
      static char const yyunexpected[] = "syntax error, unexpected %s";
      static char const yyexpecting[] = ", expecting %s";
      static char const yyor[] = " or %s";
      char yyformat[sizeof yyunexpected
                + sizeof yyexpecting - 1
                + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
                   * (sizeof yyor - 1))];
      char const *yyprefix = yyexpecting;

      /* Start YYX at -YYN if negative to avoid negative indexes in
       YYCHECK.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;

      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yycount = 1;

      yyarg[0] = yytname[yytype];
      yyfmt = yystpcpy (yyformat, yyunexpected);

      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
      if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
        {
          if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
            {
            yycount = 1;
            yysize = yysize0;
            yyformat[sizeof yyunexpected - 1] = '\0';
            break;
            }
          yyarg[yycount++] = yytname[yyx];
          yysize1 = yysize + yytnamerr (0, yytname[yyx]);
          yysize_overflow |= (yysize1 < yysize);
          yysize = yysize1;
          yyfmt = yystpcpy (yyfmt, yyprefix);
          yyprefix = yyor;
        }

      yyf = YY_(yyformat);
      yysize1 = yysize + yystrlen (yyf);
      yysize_overflow |= (yysize1 < yysize);
      yysize = yysize1;

      if (yysize_overflow)
      return YYSIZE_MAXIMUM;

      if (yyresult)
      {
        /* Avoid sprintf, as that infringes on the user's name space.
           Don't have undefined behavior even if the translation
           produced a string with the wrong number of "%s"s.  */
        char *yyp = yyresult;
        int yyi = 0;
        while ((*yyp = *yyf) != '\0')
          {
            if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
            {
              yyp += yytnamerr (yyp, yyarg[yyi++]);
              yyf += 2;
            }
            else
            {
              yyp++;
              yyf++;
            }
          }
      }
      return yysize;
    }
}
#endif /* YYERROR_VERBOSE */


/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  YYUSE (yyvaluep);

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {

      default:
      break;
    }
}


/* Prevent warnings from -Wmissing-prototypes.  */

#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */



/* The look-ahead symbol.  */
int yychar;

/* The semantic value of the look-ahead symbol.  */
YYSTYPE yylval;

/* Number of syntax errors so far.  */
int yynerrs;



/*----------.
| yyparse.  |
`----------*/

#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
#else
int
yyparse ()

#endif
#endif
{
  
  int yystate;
  int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Look-ahead token as an internal (translated) token number.  */
  int yytoken = 0;
#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

  /* Three stacks and their tools:
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyls': related to locations.

     Refer to the stacks thru separate pointers, to allow yyoverflow
     to reallocate them elsewhere.  */

  /* The state stack.  */
  yytype_int16 yyssa[YYINITDEPTH];
  yytype_int16 *yyss = yyssa;
  yytype_int16 *yyssp;

  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs = yyvsa;
  YYSTYPE *yyvsp;



#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  YYSIZE_T yystacksize = YYINITDEPTH;

  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;


  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY;           /* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

  yyssp = yyss;
  yyvsp = yyvs;

  goto yysetstate;

/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;

#ifdef yyoverflow
      {
      /* Give user a chance to reallocate the stack.  Use copies of
         these so that the &'s don't force the real ones into
         memory.  */
      YYSTYPE *yyvs1 = yyvs;
      yytype_int16 *yyss1 = yyss;


      /* Each stack pointer address is followed by the size of the
         data in use in that stack, in bytes.  This used to be a
         conditional around just the two extra args, but that might
         be undefined if yyoverflow is a macro.  */
      yyoverflow (YY_("memory exhausted"),
                &yyss1, yysize * sizeof (*yyssp),
                &yyvs1, yysize * sizeof (*yyvsp),

                &yystacksize);

      yyss = yyss1;
      yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
      goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
      yystacksize = YYMAXDEPTH;

      {
      yytype_int16 *yyss1 = yyss;
      union yyalloc *yyptr =
        (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
      if (! yyptr)
        goto yyexhaustedlab;
      YYSTACK_RELOCATE (yyss);
      YYSTACK_RELOCATE (yyvs);

#  undef YYSTACK_RELOCATE
      if (yyss1 != yyssa)
        YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;


      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
              (unsigned long int) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
      YYABORT;
    }

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  goto yybackup;

/*-----------.
| yybackup.  |
`-----------*/
yybackup:

  /* Do appropriate processing given the current state.  Read a
     look-ahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to look-ahead token.  */
  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
    goto yydefault;

  /* Not known => get a look-ahead token if don't already have one.  */

  /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yyn == 0 || yyn == YYTABLE_NINF)
      goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the look-ahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);

  /* Discard the shifted token unless it is eof.  */
  if (yychar != YYEOF)
    yychar = YYEMPTY;

  yystate = yyn;
  *++yyvsp = yylval;

  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 4:
#line 182 "src/parser.y"
    {(yyvsp[(2) - (2)].tuple)->label = 0; (yyvsp[(2) - (2)].tuple)->exechance = (yyvsp[(1) - (2)].numval) * 100;}
    break;

  case 5:
#line 184 "src/parser.y"
    {(yyvsp[(3) - (3)].tuple)->label = 0; (yyvsp[(3) - (3)].tuple)->exechance = (yyvsp[(1) - (3)].numval) * (yyvsp[(2) - (3)].numval);}
    break;

  case 6:
#line 186 "src/parser.y"
    {checklabel((yyvsp[(1) - (3)].numval)); (yyvsp[(3) - (3)].tuple)->label = (yyvsp[(1) - (3)].numval); (yyvsp[(3) - (3)].tuple)->exechance = (yyvsp[(2) - (3)].numval) * 100;}
    break;

  case 7:
#line 188 "src/parser.y"
    {checklabel((yyvsp[(1) - (4)].numval)); (yyvsp[(4) - (4)].tuple)->label = (yyvsp[(1) - (4)].numval); (yyvsp[(4) - (4)].tuple)->exechance = (yyvsp[(2) - (4)].numval) * (yyvsp[(3) - (4)].numval);}
    break;

  case 8:
#line 190 "src/parser.y"
    {/* AIS: catch errors which occur after the end of a statement
                (highly likely when comments are being written, as the
                start of them will be parsed as an UNKNOWN) */
              yyerrok; yyclearin; cacsofar=0;
              if(prevtuple) {prevtuple->type=SPLATTERED; splat(0);}
              else splat(1); /* this is the first statement */
            }
    break;

  case 9:
#line 205 "src/parser.y"
    {(yyvsp[(1) - (1)].tuple)->onceagainflag = onceagain_NORMAL; prevtuple = (yyval.tuple) = (yyvsp[(1) - (1)].tuple);}
    break;

  case 10:
#line 207 "src/parser.y"
    {NEWFANGLED {(yyvsp[(1) - (2)].tuple)->onceagainflag = onceagain_ONCE;
                       prevtuple = (yyval.tuple) = (yyvsp[(1) - (2)].tuple);}}
    break;

  case 11:
#line 210 "src/parser.y"
    {NEWFANGLED {(yyvsp[(1) - (2)].tuple)->onceagainflag = onceagain_AGAIN;
                       prevtuple = (yyval.tuple) = (yyvsp[(1) - (2)].tuple);}}
    break;

  case 12:
#line 226 "src/parser.y"
    {(yyval.tuple) = (yyvsp[(1) - (1)].tuple);}
    break;

  case 13:
#line 228 "src/parser.y"
    {
  if(!multithread) ick_lose(IE405, iyylineno, (char*)NULL);
  NEWFANGLED{
  /*    (x)  DO a WHILE b
    is equivalent to
    #11 (l0) DO REINSTATE (l3) <weave on>
    #10 (l1) DO COME FROM (l2) AGAIN
     #9      DO b
     #8      DO COME FROM (l0)
     #7      DO NOTHING
     #6      DO NOTHING
     #5 (l2) DO NOTHING
     #4      DO GIVE UP
     #3      DO COME FROM (l0)
     #2 (x)  DO a
     #1 (l3) DON'T ABSTAIN FROM (l1) AGAIN <weave off> */
  tuple* temptuple;
  TARGET(temptuple, COME_FROM, lineuid+2);
  temptuple->label=lineuid+1; temptuple->preproc=1; /* #10 */
  TARGET(temptuple, COME_FROM, lineuid+0); temptuple->preproc=1; /* #8 */
  ACTION(temptuple, PREPROC, 0); temptuple->preproc=1; /* #7 */
  ACTION(temptuple, PREPROC, 0); temptuple->preproc=1; /* #6 */
  ACTION(temptuple, PREPROC, 0);
  temptuple->label=lineuid+2; temptuple->preproc=1; /* #5 */
  ACTION(temptuple, GIVE_UP, 0); temptuple->preproc=1; /* #4 */
  TARGET(temptuple, COME_FROM, lineuid+0); temptuple->preproc=1; /* #3 */
  TARGET(temptuple, REINSTATE, lineuid+3); temptuple->setweave=1;
  temptuple->label=lineuid+0; temptuple->preproc=1; /* #11 */
  TARGET(temptuple, ABSTAIN, lineuid+1); temptuple->label=lineuid+3; /* #1 */
  temptuple->preproc=1; temptuple->setweave=-1; temptuple->exechance=-100; 
  politesse += 3; /* Keep the politeness checker happy */
  ppinit(11); tupleswap(10,9); tupleswap(11,2); lineuid+=4; /* #2, #9 */
  tuples[ick_lineno-10].onceagainflag=onceagain_AGAIN;
  tuples[ick_lineno-1].onceagainflag=onceagain_AGAIN;
  (yyval.tuple)=&(tuples[ick_lineno-2]);
}}
    break;

  case 14:
#line 266 "src/parser.y"
    {GETLINENO; (yyval.numval) = 1;}
    break;

  case 15:
#line 267 "src/parser.y"
    {GETLINENO; (yyval.numval) = -1;}
    break;

  case 16:
#line 268 "src/parser.y"
    {NEWFANGLED {GETLINENO; (yyval.numval) = 101;}}
    break;

  case 17:
#line 269 "src/parser.y"
    {NEWFANGLED {GETLINENO; (yyval.numval) = -101;}}
    break;

  case 18:
#line 273 "src/parser.y"
    {ACTION((yyval.tuple), GETS,      cons(GETS,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node)));}
    break;

  case 19:
#line 274 "src/parser.y"
    {ACTION((yyval.tuple), RESIZE,    cons(RESIZE,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node)));}
    break;

  case 20:
#line 276 "src/parser.y"
    {/* AIS: This is for variableconstants, and an error otherwise.*/
         if(variableconstants) ACTION((yyval.tuple), GETS, cons(GETS,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node)))
           else {yyerrok; yyclearin; (yyval.tuple)=splat(1);}}
    break;

  case 21:
#line 279 "src/parser.y"
    {TARGET((yyval.tuple), NEXT,      (yyvsp[(1) - (2)].numval));}
    break;

  case 22:
#line 280 "src/parser.y"
    {ACTION((yyval.tuple), FORGET,    (yyvsp[(2) - (2)].node));}
    break;

  case 23:
#line 281 "src/parser.y"
    {ACTION((yyval.tuple), RESUME,    (yyvsp[(2) - (2)].node));}
    break;

  case 24:
#line 282 "src/parser.y"
    {ACTION((yyval.tuple), STASH,     rlist);}
    break;

  case 25:
#line 283 "src/parser.y"
    {ACTION((yyval.tuple), RETRIEVE,  rlist);}
    break;

  case 26:
#line 284 "src/parser.y"
    {ACTION((yyval.tuple), IGNORE,    rlist);}
    break;

  case 27:
#line 285 "src/parser.y"
    {ACTION((yyval.tuple), REMEMBER,  rlist);}
    break;

  case 28:
#line 286 "src/parser.y"
    {stbeginline=0; TARGET((yyval.tuple), ABSTAIN,   (yyvsp[(3) - (3)].numval));}
    break;

  case 29:
#line 287 "src/parser.y"
    {ACTION((yyval.tuple), DISABLE,   rlist);}
    break;

  case 30:
#line 288 "src/parser.y"
    {/* AIS */ NEWFANGLED {stbeginline=0; ACTARGET((yyval.tuple), FROM, (yyvsp[(2) - (4)].node), (yyvsp[(4) - (4)].numval));}}
    break;

  case 31:
#line 289 "src/parser.y"
    {/* AIS */ NEWFANGLED {(yyval.tuple) = newtuple(); (yyval.tuple)->type = MANYFROM; (yyval.tuple)->ick_lineno = thisline; \
        {node* tempnode=newnode(); (yyval.tuple)->u.node = tempnode; tempnode->lval=(yyvsp[(2) - (4)].node); tempnode->rval=rlist; tempnode->opcode=MANYFROM;}}}
    break;

  case 32:
#line 291 "src/parser.y"
    {stbeginline=0; TARGET((yyval.tuple), REINSTATE, (yyvsp[(2) - (2)].numval));}
    break;

  case 33:
#line 292 "src/parser.y"
    {ACTION((yyval.tuple), ENABLE,    rlist);}
    break;

  case 34:
#line 293 "src/parser.y"
    {ACTION((yyval.tuple), WRITE_IN,  (yyvsp[(2) - (2)].node));}
    break;

  case 35:
#line 294 "src/parser.y"
    {ACTION((yyval.tuple), READ_OUT,  (yyvsp[(2) - (2)].node));}
    break;

  case 36:
#line 295 "src/parser.y"
    {ACTION((yyval.tuple), PIN,       (yyvsp[(2) - (2)].node));}
    break;

  case 37:
#line 296 "src/parser.y"
    {ACTION((yyval.tuple), GIVE_UP,   0);}
    break;

  case 38:
#line 297 "src/parser.y"
    {/* AIS */ NEWFANGLED {ACTION((yyval.tuple), GO_AHEAD,  0);}}
    break;

  case 39:
#line 298 "src/parser.y"
    {/* AIS */ NEWFANGLED {ACTION((yyval.tuple), GO_BACK,   0);}}
    break;

  case 40:
#line 299 "src/parser.y"
    {/* AIS */ NEWFANGLED {ACTION((yyval.tuple),TRY_AGAIN,0);}}
    break;

  case 41:
#line 300 "src/parser.y"
    {/* AIS: Modified */ NEWFANGLED {TARGET((yyval.tuple),COME_FROM,(yyvsp[(1) - (1)].numval));}}
    break;

  case 42:
#line 301 "src/parser.y"
    {/* AIS: COME FROM gerund */
                         NEWFANGLED{ACTION((yyval.tuple),GERUCOME,rlist);
                         compucomesused=1; gerucomesused=1;}}
    break;

  case 43:
#line 304 "src/parser.y"
    {/* AIS */NEWFANGLED {ACTION((yyval.tuple),COMPUCOME,(yyvsp[(2) - (2)].node));
                         compucomesused=1;}}
    break;

  case 44:
#line 307 "src/parser.y"
    {NEWFANGLED {TARGET((yyval.tuple),NEXTFROMLABEL,(yyvsp[(1) - (1)].numval));}
                               nextfromsused=1;}
    break;

  case 45:
#line 309 "src/parser.y"
    {NEWFANGLED{ACTION((yyval.tuple),NEXTFROMGERUND,rlist);
                         compucomesused=1; gerucomesused=1;}
                                 nextfromsused=1;}
    break;

  case 46:
#line 312 "src/parser.y"
    {NEWFANGLED {ACTION((yyval.tuple),NEXTFROMEXPR,(yyvsp[(2) - (2)].node));
                         compucomesused=1; nextfromsused=1;}}
    break;

  case 47:
#line 315 "src/parser.y"
    {NEWFANGLED{ACTARGET((yyval.tuple),CREATE,(yyvsp[(2) - (2)].node),(yyvsp[(1) - (2)].numval)); cacsofar=0;}}
    break;

  case 48:
#line 317 "src/parser.y"
    {NEWFANGLED {ACTION((yyval.tuple),UNKNOWN,(yyvsp[(1) - (1)].node)); cacsofar=0;}}
    break;

  case 49:
#line 319 "src/parser.y"
    {yyclearin; yyerrok; (yyval.tuple) = splat(1); cacsofar=0;}
    break;

  case 50:
#line 320 "src/parser.y"
    {yyclearin; yyerrok; (yyval.tuple) = splat(1); cacsofar=0;}
    break;

  case 51:
#line 325 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node); intern(ick_TWOSPOT,cacsofar+++1601);}
    break;

  case 52:
#line 326 "src/parser.y"
    {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node));
                                       intern(ick_TWOSPOT,cacsofar+++1601);}
    break;

  case 53:
#line 328 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 54:
#line 331 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 55:
#line 332 "src/parser.y"
    {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node));}
    break;

  case 56:
#line 337 "src/parser.y"
    {(yyval.node)=cons(US_ELEM,0,(yyvsp[(1) - (1)].node));
                                   if(createsused){
                                     opoverused=1; if(!firstslat)
                               firstslat=(yyval.node); else
                               prevslat->nextslat=(yyval.node);
                             prevslat=(yyval.node);
                             (yyval.node)->nextslat=0;}}
    break;

  case 57:
#line 344 "src/parser.y"
    {(yyval.node)=cons(US_SCALAR,0,(yyvsp[(1) - (1)].node));
                                   if(createsused){
                                     opoverused=1; if(!firstslat)
                               firstslat=(yyval.node); else
                               prevslat->nextslat=(yyval.node);
                             prevslat=(yyval.node);
                             (yyval.node)->nextslat=0;}}
    break;

  case 58:
#line 351 "src/parser.y"
    {(yyval.node)=cons(US_EXPR,0,(yyvsp[(1) - (1)].node));
                                   if(createsused){
                                     opoverused=1; if(!firstslat)
                               firstslat=(yyval.node); else
                               prevslat->nextslat=(yyval.node);
                             prevslat=(yyval.node);
                             (yyval.node)->nextslat=0;}}
    break;

  case 59:
#line 358 "src/parser.y"
    {(yyval.node)=cons(US_ARRVAR,0,(yyvsp[(1) - (1)].node));}
    break;

  case 60:
#line 361 "src/parser.y"
    {(yyval.node)=newnode(); (yyval.node)->opcode=US_ID; (yyval.node)->constant=(yyvsp[(1) - (1)].numval);}
    break;

  case 61:
#line 366 "src/parser.y"
    {rlist = np = newnode(); np->constant = (yyvsp[(1) - (1)].numval);}
    break;

  case 62:
#line 368 "src/parser.y"
    {
                np->rval = newnode();
                np = np->rval;
                np->constant = (yyvsp[(3) - (3)].numval);
            }
    break;

  case 67:
#line 381 "src/parser.y"
    {
              (yyval.node) = newnode();
              (yyval.node)->opcode = ick_TWOSPOT;
              (yyval.node)->constant = intern(ick_TWOSPOT, (yyvsp[(2) - (2)].numval));
            }
    break;

  case 68:
#line 387 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = ick_ONESPOT;
                (yyval.node)->constant = intern(ick_ONESPOT, (yyvsp[(2) - (2)].numval));
            }
    break;

  case 69:
#line 393 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = ick_TWOSPOT;
                (yyval.node)->constant = intern(ick_TWOSPOT, (yyvsp[(2) - (2)].numval));
            }
    break;

  case 70:
#line 401 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = ick_TAIL;
                (yyval.node)->constant = intern(ick_TAIL, (yyvsp[(2) - (2)].numval));
            }
    break;

  case 71:
#line 407 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = ick_HYBRID;
                (yyval.node)->constant = intern(ick_HYBRID, (yyvsp[(2) - (2)].numval));
            }
    break;

  case 72:
#line 417 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = (yyvsp[(2) - (3)].numval);
                (yyval.node)->rval = newnode();
                (yyval.node)->rval->opcode = ick_TAIL;
                (yyval.node)->rval->constant = intern(ick_TAIL, (yyvsp[(3) - (3)].numval));
            }
    break;

  case 73:
#line 425 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = (yyvsp[(2) - (3)].numval);
                (yyval.node)->rval = newnode();
                (yyval.node)->rval->opcode = ick_HYBRID;
                (yyval.node)->rval->constant = intern(ick_HYBRID, (yyvsp[(3) - (3)].numval));
            }
    break;

  case 74:
#line 436 "src/parser.y"
    {
                /* enforce the 16-bit constant constraint */
                if ((unsigned int)(yyvsp[(2) - (2)].numval) > ick_Max_small)
                  ick_lose(IE017, iyylineno, (char *)NULL);
                (yyval.node) = newnode();
                (yyval.node)->opcode = MESH;
                if(variableconstants) /* AIS */
                  (yyval.node)->constant = intern(MESH, (yyvsp[(2) - (2)].numval));
                else
                  (yyval.node)->constant = (yyvsp[(2) - (2)].numval);
            }
    break;

  case 75:
#line 450 "src/parser.y"
    {rlist = np = (yyvsp[(1) - (1)].node);}
    break;

  case 76:
#line 451 "src/parser.y"
    {np = np->rval = (yyvsp[(3) - (3)].node);
                                          /* newnode(); */ }
    break;

  case 80:
#line 458 "src/parser.y"
    {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
    break;

  case 81:
#line 459 "src/parser.y"
    {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (1)].node),0);}
    break;

  case 86:
#line 465 "src/parser.y"
    {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
    break;

  case 87:
#line 466 "src/parser.y"
    {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (1)].node),0);}
    break;

  case 88:
#line 472 "src/parser.y"
    {(yyval.node) = cons(BY, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 89:
#line 473 "src/parser.y"
    {(yyval.node) = cons(BY, (yyvsp[(1) - (1)].node), 0);}
    break;

  case 90:
#line 477 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 91:
#line 478 "src/parser.y"
    {(yyval.node) = cons(SUB, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 92:
#line 480 "src/parser.y"
    {(yyval.node) = cons(SUB, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 93:
#line 482 "src/parser.y"
    {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));}
    break;

  case 94:
#line 483 "src/parser.y"
    {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));}
    break;

  case 95:
#line 485 "src/parser.y"
    {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (1)].node), 0);}
    break;

  case 96:
#line 486 "src/parser.y"
    {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (1)].node), 0);}
    break;

  case 97:
#line 487 "src/parser.y"
    {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (1)].node), 0);}
    break;

  case 98:
#line 491 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 99:
#line 493 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (3)].node); (yyval.node)->rval = cons(SUB, (yyval.node)->rval, (yyvsp[(3) - (3)].node));}
    break;

  case 100:
#line 496 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (3)].node); (yyval.node)->rval = cons(SUB, (yyval.node)->rval, (yyvsp[(3) - (3)].node));}
    break;

  case 101:
#line 500 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 102:
#line 503 "src/parser.y"
    {(yyval.node) = cons(SELECT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 103:
#line 504 "src/parser.y"
    {(yyval.node) = cons(MINGLE, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 104:
#line 506 "src/parser.y"
    {NEWFANGLED{(yyval.node) = cons(SLAT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
                               opoverused=1; if(!firstslat)
                               firstslat=(yyval.node); else
                               prevslat->nextslat=(yyval.node); prevslat=(yyval.node);
                               (yyval.node)->nextslat=0;}}
    break;

  case 105:
#line 511 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 106:
#line 512 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 107:
#line 516 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 108:
#line 517 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 109:
#line 518 "src/parser.y"
    {(yyval.node) = cons(SELECT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 110:
#line 519 "src/parser.y"
    {(yyval.node) = cons(MINGLE, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 111:
#line 520 "src/parser.y"
    {NEWFANGLED{(yyval.node) = cons(SLAT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
                               opoverused=1; if(!firstslat)
                               firstslat=(yyval.node); else
                               prevslat->nextslat=(yyval.node); prevslat=(yyval.node);
                               (yyval.node)->nextslat=0;}}
    break;

  case 112:
#line 528 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 113:
#line 529 "src/parser.y"
    {(yyval.node) = cons(SELECT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 114:
#line 530 "src/parser.y"
    {(yyval.node) = cons(MINGLE, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
    break;

  case 115:
#line 531 "src/parser.y"
    {NEWFANGLED{(yyval.node) = cons(SLAT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
                               opoverused=1; if(!firstslat)
                               firstslat=(yyval.node); else
                               prevslat->nextslat=(yyval.node); prevslat=(yyval.node);
                               (yyval.node)->nextslat=0;}}
    break;

  case 116:
#line 536 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 117:
#line 537 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 118:
#line 541 "src/parser.y"
    {(yyval.numval)=MESH; }
    break;

  case 119:
#line 541 "src/parser.y"
    {(yyval.numval)=ick_ONESPOT;}
    break;

  case 120:
#line 541 "src/parser.y"
    {(yyval.numval)=ick_TWOSPOT;}
    break;

  case 121:
#line 546 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 122:
#line 549 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = (yyvsp[(2) - (3)].numval);
                (yyval.node)->rval = newnode();
                (yyval.node)->rval->opcode = (yyvsp[(1) - (3)].numval);
                if((yyvsp[(1) - (3)].numval) == MESH) {
                  /* enforce the 16-bit constant constraint */
                  if ((unsigned int)(yyvsp[(3) - (3)].numval) > ick_Max_small)
                  ick_lose(IE017, iyylineno, (char *)NULL);
                  if(variableconstants) /* AIS */
                  (yyval.node)->rval->constant = intern(MESH, (yyvsp[(2) - (3)].numval));
                  else
                  (yyval.node)->rval->constant = (yyvsp[(2) - (3)].numval);
                }
                else {
                  (yyval.node)->rval->constant = intern((yyvsp[(1) - (3)].numval), (yyvsp[(3) - (3)].numval));
                }
            }
    break;

  case 123:
#line 571 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = (yyvsp[(2) - (4)].numval);
                (yyval.node)->rval = (yyvsp[(3) - (4)].node);
                DESTACKSPARKEARS;
            }
    break;

  case 124:
#line 578 "src/parser.y"
    {
                (yyval.node) = newnode();
                (yyval.node)->opcode = (yyvsp[(2) - (4)].numval);
                (yyval.node)->rval = (yyvsp[(3) - (4)].node);
                DESTACKSPARKEARS;
            }
    break;

  case 125:
#line 586 "src/parser.y"
    {(yyval.node) = (yyvsp[(2) - (3)].node); DESTACKSPARKEARS;}
    break;

  case 126:
#line 587 "src/parser.y"
    {(yyval.node) = (yyvsp[(2) - (3)].node); DESTACKSPARKEARS;}
    break;

  case 127:
#line 590 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 128:
#line 591 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 129:
#line 594 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 130:
#line 596 "src/parser.y"
    {(yyval.node)=newnode(); (yyval.node)->opcode = (yyvsp[(1) - (2)].numval); (yyval.node)->rval = (yyvsp[(2) - (2)].node);}
    break;

  case 131:
#line 605 "src/parser.y"
    {(yyval.node) = (yyvsp[(1) - (1)].node);}
    break;

  case 132:
#line 607 "src/parser.y"
    {(yyval.node)=newnode(); (yyval.node)->opcode = (yyvsp[(1) - (2)].numval); (yyval.node)->rval = (yyvsp[(2) - (2)].node);}
    break;


/* Line 1267 of yacc.c.  */
#line 2640 "y.tab.c"
      default: break;
    }
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;


  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTOKENS];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (YY_("syntax error"));
#else
      {
      YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
      if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
        {
          YYSIZE_T yyalloc = 2 * yysize;
          if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
            yyalloc = YYSTACK_ALLOC_MAXIMUM;
          if (yymsg != yymsgbuf)
            YYSTACK_FREE (yymsg);
          yymsg = (char *) YYSTACK_ALLOC (yyalloc);
          if (yymsg)
            yymsg_alloc = yyalloc;
          else
            {
            yymsg = yymsgbuf;
            yymsg_alloc = sizeof yymsgbuf;
            }
        }

      if (0 < yysize && yysize <= yymsg_alloc)
        {
          (void) yysyntax_error (yymsg, yystate, yychar);
          yyerror (yymsg);
        }
      else
        {
          yyerror (YY_("syntax error"));
          if (yysize != 0)
            goto yyexhaustedlab;
        }
      }
#endif
    }



  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse look-ahead token after an
       error, discard it.  */

      if (yychar <= YYEOF)
      {
        /* Return failure if at end of input.  */
        if (yychar == YYEOF)
          YYABORT;
      }
      else
      {
        yydestruct ("Error: discarding",
                  yytoken, &yylval);
        yychar = YYEMPTY;
      }
    }

  /* Else will try to reuse look-ahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

  /* Pacify compilers like GCC when the user code never invokes
     YYERROR and the label yyerrorlab therefore never appears in user
     code.  */
  if (/*CONSTCOND*/ 0)
     goto yyerrorlab;

  /* Do not reclaim the symbols of the rule which action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
      {
        yyn += YYTERROR;
        if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
          {
            yyn = yytable[yyn];
            if (0 < yyn)
            break;
          }
      }

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
      YYABORT;


      yydestruct ("Error: popping",
              yystos[yystate], yyvsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  *++yyvsp = yylval;


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#ifndef yyoverflow
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEOF && yychar != YYEMPTY)
     yydestruct ("Cleanup: discarding lookahead",
             yytoken, &yylval);
  /* Do not reclaim the symbols of the rule which action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
              yystos[*yyssp], yyvsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  /* Make sure YYID is used.  */
  return YYID (yyresult);
}


#line 618 "src/parser.y"


static tuple *splat(int gentuple)
/* try to recover from an invalid statement. */
{
    tuple *sp;
    int tok, i;
    extern ick_bool re_send_token;

    /*
     * The idea
     * here is to skip to the ick_next DO, PLEASE or label, then unget that token.
     * which we can do with a tricky flag on the lexer (re_send_token).
     */

    if(re_send_token == ick_TRUE) /* By AIS */
    {
      /* We're still cleaning up from the previous error. */
      return prevtuple;
    }

    /*      fprintf(stderr,"attempting to splat at line %d....\n",iyylineno); */
    /* AIS: Set the flag to true the first time round, false for subsequent
       iterations. That way, if the error was triggered on a DO or label,
       we use that token as the start of the next statement. */
    for(i = 0,re_send_token = ick_TRUE;;i++,re_send_token = ick_FALSE) {
      tok = lexer();
      if (!tok)
      {
          re_send_token = ick_TRUE;
          tok = ' ';          /* scanner must not see a NUL */
          break;
      }
      else if (tok == DO || tok == PLEASE || tok == LABEL
             /* AIS */ || tok == MAYBE) {
          re_send_token = ick_TRUE;
          break;
      }
    }
    /*
      fprintf(stderr,"found %d on line %d after %d other tokens.\n",
            tok,iyylineno,i);
     */

    /* generate a placeholder tuple for the text line */
    if(gentuple /* AIS */) {TARGET(sp, SPLATTERED, 0); prevtuple=sp;}
    else sp=NULL;

    return(sp);
}

/* parser.y ends here */


Generated by  Doxygen 1.6.0   Back to index