/* 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 {
     ident = 258,
     _this_ = 259,
     _super_ = 260,
     Literal = 261,
     _new_ = 262,
     _instanceof_ = 263,
     _interface_ = 264,
     _if_ = 265,
     _else_ = 266,
     _switch_ = 267,
     _case_ = 268,
     _default_ = 269,
     _while_ = 270,
     _do_ = 271,
     _for_ = 272,
     _break_ = 273,
     _continue_ = 274,
     _return_ = 275,
     _throw_ = 276,
     _try_ = 277,
     _catch_ = 278,
     _finally_ = 279,
     _class_ = 280,
     _extends_ = 281,
     _implements_ = 282,
     _package_ = 283,
     _import_ = 284,
     _throws_ = 285,
     _andand_ = 286,
     _oror_ = 287,
     PrimitiveType = 288,
     _void_ = 289,
     IncDec = 290,
     MulOp = 291,
     AddOp = 292,
     NegNot = 293,
     ShiftOp = 294,
     RelOp = 295,
     EqualOp = 296,
     AssOp = 297,
     _static_ = 298,
     _synchronized_ = 299,
     Modifier1 = 300
   };
#endif
/* Tokens.  */
#define ident 258
#define _this_ 259
#define _super_ 260
#define Literal 261
#define _new_ 262
#define _instanceof_ 263
#define _interface_ 264
#define _if_ 265
#define _else_ 266
#define _switch_ 267
#define _case_ 268
#define _default_ 269
#define _while_ 270
#define _do_ 271
#define _for_ 272
#define _break_ 273
#define _continue_ 274
#define _return_ 275
#define _throw_ 276
#define _try_ 277
#define _catch_ 278
#define _finally_ 279
#define _class_ 280
#define _extends_ 281
#define _implements_ 282
#define _package_ 283
#define _import_ 284
#define _throws_ 285
#define _andand_ 286
#define _oror_ 287
#define PrimitiveType 288
#define _void_ 289
#define IncDec 290
#define MulOp 291
#define AddOp 292
#define NegNot 293
#define ShiftOp 294
#define RelOp 295
#define EqualOp 296
#define AssOp 297
#define _static_ 298
#define _synchronized_ 299
#define Modifier1 300




/* Copy the first part of user declarations.  */
#line 1 "java.y"

/************************************************
  Team: Jon Gregory, Gor Nishanov
  Project #2 Part 2
    for RPI course 66-648 Compiler Design Theory

  java.y:

    to do: try finally, static initializer and interfaces

    */

#include <stdlib.h>
#define YYERROR_VERBOSE 1

#define REPORT(cond,code)

#include <iostream.h>
#include <new.h>
#include <assert.h>
#include <string.h>

#include "tree.h"

Environment env;
int yyerror(char *s);
int yylex();



/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 1
#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 31 "java.y"
{
  int modifier;
  int opval;
  Class * clazz;
  Field * field;
  Package * pkg;

  Type   * type;
  Method * method;

  ExprList * exprs;
  StmtList * stmts;

  Expression * expr;
  Statement  * stmt;

  IdentProxy id;
}
/* Line 187 of yacc.c.  */
#line 235 "parser.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 248 "parser.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  9
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   1029

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  60
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  155
/* YYNRULES -- Number of rules.  */
#define YYNRULES  282
/* YYNRULES -- Number of states.  */
#define YYNSTATES  478

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

#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,    56,     2,
      53,    54,     2,     2,    48,     2,    46,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,    55,    47,
       2,     2,     2,    59,     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,    51,     2,    52,    57,     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,    49,    58,    50,     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
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     5,     7,     9,    11,    12,    14,    16,
      19,    21,    23,    25,    29,    33,    35,    36,    38,    39,
      41,    44,    46,    48,    50,    52,    55,    59,    60,    62,
      64,    68,    74,    75,    83,    84,    87,    88,    91,    93,
      97,   101,   102,   104,   106,   109,   111,   113,   115,   117,
     119,   124,   126,   130,   132,   136,   138,   142,   144,   146,
     149,   154,   159,   160,   166,   170,   171,   173,   175,   179,
     182,   183,   186,   188,   192,   194,   196,   199,   204,   205,
     211,   216,   220,   222,   224,   230,   231,   238,   241,   245,
     249,   250,   252,   254,   257,   259,   261,   263,   266,   270,
     274,   275,   277,   278,   281,   283,   287,   289,   291,   293,
     295,   297,   301,   305,   309,   311,   313,   317,   318,   320,
     322,   325,   327,   329,   332,   335,   337,   339,   341,   343,
     345,   347,   349,   351,   353,   355,   357,   359,   361,   363,
     365,   367,   369,   371,   373,   375,   377,   379,   381,   385,
     389,   392,   394,   396,   398,   400,   402,   408,   416,   424,
     430,   435,   439,   440,   442,   444,   447,   450,   452,   455,
     459,   462,   468,   474,   482,   492,   502,   503,   505,   506,
     508,   509,   511,   513,   515,   517,   519,   523,   524,   526,
     530,   534,   537,   541,   545,   551,   555,   560,   561,   563,
     565,   568,   574,   577,   579,   581,   583,   585,   587,   591,
     593,   595,   597,   599,   605,   606,   608,   610,   614,   615,
     621,   622,   628,   630,   633,   637,   638,   640,   643,   647,
     651,   655,   662,   667,   674,   679,   684,   686,   688,   690,
     693,   696,   698,   700,   703,   705,   708,   710,   711,   712,
     720,   721,   731,   736,   738,   742,   744,   748,   750,   754,
     756,   760,   764,   766,   770,   772,   776,   778,   782,   784,
     788,   790,   794,   796,   800,   802,   808,   810,   812,   814,
     818,   820,   822
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
      61,     0,    -1,    68,    -1,    43,    -1,    44,    -1,    45,
      -1,    -1,    64,    -1,    62,    -1,    64,    62,    -1,    66,
      -1,    67,    -1,     3,    -1,    65,    46,     3,    -1,    74,
      69,    70,    -1,    71,    -1,    -1,    73,    -1,    -1,    75,
      -1,    71,    75,    -1,    78,    -1,   110,    -1,    47,    -1,
      72,    -1,    73,    72,    -1,    28,    65,    47,    -1,    -1,
      76,    -1,    77,    -1,    29,    65,    47,    -1,    29,    65,
      46,    36,    47,    -1,    -1,    63,    25,     3,    79,    80,
      81,    83,    -1,    -1,    26,   125,    -1,    -1,    27,    82,
      -1,   126,    -1,    82,    48,   126,    -1,    49,    84,    50,
      -1,    -1,    85,    -1,    86,    -1,    85,    86,    -1,    87,
      -1,   103,    -1,   104,    -1,    88,    -1,    93,    -1,    63,
     128,    89,    47,    -1,    90,    -1,    89,    48,    90,    -1,
      91,    -1,    91,    42,    92,    -1,     3,    -1,    91,    51,
      52,    -1,   175,    -1,   119,    -1,    94,   102,    -1,    63,
      34,    95,   100,    -1,    63,   128,    95,   100,    -1,    -1,
       3,    53,    96,    97,    54,    -1,    95,    51,    52,    -1,
      -1,    98,    -1,    99,    -1,    98,    48,    99,    -1,   128,
      91,    -1,    -1,    30,   101,    -1,   125,    -1,   101,    48,
     125,    -1,   129,    -1,    47,    -1,    43,   129,    -1,    63,
     105,   100,   107,    -1,    -1,    66,    53,   106,    97,    54,
      -1,    49,   109,   130,    50,    -1,    49,   130,    50,    -1,
       4,    -1,     5,    -1,   108,    53,   179,    54,    47,    -1,
      -1,    63,     9,     3,   111,   112,   113,    -1,    26,   126,
      -1,   112,    48,   126,    -1,    49,   114,    50,    -1,    -1,
     115,    -1,   116,    -1,   115,   116,    -1,   117,    -1,   118,
      -1,    88,    -1,    94,    47,    -1,    49,    48,    50,    -1,
      49,   121,    50,    -1,    -1,    48,    -1,    -1,   122,   120,
      -1,    92,    -1,   122,    48,    92,    -1,   124,    -1,   127,
      -1,    65,    -1,   124,    -1,   124,    -1,    33,    51,    52,
      -1,    65,    51,    52,    -1,   127,    51,    52,    -1,    33,
      -1,   123,    -1,    49,   130,    50,    -1,    -1,   131,    -1,
     132,    -1,   131,   132,    -1,   133,    -1,   135,    -1,   134,
      47,    -1,   128,    89,    -1,   137,    -1,   139,    -1,   143,
      -1,   144,    -1,   153,    -1,   156,    -1,   137,    -1,   140,
      -1,   145,    -1,   154,    -1,   157,    -1,   129,    -1,   138,
      -1,   141,    -1,   146,    -1,   155,    -1,   165,    -1,   166,
      -1,   167,    -1,   169,    -1,   168,    -1,   170,    -1,    47,
      -1,     3,    55,   135,    -1,     3,    55,   136,    -1,   142,
      47,    -1,   212,    -1,   194,    -1,   192,    -1,   189,    -1,
     178,    -1,    10,    53,   175,    54,   135,    -1,    10,    53,
     175,    54,   136,    11,   135,    -1,    10,    53,   175,    54,
     136,    11,   136,    -1,    12,    53,   175,    54,   147,    -1,
      49,   149,   148,    50,    -1,    49,   148,    50,    -1,    -1,
     151,    -1,   150,    -1,   149,   150,    -1,   151,   131,    -1,
     152,    -1,   151,   152,    -1,    13,   214,    55,    -1,    14,
      55,    -1,    15,    53,   175,    54,   135,    -1,    15,    53,
     175,    54,   136,    -1,    16,   135,    15,    53,   175,    54,
      47,    -1,    17,    53,   158,    47,   160,    47,   159,    54,
     135,    -1,    17,    53,   158,    47,   160,    47,   159,    54,
     136,    -1,    -1,   161,    -1,    -1,   162,    -1,    -1,   175,
      -1,   163,    -1,   134,    -1,   163,    -1,   142,    -1,   163,
      48,   142,    -1,    -1,     3,    -1,    18,   164,    47,    -1,
      19,   164,    47,    -1,    20,    47,    -1,    20,   175,    47,
      -1,    21,   175,    47,    -1,    44,    53,   175,    54,   129,
      -1,    22,   129,   172,    -1,    22,   129,   171,   174,    -1,
      -1,   172,    -1,   173,    -1,   172,   173,    -1,    23,    53,
      99,    54,   129,    -1,    24,   129,    -1,   213,    -1,   177,
      -1,   181,    -1,     6,    -1,     4,    -1,    53,   175,    54,
      -1,   178,    -1,   188,    -1,   189,    -1,   190,    -1,     7,
     125,    53,   179,    54,    -1,    -1,   180,    -1,   175,    -1,
     180,    48,   175,    -1,    -1,     7,    65,   182,   184,   186,
      -1,    -1,     7,    33,   183,   184,   186,    -1,   185,    -1,
     184,   185,    -1,    51,   175,    52,    -1,    -1,   187,    -1,
      51,    52,    -1,   187,    51,    52,    -1,   176,    46,     3,
      -1,     5,    46,     3,    -1,   176,    46,     3,    53,   179,
      54,    -1,    65,    53,   179,    54,    -1,     5,    46,     3,
      53,   179,    54,    -1,    65,    51,   175,    52,    -1,   177,
      51,   175,    52,    -1,   176,    -1,    65,    -1,   192,    -1,
     191,    35,    -1,    37,   193,    -1,   194,    -1,   195,    -1,
      35,   193,    -1,   191,    -1,    38,   193,    -1,   197,    -1,
      -1,    -1,    53,    33,   198,   186,    54,   196,   193,    -1,
      -1,    53,    65,    51,    52,   199,   186,    54,   196,   195,
      -1,    53,   175,    54,   195,    -1,   193,    -1,   200,    36,
     193,    -1,   200,    -1,   201,    37,   200,    -1,   201,    -1,
     202,    39,   201,    -1,   202,    -1,   203,    40,   202,    -1,
     203,     8,   123,    -1,   203,    -1,   204,    41,   203,    -1,
     204,    -1,   205,    56,   204,    -1,   205,    -1,   206,    57,
     205,    -1,   206,    -1,   207,    58,   206,    -1,   207,    -1,
     208,    31,   207,    -1,   208,    -1,   209,    32,   208,    -1,
     209,    -1,   209,    59,   175,    55,   210,    -1,    65,    -1,
     188,    -1,   190,    -1,   211,    42,   213,    -1,   212,    -1,
     210,    -1,   175,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   158,   158,   160,   161,   162,   165,   166,   169,   170,
     178,   179,   181,   182,   187,   189,   190,   191,   192,   195,
     196,   199,   200,   201,   204,   205,   208,   209,   212,   213,
     216,   218,   226,   226,   229,   230,   232,   233,   235,   236,
     238,   240,   240,   242,   243,   245,   246,   247,   249,   250,
     254,   262,   263,   267,   268,   274,   275,   277,   278,   283,
     287,   289,   293,   293,   295,   297,   297,   299,   300,   302,
     306,   306,   308,   309,   310,   311,   315,   320,   327,   327,
     330,   332,   334,   334,   336,   344,   344,   348,   349,   352,
     354,   355,   358,   359,   362,   363,   366,   369,   373,   374,
     376,   376,   377,   378,   380,   381,   387,   387,   389,   390,
     391,   393,   394,   395,   397,   397,   399,   401,   402,   404,
     405,   407,   408,   410,   413,   417,   418,   419,   420,   421,
     422,   424,   425,   426,   427,   428,   431,   432,   433,   434,
     435,   436,   437,   438,   439,   440,   441,   443,   445,   448,
     451,   453,   454,   455,   456,   457,   460,   462,   465,   469,
     473,   475,   477,   477,   480,   481,   485,   487,   488,   490,
     491,   494,   496,   499,   502,   506,   509,   509,   510,   510,
     511,   511,   513,   514,   516,   518,   519,   522,   522,   524,
     526,   528,   529,   531,   533,   536,   537,   539,   539,   541,
     542,   544,   546,   551,   553,   553,   555,   556,   557,   558,
     559,   560,   561,   564,   566,   567,   568,   569,   571,   571,
     572,   572,   574,   574,   575,   578,   578,   580,   581,   583,
     584,   586,   588,   590,   594,   596,   599,   600,   601,   603,
     605,   606,   607,   609,   611,   612,   613,   615,   617,   617,
     620,   619,   622,   624,   624,   627,   627,   630,   630,   633,
     634,   635,   638,   639,   641,   642,   644,   645,   647,   648,
     650,   651,   653,   654,   656,   656,   659,   659,   659,   661,
     664,   664,   665
};
#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", "ident", "_this_", "_super_", "Literal",
  "_new_", "_instanceof_", "_interface_", "_if_", "_else_", "_switch_",
  "_case_", "_default_", "_while_", "_do_", "_for_", "_break_",
  "_continue_", "_return_", "_throw_", "_try_", "_catch_", "_finally_",
  "_class_", "_extends_", "_implements_", "_package_", "_import_",
  "_throws_", "_andand_", "_oror_", "PrimitiveType", "_void_", "IncDec",
  "MulOp", "AddOp", "NegNot", "ShiftOp", "RelOp", "EqualOp", "AssOp",
  "_static_", "_synchronized_", "Modifier1", "'.'", "';'", "','", "'{'",
  "'}'", "'['", "']'", "'('", "')'", "':'", "'&'", "'^'", "'|'", "'?'",
  "$accept", "Goal3", "Modifier", "oModifiers", "Modifiers", "Name",
  "SimpleName", "QualifiedName", "CompilationUnit", "oImportDeclarations",
  "oTypeDeclarations", "ImportDeclarations", "TypeDeclaration",
  "TypeDeclarations", "PackageDeclaration", "ImportDeclaration",
  "SingleTypeImportDeclaration", "TypeImportOnDemandDeclaration",
  "ClassDeclaration", "@1", "oSuper", "oInterfaces", "InterfaceTypeList",
  "ClassBody", "oClassBodyDeclarations", "ClassBodyDeclarations",
  "ClassBodyDeclaration", "ClassMemberDeclaration", "FieldDeclaration",
  "VariableDeclarators", "VariableDeclarator", "VariableDeclaratorId",
  "VariableInitializer", "MethodDeclaration", "MethodHeader",
  "MethodDeclarator", "@2", "oFormalParameterList", "FormalParameterList",
  "FormalParameter", "Throws", "ClassTypeList", "MethodBody",
  "StaticInitializer", "ConstructorDeclaration", "ConstructorDeclarator",
  "@3", "ConstructorBody", "ThisOrSuper", "ExplicitConstructorInvocation",
  "InterfaceDeclaration", "@4", "ExtendsInterfaces", "InterfaceBody",
  "oInterfaceMemberDeclarations", "InterfaceMemberDeclarations",
  "InterfaceMemberDeclaration", "ConstantDeclaration",
  "AbstractMethodDeclaration", "ArrayInitializer", "oComma",
  "oVariableInitializers", "VariableInitializers", "ReferenceType",
  "ClassOrInterfaceType", "ClassType", "InterfaceType", "ArrayType",
  "Type", "Block", "oBlockStatements", "BlockStatements", "BlockStatement",
  "LocalVariableDeclarationStatement", "LocalVariableDeclaration",
  "Statement", "StatementNoShortIf",
  "StatementWithoutTrailingSubstatement", "EmptyStatement",
  "LabeledStatement", "LabeledStatementNoShortIf", "ExpressionStatement",
  "StatementExpression", "IfThenStatement", "IfThenElseStatement",
  "IfThenElseStatementNoShortIf", "SwitchStatement", "SwitchBlock",
  "oSwitchLabels", "SwitchBlockStatementGroups",
  "SwitchBlockStatementGroup", "SwitchLabels", "SwitchLabel",
  "WhileStatement", "WhileStatementNoShortIf", "DoStatement",
  "ForStatement", "ForStatementNoShortIf", "oForInit", "oForUpdate",
  "oForExpression", "ForInit", "ForUpdate", "StatementExpressionList",
  "oIdent", "BreakStatement", "ContinueStatement", "ReturnStatement",
  "ThrowStatement", "SynchronizedStatement", "TryStatement", "oCatches",
  "Catches", "CatchClause", "Finally", "Expression", "Primary",
  "NoNewArray", "NewClassInstance", "oArgList", "ArgList", "ArrayCreation",
  "@5", "@6", "DimExprs", "DimExpr", "oDims", "Dims", "FieldAccess",
  "MethodInvocation", "ArrayAccess", "Postfix", "PostIncDec", "Unary",
  "PreIncDec", "UnaryNotPM", "SaveElem", "CastExpr", "@7", "@8", "MulExpr",
  "AddExpr", "ShiftExpr", "RelExpr", "EqualExpr", "AndExpr", "XorExpr",
  "OrExpr", "AndAlso", "OrElse", "CondExpr", "LeftHandSide", "Assignment",
  "AssignExpression", "ConstantExpression", 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,    46,    59,    44,   123,
     125,    91,    93,    40,    41,    58,    38,    94,   124,    63
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint8 yyr1[] =
{
       0,    60,    61,    62,    62,    62,    63,    63,    64,    64,
      65,    65,    66,    67,    68,    69,    69,    70,    70,    71,
      71,    72,    72,    72,    73,    73,    74,    74,    75,    75,
      76,    77,    79,    78,    80,    80,    81,    81,    82,    82,
      83,    84,    84,    85,    85,    86,    86,    86,    87,    87,
      88,    89,    89,    90,    90,    91,    91,    92,    92,    93,
      94,    94,    96,    95,    95,    97,    97,    98,    98,    99,
     100,   100,   101,   101,   102,   102,   103,   104,   106,   105,
     107,   107,   108,   108,   109,   111,   110,   112,   112,   113,
     114,   114,   115,   115,   116,   116,   117,   118,   119,   119,
     120,   120,   121,   121,   122,   122,   123,   123,   124,   125,
     126,   127,   127,   127,   128,   128,   129,   130,   130,   131,
     131,   132,   132,   133,   134,   135,   135,   135,   135,   135,
     135,   136,   136,   136,   136,   136,   137,   137,   137,   137,
     137,   137,   137,   137,   137,   137,   137,   138,   139,   140,
     141,   142,   142,   142,   142,   142,   143,   144,   145,   146,
     147,   147,   148,   148,   149,   149,   150,   151,   151,   152,
     152,   153,   154,   155,   156,   157,   158,   158,   159,   159,
     160,   160,   161,   161,   162,   163,   163,   164,   164,   165,
     166,   167,   167,   168,   169,   170,   170,   171,   171,   172,
     172,   173,   174,   175,   176,   176,   177,   177,   177,   177,
     177,   177,   177,   178,   179,   179,   180,   180,   182,   181,
     183,   181,   184,   184,   185,   186,   186,   187,   187,   188,
     188,   189,   189,   189,   190,   190,   191,   191,   191,   192,
     193,   193,   193,   194,   195,   195,   195,   196,   198,   197,
     199,   197,   197,   200,   200,   201,   201,   202,   202,   203,
     203,   203,   204,   204,   205,   205,   206,   206,   207,   207,
     208,   208,   209,   209,   210,   210,   211,   211,   211,   212,
     213,   213,   214
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     1,     1,     1,     1,     0,     1,     1,     2,
       1,     1,     1,     3,     3,     1,     0,     1,     0,     1,
       2,     1,     1,     1,     1,     2,     3,     0,     1,     1,
       3,     5,     0,     7,     0,     2,     0,     2,     1,     3,
       3,     0,     1,     1,     2,     1,     1,     1,     1,     1,
       4,     1,     3,     1,     3,     1,     3,     1,     1,     2,
       4,     4,     0,     5,     3,     0,     1,     1,     3,     2,
       0,     2,     1,     3,     1,     1,     2,     4,     0,     5,
       4,     3,     1,     1,     5,     0,     6,     2,     3,     3,
       0,     1,     1,     2,     1,     1,     1,     2,     3,     3,
       0,     1,     0,     2,     1,     3,     1,     1,     1,     1,
       1,     3,     3,     3,     1,     1,     3,     0,     1,     1,
       2,     1,     1,     2,     2,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     3,     3,
       2,     1,     1,     1,     1,     1,     5,     7,     7,     5,
       4,     3,     0,     1,     1,     2,     2,     1,     2,     3,
       2,     5,     5,     7,     9,     9,     0,     1,     0,     1,
       0,     1,     1,     1,     1,     1,     3,     0,     1,     3,
       3,     2,     3,     3,     5,     3,     4,     0,     1,     1,
       2,     5,     2,     1,     1,     1,     1,     1,     3,     1,
       1,     1,     1,     5,     0,     1,     1,     3,     0,     5,
       0,     5,     1,     2,     3,     0,     1,     2,     3,     3,
       3,     6,     4,     6,     4,     4,     1,     1,     1,     2,
       2,     1,     1,     2,     1,     2,     1,     0,     0,     7,
       0,     9,     4,     1,     3,     1,     3,     1,     3,     1,
       3,     3,     1,     3,     1,     3,     1,     3,     1,     3,
       1,     3,     1,     3,     1,     5,     1,     1,     1,     3,
       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_uint16 yydefact[] =
{
      27,     0,     0,     2,    16,    12,     0,    10,    11,     1,
       0,     6,    15,    19,    28,    29,     0,    26,     0,     3,
       4,     5,    23,     8,     0,     7,    14,    24,     6,    21,
      22,    20,    13,     0,    30,     0,     0,     9,    25,     0,
      85,    32,    31,     0,    34,     0,     0,     0,    36,   108,
     110,    87,     0,     6,    86,   109,    35,     0,     0,    88,
       0,    96,     0,     0,     6,    92,    94,    95,    37,    38,
       6,    33,   114,     0,   108,   115,   106,   107,     0,    97,
      89,    93,     0,     3,     0,     0,     6,    43,    45,    48,
      49,     0,    46,    47,     0,     0,    70,     0,     0,    55,
       0,    51,    53,    70,    39,   117,    76,    10,    70,    40,
      44,    75,    59,    74,   111,    62,     0,     0,    60,   112,
     113,    50,     0,     0,     0,    61,    12,   207,     0,   206,
       0,     0,     0,     0,     0,     0,   187,   187,     0,     0,
       0,     0,     0,   147,     0,   108,     0,   136,     0,   118,
     119,   121,     0,   122,   125,   137,   126,   138,     0,   127,
     128,   139,   129,   140,   130,   141,   142,   143,   145,   144,
     146,   236,   204,   155,   205,   210,   154,   212,     0,   153,
     152,     0,   151,    78,     0,    65,    71,    72,    64,    55,
      52,     0,     0,   102,     0,   237,    54,    58,    57,   209,
     211,   244,   238,   253,   241,   242,   246,   255,   257,   259,
     262,   264,   266,   268,   270,   272,   274,   281,   280,   203,
      56,     0,     0,   220,   108,     0,     0,     0,     0,     0,
     176,   188,     0,     0,   191,     0,     0,   197,   237,   210,
     212,   243,     0,     0,     0,   214,   124,   116,   120,   123,
     150,     0,     0,   239,     0,    65,   117,    77,     0,    66,
      67,     0,     0,   240,   245,     0,   104,     0,   100,   248,
     237,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   148,   230,     0,     0,   214,
       0,     0,     0,     0,   183,   185,     0,   177,   182,   189,
     190,   192,   193,     0,     0,   195,   199,     0,   208,     0,
     216,     0,   215,   229,     0,   279,     0,   207,    83,     0,
     117,     0,    63,     0,    69,    73,    98,    99,   101,   103,
     225,     0,   208,   254,   256,   258,     0,   261,   260,   263,
     265,   267,   269,   271,   273,     0,   214,     0,   225,   222,
     225,     0,     0,     0,     0,     0,   180,     0,     0,     0,
     196,   200,     0,   234,   232,     0,   214,   235,    79,   214,
       0,    81,    68,   105,     0,     0,   226,   250,   252,     0,
       0,     0,     0,   223,   221,   219,   213,    12,     0,     0,
       0,   156,     0,   125,   132,   133,   134,   135,   162,   159,
     171,     0,     0,   181,   186,     0,   202,   194,   217,     0,
       0,    80,   227,   247,     0,   225,   275,   233,   224,     0,
       0,     0,   176,     0,     0,     0,     0,   162,   164,   163,
     167,     0,   178,     0,   231,     0,     0,   228,     0,   149,
       0,     0,     0,   157,   282,     0,   170,   161,     0,   165,
     166,   168,   173,     0,   179,   184,   201,    84,   249,   247,
       0,     0,   180,   169,   160,     0,     0,     0,   172,     0,
     174,   251,     0,   178,   158,     0,     0,   175
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     2,    23,    24,    25,   195,     7,     8,     3,    11,
      26,    12,    27,    28,     4,    13,    14,    15,    29,    44,
      48,    58,    68,    71,    85,    86,    87,    88,    61,   100,
     101,   102,   196,    90,    62,    96,   185,   258,   259,   260,
     118,   186,   112,    92,    93,   108,   255,   257,   319,   320,
      30,    43,    46,    54,    63,    64,    65,    66,    67,   197,
     329,   267,   268,    75,    76,    56,    51,    77,   146,   147,
     148,   149,   150,   151,   152,   153,   392,   154,   155,   156,
     394,   157,   158,   159,   160,   395,   161,   399,   426,   427,
     428,   429,   430,   162,   396,   163,   164,   397,   296,   453,
     402,   297,   454,   298,   232,   165,   166,   167,   168,   169,
     170,   304,   305,   306,   360,   310,   171,   172,   199,   311,
     312,   174,   288,   287,   348,   349,   375,   376,   175,   200,
     177,   201,   202,   203,   204,   205,   436,   206,   330,   415,
     207,   208,   209,   210,   211,   212,   213,   214,   215,   216,
     217,   181,   218,   219,   445
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -413
static const yytype_int16 yypact[] =
{
       1,    75,   108,  -413,    83,  -413,   132,  -413,  -413,  -413,
      75,    19,    83,  -413,  -413,  -413,   113,  -413,   136,  -413,
    -413,  -413,  -413,  -413,    94,   120,  -413,  -413,    50,  -413,
    -413,  -413,  -413,    40,  -413,   123,   127,  -413,  -413,   100,
    -413,  -413,  -413,   124,   150,    75,   149,    75,   131,   134,
    -413,  -413,    75,   189,  -413,  -413,  -413,    75,   154,  -413,
      51,  -413,   145,   177,   192,  -413,  -413,  -413,   182,  -413,
     202,  -413,   187,   241,   -20,  -413,  -413,   199,   250,  -413,
    -413,  -413,    75,   209,    51,   210,   265,  -413,  -413,  -413,
    -413,    88,  -413,  -413,   207,   217,     4,   214,   232,   217,
     193,  -413,   118,     4,  -413,   779,  -413,   234,   259,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,    75,   238,  -413,  -413,
    -413,  -413,   289,   585,   242,  -413,   240,  -413,   216,  -413,
      68,   245,   246,   253,   898,   260,   300,   300,   697,   976,
     209,   976,   261,  -413,   976,   103,   289,  -413,   262,   779,
    -413,  -413,   269,  -413,  -413,  -413,  -413,  -413,   270,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,   274,   272,    82,  -413,   279,   111,   282,   290,   292,
    -413,   286,  -413,  -413,   280,    72,   284,  -413,  -413,  -413,
    -413,   976,   976,   473,   771,   135,  -413,  -413,  -413,  -413,
    -413,   290,  -413,  -413,  -413,  -413,  -413,   299,   301,   297,
       7,   296,   293,   285,   287,   315,   -10,  -413,  -413,  -413,
    -413,   898,   345,  -413,   -19,   298,   976,   976,   976,   337,
      35,  -413,   308,   309,  -413,   311,   312,   341,    67,  -413,
    -413,  -413,   976,   316,   836,   976,   317,  -413,  -413,  -413,
    -413,   363,   976,  -413,   976,    72,   847,  -413,   320,   321,
    -413,   289,    75,  -413,  -413,   325,  -413,   327,   331,  -413,
     143,   332,   976,   976,   976,   976,    74,   976,   976,   976,
     976,   976,   976,   976,   976,  -413,   335,   329,   329,   976,
     339,   340,   343,   336,  -413,  -413,   338,  -413,   347,  -413,
    -413,  -413,  -413,   346,   376,   176,  -413,   348,  -413,   349,
    -413,   351,   364,   358,   361,  -413,   360,   362,   216,   365,
     779,   367,  -413,    72,   369,  -413,  -413,  -413,   585,  -413,
     372,   952,   218,  -413,   299,   301,   187,  -413,   297,     7,
     296,   293,   285,   287,   315,   370,   976,   976,   375,  -413,
     375,   377,   919,   380,   898,   976,   976,   167,    72,   209,
    -413,  -413,   209,  -413,  -413,   976,   976,  -413,  -413,   976,
     382,  -413,  -413,  -413,   378,   379,   388,  -413,  -413,   976,
     386,   389,   971,  -413,  -413,  -413,  -413,   387,   391,   392,
     393,  -413,   439,   440,  -413,  -413,  -413,  -413,   235,  -413,
    -413,   399,   407,  -413,  -413,   401,  -413,  -413,  -413,   402,
     403,  -413,  -413,  -413,   406,   372,  -413,  -413,  -413,   919,
     976,   976,    35,   898,   976,   409,   411,   235,  -413,   708,
    -413,   415,   167,   209,  -413,   419,   976,  -413,   414,  -413,
     416,   417,   426,  -413,  -413,   420,  -413,  -413,   424,  -413,
     779,  -413,  -413,   427,  -413,   347,  -413,  -413,  -413,  -413,
     919,   919,   976,  -413,  -413,   898,   218,   471,  -413,   436,
    -413,  -413,   919,   167,  -413,   430,   919,  -413
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -413,  -413,   460,    36,  -413,    -1,   404,  -413,  -413,  -413,
    -413,  -413,   458,  -413,  -413,   475,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,   405,  -413,    39,   344,
     373,   233,  -189,  -413,    41,   418,  -413,   243,  -413,  -286,
     -17,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,   433,  -413,  -413,  -413,
    -413,  -413,  -413,   224,   -34,  -109,   -24,  -413,   -54,   -66,
    -251,    76,  -148,  -413,  -227,    84,  -362,  -317,  -413,  -413,
    -413,  -413,  -206,  -413,  -413,  -413,  -413,  -413,    85,  -413,
      86,  -413,    87,  -413,  -413,  -413,  -413,  -413,    79,    42,
      52,  -413,  -413,  -412,   390,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,   219,  -413,   425,  -413,  -413,   -89,  -279,
    -413,  -413,  -413,  -413,   231,  -182,  -336,  -413,   -68,   -69,
     326,   -13,    70,  -139,   152,  -324,    64,  -413,  -413,  -413,
     251,   254,   255,   256,   249,   257,   258,   268,   264,  -413,
     157,  -413,   213,   303,  -413
};

/* 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 -279
static const yytype_int16 yytable[] =
{
       6,   248,   241,   294,   266,   321,    78,   187,   378,    18,
     351,    50,   384,    55,   385,   276,   173,   106,    50,   -18,
     455,   225,   283,    50,   295,   113,    16,    16,    59,     1,
      78,    97,  -218,    69,   116,   393,   176,   372,     5,   127,
     128,   129,   130,    32,    49,   173,    49,   277,    50,   284,
     -17,    49,   263,   264,     5,   117,    49,   439,   104,    74,
     173,   455,    19,    20,    21,   176,    22,   380,    72,   370,
     141,     5,   405,   239,   237,     5,    39,     5,     5,   438,
     176,    49,    55,    74,    72,    73,   125,   409,   144,    60,
     410,   184,   178,    19,    20,    21,    55,    22,   467,   468,
      60,   223,   393,    35,   145,    72,    84,   336,     9,    89,
     474,    91,    10,    16,   477,    49,    32,  -209,   272,    36,
     245,   178,    84,   239,   239,    89,    40,    91,  -209,   224,
      41,   261,   173,  -209,   333,   111,   178,   105,  -237,   373,
     238,   173,   471,   393,   393,  -276,  -211,    42,   145,    16,
      45,   404,   176,   325,   244,   393,   245,  -211,    57,   393,
     123,   176,  -211,    19,    20,    21,   383,   173,   383,   124,
       5,   127,   128,   129,   130,   179,    47,  -276,    16,    17,
      16,    16,    33,    34,    74,  -276,   272,   176,   245,    16,
     238,   238,    79,   270,   331,   294,   245,    52,    53,   303,
    -198,   261,   141,    70,   179,   239,   239,   239,   178,   239,
     239,   239,   239,   239,   239,   239,   295,   178,   229,   179,
     144,     5,   127,   128,   129,   130,   295,    80,    55,   145,
      82,   173,    19,    20,    21,    19,    20,    21,    94,   -90,
     121,   122,   -91,   178,    95,    83,    20,    21,   424,   425,
      98,   176,   -41,    99,    74,   145,   192,   180,   105,   114,
     109,    49,   222,   173,   239,   173,   119,   295,   173,   261,
     115,   194,   238,   238,   238,    74,   238,   238,   238,   238,
     238,   238,   238,   176,   120,   176,   180,   183,   176,   116,
     188,   179,   189,   406,   220,   221,   407,   458,   226,   227,
     179,   180,   248,   231,   261,   285,   228,   178,    83,    20,
      21,   239,   247,   230,   242,   -42,   249,   250,   182,   145,
     251,  -277,    74,   252,  -278,   253,   179,  -238,   254,   256,
     173,   238,   262,   173,   173,   273,   275,   278,   274,   178,
     173,   178,   280,   173,   178,   281,   282,   182,   286,   279,
     176,   289,   293,   176,   176,   299,   300,    74,   301,   302,
     176,   173,   182,   176,   303,   122,   313,   456,   239,   323,
     308,   173,   173,   180,   322,   326,   173,   327,   238,   328,
     347,   176,   180,   173,   173,   356,   332,   173,   346,   355,
     179,   176,   176,   352,   353,   357,   176,   354,   239,   358,
     359,   363,   362,   176,   176,   364,   178,   176,   180,   178,
     178,   366,   365,   367,   368,   -82,   178,   371,   369,   178,
     124,   145,   179,   374,   179,   379,   382,   179,   145,   398,
     412,   386,   411,   413,   182,   238,   391,   178,   400,   414,
     417,   418,   419,   182,   420,   421,   422,   178,   178,   145,
     423,  -131,   178,   431,   432,   433,   434,   435,   437,   178,
     178,   447,   452,   178,   446,   238,   457,   240,   459,   182,
     460,   461,   180,   462,   464,   463,     5,   127,   128,   129,
     130,   465,   472,   473,   476,    37,    38,    31,   107,   179,
     246,   110,   179,   179,   324,   190,   103,    81,   316,   179,
     337,   442,   179,   285,   180,   450,   180,   443,   141,   180,
     191,   192,   448,   449,   469,   475,   451,   240,   240,   350,
     179,   265,   193,   466,   361,   334,   194,   233,   340,   335,
     179,   179,   338,   182,   339,   179,   416,   341,     0,   342,
       0,     0,   179,   179,   391,   400,   179,   344,   198,   470,
     343,     0,     0,     0,     0,     0,   443,   315,     0,     0,
     470,     0,     0,   235,   236,   182,     0,   182,     0,   243,
     182,   180,     0,     0,   180,   180,     0,     0,     0,     0,
       0,   180,     0,     0,   180,     0,     0,     0,     5,   127,
     128,   129,   130,     0,     0,     0,     0,     0,     0,   240,
     240,   240,   180,   240,   240,   240,   240,   240,   240,   240,
       0,     0,   180,   180,     0,     0,     0,   180,   198,   271,
     141,     0,   191,   192,   180,   180,     0,     0,   180,     0,
       0,     0,   182,     0,   193,   182,   182,     0,   194,     0,
       0,     0,   182,     0,     0,   182,     0,     0,     0,     0,
       0,   290,   291,   292,     0,     0,     0,     0,   240,     0,
       0,     0,     0,   182,     0,     0,     0,   307,     0,   309,
       0,     0,     0,   182,   182,     0,     0,   314,   182,     0,
       0,     0,     0,     0,     0,   182,   182,     0,     0,   182,
       0,     0,     0,     0,     0,     0,     0,   309,     0,     0,
       5,   127,   128,   129,   130,   240,     0,     0,     0,   345,
       0,   126,   127,   128,   129,   130,     0,     0,   131,     0,
     132,   424,   425,   133,   134,   135,   136,   137,   138,   139,
     140,     0,   141,     0,   191,   192,     0,     0,     0,     0,
       0,    72,     0,   141,   234,     0,     0,     0,     0,     0,
     194,     0,   142,   198,     0,   143,   309,   105,     0,     0,
       0,   144,   240,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   381,     0,     5,   127,   128,   129,   130,     0,
     401,   403,   126,   127,   128,   129,   130,     0,     0,   131,
     408,   132,   240,     0,   133,   134,   135,   136,   137,   138,
     139,   140,     0,     0,   269,     0,   141,   381,   191,   192,
       0,     0,    72,     0,   141,     0,     0,     0,     0,     0,
       0,     0,     0,   142,   194,     0,   143,     0,   105,     0,
       0,     0,   144,     0,     0,     0,     0,     0,     0,     5,
     127,   128,   129,   130,     0,   440,   441,     0,     0,   444,
     126,   317,   318,   129,   130,     0,     0,   131,     0,   132,
       0,     0,   133,   134,   135,   136,   137,   138,   139,   140,
       0,   141,     0,   191,   192,     0,     0,     0,     0,     0,
      72,     0,   141,     0,     0,     0,     0,   403,   119,   194,
       0,   142,     0,     0,   143,     0,   105,     0,     0,     0,
     144,   126,   127,   128,   129,   130,     0,     0,   131,     0,
     132,     0,     0,   133,   134,   135,   136,   137,   138,   139,
     140,     0,   387,   127,   128,   129,   130,     0,     0,   388,
       0,   132,     0,   141,   389,   134,   390,   136,   137,   138,
     139,   140,   142,     0,     0,   143,     0,   105,     0,     0,
       0,   144,     0,     0,   141,     5,   127,   128,   129,   130,
       0,     0,     0,   142,     0,     0,   143,     0,   105,     0,
       0,     0,   144,     0,     5,   127,   128,   129,   130,     5,
     127,   128,   129,   130,     0,     0,     0,   141,     0,   191,
     192,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   377,   194,   141,     0,   191,   192,
       0,   141,     0,   191,   192,     0,     0,     0,     0,     0,
       0,     0,     0,   412,   194,     0,     0,     0,     0,   194
};

static const yytype_int16 yycheck[] =
{
       1,   149,   141,   230,   193,   256,    60,   116,   332,    10,
     289,    45,   348,    47,   350,     8,   105,    83,    52,     0,
     432,   130,    32,    57,   230,    91,    46,    46,    52,    28,
      84,    51,    51,    57,    30,   352,   105,   323,     3,     4,
       5,     6,     7,     3,    45,   134,    47,    40,    82,    59,
       0,    52,   191,   192,     3,    51,    57,   419,    82,    60,
     149,   473,    43,    44,    45,   134,    47,   346,    33,   320,
      35,     3,   358,   141,   140,     3,    36,     3,     3,   415,
     149,    82,   116,    84,    33,    34,   103,   366,    53,    53,
     369,   108,   105,    43,    44,    45,   130,    47,   460,   461,
      64,    33,   419,     9,   105,    33,    70,    33,     0,    70,
     472,    70,    29,    46,   476,   116,     3,    35,    51,    25,
      53,   134,    86,   191,   192,    86,     3,    86,    46,   130,
       3,   185,   221,    51,   273,    47,   149,    49,    35,   328,
     141,   230,   466,   460,   461,    42,    35,    47,   149,    46,
      26,   357,   221,   262,    51,   472,    53,    46,    27,   476,
      42,   230,    51,    43,    44,    45,   348,   256,   350,    51,
       3,     4,     5,     6,     7,   105,    26,    42,    46,    47,
      46,    46,    46,    47,   185,    42,    51,   256,    53,    46,
     191,   192,    47,   194,    51,   422,    53,    48,    49,    23,
      24,   255,    35,    49,   134,   273,   274,   275,   221,   277,
     278,   279,   280,   281,   282,   283,   422,   230,   134,   149,
      53,     3,     4,     5,     6,     7,   432,    50,   262,   230,
      48,   320,    43,    44,    45,    43,    44,    45,    51,    50,
      47,    48,    50,   256,     3,    43,    44,    45,    13,    14,
      51,   320,    50,     3,   255,   256,    38,   105,    49,    52,
      50,   262,    46,   352,   332,   354,    52,   473,   357,   323,
      53,    53,   273,   274,   275,   276,   277,   278,   279,   280,
     281,   282,   283,   352,    52,   354,   134,    53,   357,    30,
      52,   221,     3,   359,    52,    55,   362,   436,    53,    53,
     230,   149,   450,     3,   358,   221,    53,   320,    43,    44,
      45,   379,    50,    53,    53,    50,    47,    47,   105,   320,
      46,    42,   323,    51,    42,    35,   256,    35,    42,    49,
     419,   332,    48,   422,   423,    36,    39,    41,    37,   352,
     429,   354,    57,   432,   357,    58,    31,   134,     3,    56,
     419,    53,    15,   422,   423,    47,    47,   358,    47,    47,
     429,   450,   149,   432,    23,    48,     3,   433,   436,    48,
      54,   460,   461,   221,    54,    50,   465,    50,   379,    48,
      51,   450,   230,   472,   473,    47,    54,   476,    53,    53,
     320,   460,   461,    54,    54,    48,   465,    54,   466,    53,
      24,    52,    54,   472,   473,    54,   419,   476,   256,   422,
     423,    53,    48,    52,    54,    53,   429,    50,    53,   432,
      51,   422,   352,    51,   354,    55,    51,   357,   429,    49,
      52,    54,    50,    54,   221,   436,   352,   450,   354,    51,
      54,    52,    55,   230,    53,    53,    53,   460,   461,   450,
      11,    11,   465,    54,    47,    54,    54,    54,    52,   472,
     473,    50,    47,   476,    55,   466,    47,   141,    54,   256,
      54,    54,   320,    47,    50,    55,     3,     4,     5,     6,
       7,    54,    11,    47,    54,    25,    28,    12,    84,   419,
     146,    86,   422,   423,   261,   122,    78,    64,   255,   429,
     276,   422,   432,   419,   352,   429,   354,   423,    35,   357,
      37,    38,   427,   427,   462,   473,   429,   191,   192,   288,
     450,    48,    49,   459,   305,   274,    53,   137,   279,   275,
     460,   461,   277,   320,   278,   465,   379,   280,    -1,   281,
      -1,    -1,   472,   473,   460,   461,   476,   283,   123,   465,
     282,    -1,    -1,    -1,    -1,    -1,   472,   254,    -1,    -1,
     476,    -1,    -1,   138,   139,   352,    -1,   354,    -1,   144,
     357,   419,    -1,    -1,   422,   423,    -1,    -1,    -1,    -1,
      -1,   429,    -1,    -1,   432,    -1,    -1,    -1,     3,     4,
       5,     6,     7,    -1,    -1,    -1,    -1,    -1,    -1,   273,
     274,   275,   450,   277,   278,   279,   280,   281,   282,   283,
      -1,    -1,   460,   461,    -1,    -1,    -1,   465,   193,   194,
      35,    -1,    37,    38,   472,   473,    -1,    -1,   476,    -1,
      -1,    -1,   419,    -1,    49,   422,   423,    -1,    53,    -1,
      -1,    -1,   429,    -1,    -1,   432,    -1,    -1,    -1,    -1,
      -1,   226,   227,   228,    -1,    -1,    -1,    -1,   332,    -1,
      -1,    -1,    -1,   450,    -1,    -1,    -1,   242,    -1,   244,
      -1,    -1,    -1,   460,   461,    -1,    -1,   252,   465,    -1,
      -1,    -1,    -1,    -1,    -1,   472,   473,    -1,    -1,   476,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   272,    -1,    -1,
       3,     4,     5,     6,     7,   379,    -1,    -1,    -1,   284,
      -1,     3,     4,     5,     6,     7,    -1,    -1,    10,    -1,
      12,    13,    14,    15,    16,    17,    18,    19,    20,    21,
      22,    -1,    35,    -1,    37,    38,    -1,    -1,    -1,    -1,
      -1,    33,    -1,    35,    47,    -1,    -1,    -1,    -1,    -1,
      53,    -1,    44,   328,    -1,    47,   331,    49,    -1,    -1,
      -1,    53,   436,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   347,    -1,     3,     4,     5,     6,     7,    -1,
     355,   356,     3,     4,     5,     6,     7,    -1,    -1,    10,
     365,    12,   466,    -1,    15,    16,    17,    18,    19,    20,
      21,    22,    -1,    -1,    33,    -1,    35,   382,    37,    38,
      -1,    -1,    33,    -1,    35,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    44,    53,    -1,    47,    -1,    49,    -1,
      -1,    -1,    53,    -1,    -1,    -1,    -1,    -1,    -1,     3,
       4,     5,     6,     7,    -1,   420,   421,    -1,    -1,   424,
       3,     4,     5,     6,     7,    -1,    -1,    10,    -1,    12,
      -1,    -1,    15,    16,    17,    18,    19,    20,    21,    22,
      -1,    35,    -1,    37,    38,    -1,    -1,    -1,    -1,    -1,
      33,    -1,    35,    -1,    -1,    -1,    -1,   462,    52,    53,
      -1,    44,    -1,    -1,    47,    -1,    49,    -1,    -1,    -1,
      53,     3,     4,     5,     6,     7,    -1,    -1,    10,    -1,
      12,    -1,    -1,    15,    16,    17,    18,    19,    20,    21,
      22,    -1,     3,     4,     5,     6,     7,    -1,    -1,    10,
      -1,    12,    -1,    35,    15,    16,    17,    18,    19,    20,
      21,    22,    44,    -1,    -1,    47,    -1,    49,    -1,    -1,
      -1,    53,    -1,    -1,    35,     3,     4,     5,     6,     7,
      -1,    -1,    -1,    44,    -1,    -1,    47,    -1,    49,    -1,
      -1,    -1,    53,    -1,     3,     4,     5,     6,     7,     3,
       4,     5,     6,     7,    -1,    -1,    -1,    35,    -1,    37,
      38,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    52,    53,    35,    -1,    37,    38,
      -1,    35,    -1,    37,    38,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    52,    53,    -1,    -1,    -1,    -1,    53
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const yytype_uint8 yystos[] =
{
       0,    28,    61,    68,    74,     3,    65,    66,    67,     0,
      29,    69,    71,    75,    76,    77,    46,    47,    65,    43,
      44,    45,    47,    62,    63,    64,    70,    72,    73,    78,
     110,    75,     3,    46,    47,     9,    25,    62,    72,    36,
       3,     3,    47,   111,    79,    26,   112,    26,    80,    65,
     124,   126,    48,    49,   113,   124,   125,    27,    81,   126,
      63,    88,    94,   114,   115,   116,   117,   118,    82,   126,
      49,    83,    33,    34,    65,   123,   124,   127,   128,    47,
      50,   116,    48,    43,    63,    84,    85,    86,    87,    88,
      93,    94,   103,   104,    51,     3,    95,    51,    51,     3,
      89,    90,    91,    95,   126,    49,   129,    66,   105,    50,
      86,    47,   102,   129,    52,    53,    30,    51,   100,    52,
      52,    47,    48,    42,    51,   100,     3,     4,     5,     6,
       7,    10,    12,    15,    16,    17,    18,    19,    20,    21,
      22,    35,    44,    47,    53,    65,   128,   129,   130,   131,
     132,   133,   134,   135,   137,   138,   139,   141,   142,   143,
     144,   146,   153,   155,   156,   165,   166,   167,   168,   169,
     170,   176,   177,   178,   181,   188,   189,   190,   191,   192,
     194,   211,   212,    53,   100,    96,   101,   125,    52,     3,
      90,    37,    38,    49,    53,    65,    92,   119,   175,   178,
     189,   191,   192,   193,   194,   195,   197,   200,   201,   202,
     203,   204,   205,   206,   207,   208,   209,   210,   212,   213,
      52,    55,    46,    33,    65,   125,    53,    53,    53,   135,
      53,     3,   164,   164,    47,   175,   175,   129,    65,   188,
     190,   193,    53,   175,    51,    53,    89,    50,   132,    47,
      47,    46,    51,    35,    42,   106,    49,   107,    97,    98,
      99,   128,    48,   193,   193,    48,    92,   121,   122,    33,
      65,   175,    51,    36,    37,    39,     8,    40,    41,    56,
      57,    58,    31,    32,    59,   135,     3,   183,   182,    53,
     175,   175,   175,    15,   134,   142,   158,   161,   163,    47,
      47,    47,    47,    23,   171,   172,   173,   175,    54,   175,
     175,   179,   180,     3,   175,   213,    97,     4,     5,   108,
     109,   130,    54,    48,    91,   125,    50,    50,    48,   120,
     198,    51,    54,   193,   200,   201,    33,   123,   202,   203,
     204,   205,   206,   207,   208,   175,    53,    51,   184,   185,
     184,   179,    54,    54,    54,    53,    47,    48,    53,    24,
     174,   173,    54,    52,    54,    48,    53,    52,    54,    53,
     130,    50,    99,    92,    51,   186,   187,    52,   195,    55,
     179,   175,    51,   185,   186,   186,    54,     3,    10,    15,
      17,   135,   136,   137,   140,   145,   154,   157,    49,   147,
     135,   175,   160,   175,   142,    99,   129,   129,   175,   179,
     179,    50,    52,    54,    51,   199,   210,    54,    52,    55,
      53,    53,    53,    11,    13,    14,   148,   149,   150,   151,
     152,    54,    47,    54,    54,    54,   196,    52,   186,   136,
     175,   175,   158,   135,   175,   214,    55,    50,   148,   150,
     131,   152,    47,   159,   162,   163,   129,    47,   193,    54,
      54,    54,    47,    55,    50,    54,   196,   136,   136,   160,
     135,   195,    11,    47,   136,   159,    54,   136
};

#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 3:
#line 160 "java.y"
    {(yyval.modifier) = (yyvsp[(1) - (1)].modifier);;}
    break;

  case 4:
#line 161 "java.y"
    {(yyval.modifier) = (yyvsp[(1) - (1)].modifier);;}
    break;

  case 5:
#line 162 "java.y"
    {(yyval.modifier) = (yyvsp[(1) - (1)].modifier);;}
    break;

  case 6:
#line 165 "java.y"
    {(yyval.modifier) = 0;;}
    break;

  case 7:
#line 166 "java.y"
    {(yyval.modifier) = (yyvsp[(1) - (1)].modifier);;}
    break;

  case 8:
#line 169 "java.y"
    {(yyval.modifier) = (yyvsp[(1) - (1)].modifier);;}
    break;

  case 9:
#line 170 "java.y"
    {
             REPORT( (yyvsp[(1) - (2)].modifier) & (yyvsp[(2) - (2)].modifier) , ER_REPEATED_MODIFIER);
             (yyval.modifier) = (yyvsp[(1) - (2)].modifier) | (yyvsp[(2) - (2)].modifier); ;}
    break;

  case 10:
#line 178 "java.y"
    {(yyval.expr) = new IdentifierExpression((yyvsp[(1) - (1)].id)); ;}
    break;

  case 11:
#line 179 "java.y"
    {(yyval.expr) = (yyvsp[(1) - (1)].expr); ;}
    break;

  case 13:
#line 182 "java.y"
    { (yyval.expr) = new FieldExpression((yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].id)); ;}
    break;

  case 15:
#line 189 "java.y"
    {;}
    break;

  case 16:
#line 190 "java.y"
    {;}
    break;

  case 17:
#line 191 "java.y"
    {;}
    break;

  case 18:
#line 192 "java.y"
    {;}
    break;

  case 23:
#line 201 "java.y"
    {(yyval.clazz) = 0;;}
    break;

  case 26:
#line 208 "java.y"
    {env.pkg = new Package((yyvsp[(2) - (3)].expr)); ;}
    break;

  case 27:
#line 209 "java.y"
    {env.pkg = new Package(0); ;}
    break;

  case 30:
#line 216 "java.y"
    {env.pkg->imports.add((yyvsp[(2) - (3)].expr)) ;}
    break;

  case 31:
#line 218 "java.y"
    {
  assert((yyvsp[(4) - (5)].opval) == MUL);
  env.pkg->imports.add( new FieldExpression((yyvsp[(2) - (5)].expr), Identifier::star) );
;}
    break;

  case 32:
#line 226 "java.y"
    {env.addNewClass(new Class((yyvsp[(3) - (3)].id),(yyvsp[(1) - (3)].modifier)));;}
    break;

  case 33:
#line 227 "java.y"
    {;}
    break;

  case 34:
#line 229 "java.y"
    {env.clazz->super = Type::Object; ;}
    break;

  case 35:
#line 230 "java.y"
    {env.clazz->super = (yyvsp[(2) - (2)].type);;}
    break;

  case 36:
#line 232 "java.y"
    {;}
    break;

  case 37:
#line 233 "java.y"
    {;}
    break;

  case 38:
#line 235 "java.y"
    {env.clazz->interfaces.add((yyvsp[(1) - (1)].type)); ;}
    break;

  case 39:
#line 236 "java.y"
    {env.clazz->interfaces.add((yyvsp[(3) - (3)].type)); ;}
    break;

  case 50:
#line 254 "java.y"
    {
  env.clazz->fields.add( 
    new DeclarationStatement((yyvsp[(1) - (4)].modifier),new TypeExpression((yyvsp[(2) - (4)].type)), 
                                new ExpressionStatement((yyvsp[(3) - (4)].exprs)->first))); 
;}
    break;

  case 51:
#line 262 "java.y"
    { (yyval.exprs) = new ExprList((yyvsp[(1) - (1)].expr)); ;}
    break;

  case 52:
#line 263 "java.y"
    {(yyval.exprs)=(yyvsp[(1) - (3)].exprs); (yyval.exprs)->add((yyvsp[(3) - (3)].expr)); ;}
    break;

  case 53:
#line 267 "java.y"
    { (yyval.expr) = (yyvsp[(1) - (1)].expr); ;}
    break;

  case 54:
#line 268 "java.y"
    {
  assert((yyvsp[(2) - (3)].opval) == ASSIGN);  
  (yyvsp[(1) - (3)].expr) = new BinaryAssignExpression(ASSIGN, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr));
;}
    break;

  case 55:
#line 274 "java.y"
    { (yyval.expr) = new IdentifierExpression((yyvsp[(1) - (1)].id)); ;}
    break;

  case 56:
#line 275 "java.y"
    { (yyval.expr) = new ArrayAccessExpression((yyvsp[(1) - (3)].expr),0); ;}
    break;

  case 57:
#line 277 "java.y"
    {(yyval.expr) = (yyvsp[(1) - (1)].expr); ;}
    break;

  case 58:
#line 278 "java.y"
    {(yyval.expr) = (yyvsp[(1) - (1)].expr);;}
    break;

  case 59:
#line 283 "java.y"
    {
  env.method->body = (yyvsp[(2) - (2)].stmt);
;}
    break;

  case 60:
#line 288 "java.y"
    {env.method->modifiers = (yyvsp[(1) - (4)].modifier); env.method->type = (yyvsp[(2) - (4)].type);;}
    break;

  case 61:
#line 290 "java.y"
    {env.method->modifiers = (yyvsp[(1) - (4)].modifier); env.method->type = (yyvsp[(2) - (4)].type);;}
    break;

  case 62:
#line 293 "java.y"
    {env.addMethod( new Method((yyvsp[(1) - (2)].id)) ); ;}
    break;

  case 64:
#line 295 "java.y"
    {++env.method->dims;;}
    break;

  case 65:
#line 297 "java.y"
    {;}
    break;

  case 66:
#line 297 "java.y"
    {;}
    break;

  case 67:
#line 299 "java.y"
    {;}
    break;

  case 68:
#line 300 "java.y"
    {;}
    break;

  case 69:
#line 302 "java.y"
    {
  env.method->params.add(new Parameter((yyvsp[(2) - (2)].expr), (yyvsp[(1) - (2)].type)));
;}
    break;

  case 72:
#line 308 "java.y"
    {env.method->throwz.add((yyvsp[(1) - (1)].type)); ;}
    break;

  case 73:
#line 309 "java.y"
    {env.method->throwz.add((yyvsp[(3) - (3)].type)); ;}
    break;

  case 74:
#line 310 "java.y"
    {(yyval.stmt) = (yyvsp[(1) - (1)].stmt);;}
    break;

  case 75:
#line 311 "java.y"
    {(yyval.stmt) = env.empty_block;;}
    break;

  case 76:
#line 315 "java.y"
    {env.clazz->inits.add((yyvsp[(2) - (2)].stmt)); ;}
    break;

  case 77:
#line 320 "java.y"
    {
    env.method -> modifiers = (yyvsp[(1) - (4)].modifier);
    env.method -> type = Type::Void;
    env.method ->body = (yyvsp[(4) - (4)].stmt);
;}
    break;

  case 78:
#line 327 "java.y"
    {env.method = new Method((yyvsp[(1) - (2)].id)); ;}
    break;

  case 80:
#line 331 "java.y"
    { (yyval.stmt) = new CompoundStatement( (yyvsp[(2) - (4)].stmt)->glue((yyvsp[(3) - (4)].stmt)) ); ;}
    break;

  case 81:
#line 332 "java.y"
    { (yyval.stmt) = new CompoundStatement((yyvsp[(2) - (3)].stmt)); ;}
    break;

  case 84:
#line 336 "java.y"
    {
  (yyval.stmt) = new ExpressionStatement(
             new MethodExpression((yyvsp[(1) - (5)].expr), Identifier::init, (yyvsp[(3) - (5)].expr))); 
;}
    break;

  case 85:
#line 344 "java.y"
    {
    env.addNewClass(new Class((yyvsp[(3) - (3)].id),(yyvsp[(1) - (3)].modifier) | ACC_INTERFACE));;}
    break;

  case 87:
#line 348 "java.y"
    {env.clazz->interfaces.add((yyvsp[(2) - (2)].type)); ;}
    break;

  case 88:
#line 349 "java.y"
    {env.clazz->interfaces.add((yyvsp[(3) - (3)].type)); ;}
    break;

  case 98:
#line 373 "java.y"
    {(yyval.expr) = new ArrayExpression(0); ;}
    break;

  case 99:
#line 374 "java.y"
    {(yyval.expr) = new ArrayExpression((yyvsp[(2) - (3)].exprs)->first);;}
    break;

  case 102:
#line 377 "java.y"
    {(yyval.exprs) = new ExprList(); ;}
    break;

  case 103:
#line 378 "java.y"
    {(yyval.exprs) = (yyvsp[(1) - (2)].exprs);;}
    break;

  case 104:
#line 380 "java.y"
    {(yyval.exprs) = new ExprList((yyvsp[(1) - (1)].expr)); ;}
    break;

  case 105:
#line 381 "java.y"
    {(yyval.exprs)=(yyvsp[(1) - (3)].exprs); (yyvsp[(1) - (3)].exprs)->add((yyvsp[(3) - (3)].expr)); ;}
    break;

  case 108:
#line 389 "java.y"
    {(yyval.type) = Type::NewClass((yyvsp[(1) - (1)].expr)->toIdent()); ;}
    break;

  case 111:
#line 393 "java.y"
    {(yyval.type) = Type::NewArray((yyvsp[(1) - (3)].type)); ;}
    break;

  case 112:
#line 394 "java.y"
    { (yyval.type) = Type::NewArray(Type::NewClass((yyvsp[(1) - (3)].expr)->toIdent())); ;}
    break;

  case 113:
#line 395 "java.y"
    {(yyval.type) = Type::NewArray((yyvsp[(1) - (3)].type)); ;}
    break;

  case 116:
#line 399 "java.y"
    {(yyval.stmt) = new CompoundStatement((yyvsp[(2) - (3)].stmt)); ;}
    break;

  case 117:
#line 401 "java.y"
    {(yyval.stmt) = 0;;}
    break;

  case 118:
#line 402 "java.y"
    {(yyval.stmt) = (yyvsp[(1) - (1)].stmts)->first; ;}
    break;

  case 119:
#line 404 "java.y"
    {(yyval.stmts) = new StmtList((yyvsp[(1) - (1)].stmt)); ;}
    break;

  case 120:
#line 405 "java.y"
    {(yyval.stmts) = (yyvsp[(1) - (2)].stmts); (yyval.stmts)->add((yyvsp[(2) - (2)].stmt)); ;}
    break;

  case 124:
#line 413 "java.y"
    {
     (yyval.stmt) = new DeclarationStatement(0,new TypeExpression((yyvsp[(1) - (2)].type)),
                 new ExpressionStatement((yyvsp[(2) - (2)].exprs)->first)); ;}
    break;

  case 147:
#line 443 "java.y"
    {(yyval.stmt) = new EmptyStatement(); ;}
    break;

  case 148:
#line 445 "java.y"
    {(yyval.stmt) = (yyvsp[(3) - (3)].stmt); (yyval.stmt)->addLabel((yyvsp[(1) - (3)].id)); ;}
    break;

  case 149:
#line 448 "java.y"
    {(yyval.stmt) = (yyvsp[(3) - (3)].stmt); (yyval.stmt)->addLabel((yyvsp[(1) - (3)].id));;}
    break;

  case 150:
#line 451 "java.y"
    {(yyval.stmt) = new ExpressionStatement((yyvsp[(1) - (2)].expr)); ;}
    break;

  case 156:
#line 460 "java.y"
    {(yyval.stmt)=new IfStatement((yyvsp[(3) - (5)].expr),(yyvsp[(5) - (5)].stmt),0);;}
    break;

  case 157:
#line 463 "java.y"
    {(yyval.stmt)=new IfStatement((yyvsp[(3) - (7)].expr),(yyvsp[(5) - (7)].stmt),(yyvsp[(7) - (7)].stmt));;}
    break;

  case 158:
#line 466 "java.y"
    {(yyval.stmt)=new IfStatement((yyvsp[(3) - (7)].expr),(yyvsp[(5) - (7)].stmt),(yyvsp[(7) - (7)].stmt));;}
    break;

  case 159:
#line 470 "java.y"
    {(yyval.stmt) = new SwitchStatement((yyvsp[(3) - (5)].expr),(yyvsp[(5) - (5)].stmt));}
    break;

  case 160:
#line 474 "java.y"
    {(yyval.stmt)=new CompoundStatement((yyvsp[(2) - (4)].stmts)->first);;}
    break;

  case 161:
#line 475 "java.y"
    {(yyval.stmt)=new CompoundStatement(0);;}
    break;

  case 163:
#line 477 "java.y"
    {;}
    break;

  case 164:
#line 480 "java.y"
    {(yyval.stmts) = (yyvsp[(1) - (1)].stmts);;}
    break;

  case 165:
#line 482 "java.y"
    {(yyval.stmts)=(yyvsp[(1) - (2)].stmts); (yyval.stmts)->glueList((yyvsp[(1) - (2)].stmts)); ;}
    break;

  case 166:
#line 485 "java.y"
    {(yyval.stmts)=(yyvsp[(1) - (2)].stmts); (yyval.stmts)->glueList((yyvsp[(1) - (2)].stmts)); ;}
    break;

  case 167:
#line 487 "java.y"
    {(yyval.stmts) = new StmtList((yyvsp[(1) - (1)].stmt)); ;}
    break;

  case 168:
#line 488 "java.y"
    {(yyval.stmts)=(yyvsp[(1) - (2)].stmts); (yyval.stmts)->add((yyvsp[(2) - (2)].stmt));;}
    break;

  case 169:
#line 490 "java.y"
    {(yyval.stmt) = new CaseStatement((yyvsp[(2) - (3)].expr)); ;}
    break;

  case 170:
#line 491 "java.y"
    {(yyval.stmt) = new CaseStatement(0); ;}
    break;

  case 171:
#line 494 "java.y"
    {(yyval.stmt) = new WhileStatement((yyvsp[(3) - (5)].expr),(yyvsp[(5) - (5)].stmt));;}
    break;

  case 172:
#line 497 "java.y"
    {(yyval.stmt) = new WhileStatement((yyvsp[(3) - (5)].expr),(yyvsp[(5) - (5)].stmt));;}
    break;

  case 173:
#line 500 "java.y"
    {(yyval.stmt) = new DoStatement((yyvsp[(2) - (7)].stmt),(yyvsp[(5) - (7)].expr));;}
    break;

  case 174:
#line 503 "java.y"
    {(yyval.stmt) = new ForStatement((yyvsp[(3) - (9)].stmt),(yyvsp[(5) - (9)].expr),(yyvsp[(7) - (9)].expr),(yyvsp[(9) - (9)].stmt)); ;}
    break;

  case 175:
#line 507 "java.y"
    {(yyval.stmt) = new ForStatement((yyvsp[(3) - (9)].stmt),(yyvsp[(5) - (9)].expr),(yyvsp[(7) - (9)].expr),(yyvsp[(9) - (9)].stmt)); ;}
    break;

  case 176:
#line 509 "java.y"
    {(yyval.stmt) = 0;;}
    break;

  case 178:
#line 510 "java.y"
    {(yyval.expr) = 0;;}
    break;

  case 180:
#line 511 "java.y"
    {(yyval.expr) = 0;;}
    break;

  case 182:
#line 513 "java.y"
    {(yyval.stmt) = new ExpressionStatement((yyvsp[(1) - (1)].expr)); ;}
    break;

  case 183:
#line 514 "java.y"
    {(yyval.stmt) = (yyvsp[(1) - (1)].stmt);;}
    break;

  case 185:
#line 518 "java.y"
    {(yyval.expr) = (yyvsp[(1) - (1)].expr); ;}
    break;

  case 186:
#line 520 "java.y"
    {(yyval.expr) = new CommaExpression((yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); ;}
    break;

  case 187:
#line 522 "java.y"
    {(yyval.id) = Identifier::nullstr;}
    break;

  case 188:
#line 522 "java.y"
    {(yyval.id) = (yyvsp[(1) - (1)].id);;}
    break;

  case 189:
#line 524 "java.y"
    {(yyval.stmt) = new BreakStatement((yyvsp[(2) - (3)].id)); ;}
    break;

  case 190:
#line 526 "java.y"
    {(yyval.stmt) = new ContinueStatement((yyvsp[(2) - (3)].id)); ;}
    break;

  case 191:
#line 528 "java.y"
    {(yyval.stmt) = new ReturnStatement(0); ;}
    break;

  case 192:
#line 529 "java.y"
    {(yyval.stmt) = new ReturnStatement((yyvsp[(2) - (3)].expr)); ;}
    break;

  case 193:
#line 531 "java.y"
    {(yyval.stmt) = new ThrowStatement((yyvsp[(2) - (3)].expr)); ;}
    break;

  case 194:
#line 534 "java.y"
    {(yyval.stmt) = new SynchronizedStatement((yyvsp[(3) - (5)].expr), (yyvsp[(5) - (5)].stmt)); ;}
    break;

  case 195:
#line 536 "java.y"
    {(yyval.stmt) = (yyvsp[(2) - (3)].stmt);;}
    break;

  case 196:
#line 537 "java.y"
    {(yyval.stmt) = (yyvsp[(2) - (4)].stmt); ;}
    break;

  case 208:
#line 557 "java.y"
    {(yyval.expr) = new ExprExpression((yyvsp[(2) - (3)].expr)); ;}
    break;

  case 213:
#line 564 "java.y"
    {(yyval.expr) = new NewInstanceExpression((yyvsp[(2) - (5)].type), (yyvsp[(4) - (5)].expr)); ;}
    break;

  case 214:
#line 566 "java.y"
    {(yyval.expr) = 0;;}
    break;

  case 215:
#line 567 "java.y"
    {(yyval.expr) = (yyvsp[(1) - (1)].exprs)->first; ;}
    break;

  case 216:
#line 568 "java.y"
    {(yyval.exprs) = new ExprList((yyvsp[(1) - (1)].expr)); ;}
    break;

  case 217:
#line 569 "java.y"
    {(yyval.exprs) = (yyvsp[(1) - (3)].exprs); (yyval.exprs)->add((yyvsp[(3) - (3)].expr)); ;}
    break;

  case 218:
#line 571 "java.y"
    {env.arrayElem = (yyvsp[(2) - (2)].expr);;}
    break;

  case 220:
#line 572 "java.y"
    {env.arrayElem = new TypeExpression((yyvsp[(2) - (2)].type));;}
    break;

  case 224:
#line 575 "java.y"
    {
  env.arrayElem = new ArrayGenerateExpression(env.arrayElem, (yyvsp[(2) - (3)].expr)); ;}
    break;

  case 227:
#line 580 "java.y"
    {env.arrayElem = new ArrayGenerateExpression(env.arrayElem, 0);;}
    break;

  case 228:
#line 581 "java.y"
    {env.arrayElem = new ArrayGenerateExpression(env.arrayElem, 0);;}
    break;

  case 229:
#line 583 "java.y"
    {(yyval.expr) = new FieldExpression((yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].id)); ;}
    break;

  case 230:
#line 584 "java.y"
    {(yyval.expr) = new FieldExpression((yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].id)); ;}
    break;

  case 231:
#line 587 "java.y"
    {(yyval.expr) = new MethodExpression((yyvsp[(1) - (6)].expr),(yyvsp[(3) - (6)].id),(yyvsp[(5) - (6)].expr)); ;}
    break;

  case 232:
#line 589 "java.y"
    {(yyval.expr) = new MethodExpression((yyvsp[(1) - (4)].expr),(yyvsp[(3) - (4)].expr)); ;}
    break;

  case 233:
#line 591 "java.y"
    {(yyval.expr) = new MethodExpression((yyvsp[(1) - (6)].expr),(yyvsp[(3) - (6)].id),(yyvsp[(5) - (6)].expr)); ;}
    break;

  case 234:
#line 595 "java.y"
    {(yyval.expr) = new ArrayAccessExpression((yyvsp[(1) - (4)].expr),(yyvsp[(3) - (4)].expr)); ;}
    break;

  case 235:
#line 597 "java.y"
    {(yyval.expr) = new ArrayAccessExpression((yyvsp[(1) - (4)].expr),(yyvsp[(3) - (4)].expr)); ;}
    break;

  case 239:
#line 603 "java.y"
    { (yyval.expr) = new PostIncDecExpression((yyvsp[(2) - (2)].opval),(yyvsp[(1) - (2)].expr)); ;}
    break;

  case 240:
#line 605 "java.y"
    {(yyval.expr) = new NegPosExpression((yyvsp[(1) - (2)].opval), (yyvsp[(2) - (2)].expr)); ;}
    break;

  case 243:
#line 609 "java.y"
    {(yyval.expr) = new PreIncDecExpression((yyvsp[(1) - (2)].opval),(yyvsp[(2) - (2)].expr)); ;}
    break;

  case 245:
#line 612 "java.y"
    {(yyval.expr) = new UnaryExpression((yyvsp[(1) - (2)].opval), (yyvsp[(2) - (2)].expr)->type, (yyvsp[(2) - (2)].expr)); ;}
    break;

  case 247:
#line 615 "java.y"
    {(yyval.expr) = env.arrayElem; ;}
    break;

  case 248:
#line 617 "java.y"
    {env.arrayElem = new TypeExpression((yyvsp[(2) - (2)].type));;}
    break;

  case 249:
#line 618 "java.y"
    {(yyval.expr) = new CastExpression((yyvsp[(6) - (7)].expr),(yyvsp[(7) - (7)].expr)); ;}
    break;

  case 250:
#line 620 "java.y"
    {env.arrayElem = new ArrayGenerateExpression((yyvsp[(2) - (4)].expr),0);;}
    break;

  case 251:
#line 621 "java.y"
    {(yyval.expr) = new CastExpression((yyvsp[(8) - (9)].expr),(yyvsp[(9) - (9)].expr)); ;}
    break;

  case 252:
#line 622 "java.y"
    {(yyval.expr) = new CastExpression((yyvsp[(2) - (4)].expr),(yyvsp[(4) - (4)].expr)); ;}
    break;

  case 254:
#line 625 "java.y"
    {(yyval.expr) = new BinaryArithmeticExpression((yyvsp[(2) - (3)].opval),(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr)); ;}
    break;

  case 256:
#line 628 "java.y"
    {(yyval.expr) = new BinaryArithmeticExpression((yyvsp[(2) - (3)].opval),(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr)); ;}
    break;

  case 258:
#line 631 "java.y"
    {(yyval.expr) = new BinaryShiftExpression((yyvsp[(2) - (3)].opval),(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr)); ;}
    break;

  case 260:
#line 634 "java.y"
    {(yyval.expr) = new BinaryCompareExpression((yyvsp[(2) - (3)].opval),(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr)); ;}
    break;

  case 261:
#line 636 "java.y"
    {(yyval.expr) = new InstanceOfExpression((yyvsp[(1) - (3)].expr), new TypeExpression((yyvsp[(3) - (3)].type)) ); ;}
    break;

  case 263:
#line 639 "java.y"
    {(yyval.expr) = new BinaryEqualityExpression((yyvsp[(2) - (3)].opval),(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr)); ;}
    break;

  case 265:
#line 642 "java.y"
    {(yyval.expr) = new BinaryBitExpression(BITAND,(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr));;}
    break;

  case 267:
#line 645 "java.y"
    {(yyval.expr) = new BinaryBitExpression(BITXOR,(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr));;}
    break;

  case 269:
#line 648 "java.y"
    {(yyval.expr) = new BinaryBitExpression(BITOR,(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr));;}
    break;

  case 271:
#line 651 "java.y"
    {(yyval.expr) = new BinaryLogicalExpression(AND,(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr));;}
    break;

  case 273:
#line 654 "java.y"
    {(yyval.expr) = new BinaryLogicalExpression(OR,(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr));;}
    break;

  case 275:
#line 657 "java.y"
    {(yyval.expr) = new ConditionalExpression((yyvsp[(1) - (5)].expr),(yyvsp[(3) - (5)].expr),(yyvsp[(5) - (5)].expr)); ;}
    break;

  case 279:
#line 662 "java.y"
    {(yyval.expr) = new BinaryAssignExpression((yyvsp[(2) - (3)].opval),(yyvsp[(1) - (3)].expr),(yyvsp[(3) - (3)].expr)); ;}
    break;


/* Line 1267 of yacc.c.  */
#line 2862 "parser.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 667 "java.y"


#include <stdio.h>
/*
void describe() {
  int i,d;
  static char* a[] = {"Default %s\n","[%s]","%s "};
  for(i = 1; i < sizeof(yytranslate)/sizeof(yytranslate[0]); ++i) {
    int yychar = YYTRANSLATE(i);
    int yyn = yypact[yystate] + yychar;
    if(yychar < 3) continue;
    if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar)
       {d = 0;}
    else {
      yyn = yytable[yyn];
      if(yyn == 0 || yyn == YYFLAG) continue;

      if( yyn < 0 ) d = 1;
      else d = 2;

      printf(a[d],yytname[yychar]);
    }
  }
}
*/
#include "scanner.c"

#ifdef YYBISON
const char* TokenName(int c) { return yytname[YYTRANSLATE(c)]; }
#else
const char* TokenName(int c) { return "Use Bison. Token Name unaccessible in Yacc";}
#endif

int main(int argc, char ** argv) {
  cout << "Main Begin" << endl;
#ifndef YYBISON
  printf("Please use bison (GNU's version of yacc)\n");
  printf("Please use bison (GNU's version of yacc)\n");
#else
  extern int yydebug;
#endif
  yydebug = argc == 2;
#ifdef YYBISON
  if (argc == 3) {
    int c; int curno = 0;
    printf("1:");
    while(c = yylex()) {
      if (curno != lineno) {printf("\n%d:",lineno); curno = lineno;}
      printf(" %s", TokenName(c));
    }
    printf("\n");
    return 0;
  }
#endif
  cout << "Before yyparse() " << endl;
  if(yyparse() == 0) printf("No Errors\n");
  cout << "----------- " << QuickNew::Avail() << endl;
  cout << env.pkg;
  QuickNew::finalize();
  cout << "After finalize" << endl;
}

int yyerror(char *s) {
  printf("Line %d: Unexpected token %s\n",lineno, TokenName(yychar));
  printf(s);
/*  printf("Possible alternative(s) is(are):");
  describe(); */
  printf("\n");
  exit(1);
  return 0;
}

