
/*  A Bison parser, made from parse.y
 by  GNU Bison version 1.25
  */

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

#define	kCLASS	258
#define	kMODULE	259
#define	kDEF	260
#define	kUNDEF	261
#define	kBEGIN	262
#define	kRESCUE	263
#define	kENSURE	264
#define	kEND	265
#define	kIF	266
#define	kUNLESS	267
#define	kTHEN	268
#define	kELSIF	269
#define	kELSE	270
#define	kCASE	271
#define	kWHEN	272
#define	kWHILE	273
#define	kUNTIL	274
#define	kFOR	275
#define	kBREAK	276
#define	kNEXT	277
#define	kREDO	278
#define	kRETRY	279
#define	kIN	280
#define	kDO	281
#define	kDO_COND	282
#define	kDO_BLOCK	283
#define	kRETURN	284
#define	kYIELD	285
#define	kSUPER	286
#define	kSELF	287
#define	kNIL	288
#define	kTRUE	289
#define	kFALSE	290
#define	kAND	291
#define	kOR	292
#define	kNOT	293
#define	kIF_MOD	294
#define	kUNLESS_MOD	295
#define	kWHILE_MOD	296
#define	kUNTIL_MOD	297
#define	kRESCUE_MOD	298
#define	kALIAS	299
#define	kDEFINED	300
#define	klBEGIN	301
#define	klEND	302
#define	k__LINE__	303
#define	k__FILE__	304
#define	tIDENTIFIER	305
#define	tFID	306
#define	tGVAR	307
#define	tIVAR	308
#define	tCONSTANT	309
#define	tCVAR	310
#define	tINTEGER	311
#define	tFLOAT	312
#define	tSTRING	313
#define	tXSTRING	314
#define	tREGEXP	315
#define	tDSTRING	316
#define	tDXSTRING	317
#define	tDREGEXP	318
#define	tNTH_REF	319
#define	tBACK_REF	320
#define	tUPLUS	321
#define	tUMINUS	322
#define	tPOW	323
#define	tCMP	324
#define	tEQ	325
#define	tEQQ	326
#define	tNEQ	327
#define	tGEQ	328
#define	tLEQ	329
#define	tANDOP	330
#define	tOROP	331
#define	tMATCH	332
#define	tNMATCH	333
#define	tDOT2	334
#define	tDOT3	335
#define	tAREF	336
#define	tASET	337
#define	tLSHFT	338
#define	tRSHFT	339
#define	tCOLON2	340
#define	tCOLON3	341
#define	tOP_ASGN	342
#define	tASSOC	343
#define	tLPAREN	344
#define	tLBRACK	345
#define	tLBRACE	346
#define	tSTAR	347
#define	tAMPER	348
#define	tSYMBEG	349
#define	LAST_TOKEN	350

#line 13 "parse.y"


#define YYDEBUG 1
#include "ruby.h"
#include "env.h"
#include "node.h"
#include "st.h"
#include <stdio.h>
#include <errno.h>

#define ID_SCOPE_SHIFT 3
#define ID_SCOPE_MASK 0x07
#define ID_LOCAL    0x01
#define ID_INSTANCE 0x02
#define ID_GLOBAL   0x03
#define ID_ATTRSET  0x04
#define ID_CONST    0x05
#define ID_CLASS    0x06

#define is_notop_id(id) ((id)>LAST_TOKEN)
#define is_local_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_LOCAL)
#define is_global_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_GLOBAL)
#define is_instance_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_INSTANCE)
#define is_attrset_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_ATTRSET)
#define is_const_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CONST)
#define is_class_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CLASS)

NODE *ruby_eval_tree_begin = 0;
NODE *ruby_eval_tree = 0;

char *ruby_sourcefile;		/* current source file */
int   ruby_sourceline;		/* current line no. */

static int yylex();
static int yyerror();

static enum lex_state {
    EXPR_BEG,			/* ignore newline, +/- is a sign. */
    EXPR_END,			/* newline significant, +/- is a operator. */
    EXPR_ARG,			/* newline significant, +/- is a operator. */
    EXPR_MID,			/* newline significant, +/- is a operator. */
    EXPR_FNAME,			/* ignore newline, no reserved words. */
    EXPR_DOT,			/* right after `.' or `::', no reserved words. */
    EXPR_CLASS,			/* immediate after `class', no here document. */
} lex_state;

#if SIZEOF_LONG_LONG > 0
typedef unsigned long long stack_type;
#elif SIZEOF___INT64 > 0
typedef unsigned __int64 stack_type;
#else
typedef unsigned long stack_type;
#endif

static int cond_nest = 0;
static stack_type cond_stack = 0;
#define COND_PUSH do {\
    cond_nest++;\
    cond_stack = (cond_stack<<1)|1;\
} while(0)
#define COND_POP do {\
    cond_nest--;\
    cond_stack >>= 1;\
} while (0)
#define COND_P() (cond_nest > 0 && (cond_stack&1))

static stack_type cmdarg_stack = 0;
#define CMDARG_PUSH do {\
    cmdarg_stack = (cmdarg_stack<<1)|1;\
} while(0)
#define CMDARG_POP do {\
    cmdarg_stack >>= 1;\
} while (0)
#define CMDARG_P() (cmdarg_stack && (cmdarg_stack&1))

static int class_nest = 0;
static int in_single = 0;
static int in_def = 0;
static int compile_for_eval = 0;
static ID cur_mid = 0;

static NODE *cond();
static NODE *logop();

static NODE *newline_node();
static void fixpos();

static int value_expr();
static void void_expr();
static void void_stmts();

static NODE *block_append();
static NODE *list_append();
static NODE *list_concat();
static NODE *arg_concat();
static NODE *call_op();
static int in_defined = 0;

static NODE *arg_blk_pass();
static NODE *new_call();
static NODE *new_fcall();
static NODE *new_super();

static NODE *gettable();
static NODE *assignable();
static NODE *aryset();
static NODE *attrset();
static void rb_backref_error();
static NODE *node_assign();

static NODE *match_gen();
static void local_push();
static void local_pop();
static int  local_append();
static int  local_cnt();
static int  local_id();
static ID  *local_tbl();

static struct RVarmap *dyna_push();
static void dyna_pop();
static int dyna_in_block();

static void top_local_init();
static void top_local_setup();

#line 139 "parse.y"
typedef union {
    NODE *node;
    VALUE val;
    ID id;
    int num;
    struct RVarmap *vars;
} YYSTYPE;
#include <stdio.h>

#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif



#define	YYFINAL		736
#define	YYFLAG		-32768
#define	YYNTBASE	122

#define YYTRANSLATE(x) ((unsigned)(x) <= 350 ? yytranslate[x] : 231)

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

#if YYDEBUG != 0
static const short yyprhs[] = {     0,
     0,     1,     4,     7,     9,    11,    15,    18,    19,    24,
    28,    32,    36,    39,    43,    47,    51,    55,    59,    60,
    66,    71,    75,    79,    83,    85,    89,    92,    94,    98,
   102,   105,   108,   110,   112,   114,   116,   121,   126,   129,
   134,   139,   142,   145,   147,   151,   153,   157,   159,   162,
   166,   169,   172,   174,   176,   180,   183,   187,   189,   194,
   198,   202,   206,   208,   210,   215,   219,   223,   227,   229,
   231,   233,   235,   237,   239,   241,   243,   245,   247,   249,
   250,   255,   257,   259,   261,   263,   265,   267,   269,   271,
   273,   275,   277,   279,   281,   283,   285,   287,   289,   291,
   293,   295,   297,   299,   301,   303,   305,   307,   309,   311,
   313,   315,   317,   319,   321,   323,   325,   327,   329,   331,
   333,   335,   337,   339,   341,   343,   345,   347,   349,   351,
   353,   355,   357,   359,   361,   363,   365,   367,   369,   371,
   373,   375,   377,   379,   381,   383,   385,   387,   389,   393,
   394,   399,   406,   412,   418,   424,   428,   432,   436,   440,
   444,   448,   452,   456,   460,   463,   466,   470,   474,   478,
   482,   486,   490,   494,   498,   502,   506,   510,   514,   518,
   521,   524,   528,   532,   536,   540,   541,   546,   552,   554,
   556,   559,   564,   567,   573,   576,   580,   584,   589,   594,
   601,   603,   605,   607,   611,   614,   620,   623,   629,   634,
   642,   646,   648,   649,   652,   655,   658,   660,   662,   666,
   668,   670,   674,   679,   682,   684,   686,   688,   690,   692,
   694,   696,   698,   700,   707,   711,   715,   718,   723,   727,
   731,   736,   740,   742,   747,   751,   753,   754,   761,   764,
   766,   769,   776,   783,   784,   785,   793,   794,   795,   803,
   809,   814,   815,   816,   826,   827,   834,   835,   836,   845,
   846,   852,   853,   863,   864,   865,   878,   880,   882,   884,
   886,   888,   890,   893,   895,   897,   899,   905,   907,   910,
   912,   914,   916,   919,   921,   925,   926,   932,   935,   940,
   945,   948,   953,   958,   962,   965,   967,   968,   974,   975,
   981,   987,   989,   994,   997,   999,  1001,  1003,  1005,  1008,
  1010,  1017,  1019,  1021,  1024,  1026,  1028,  1030,  1032,  1034,
  1037,  1040,  1043,  1045,  1047,  1049,  1051,  1053,  1055,  1057,
  1059,  1061,  1063,  1065,  1067,  1069,  1071,  1073,  1075,  1077,
  1079,  1081,  1083,  1085,  1086,  1091,  1094,  1099,  1102,  1109,
  1114,  1119,  1122,  1127,  1130,  1133,  1135,  1136,  1138,  1140,
  1142,  1144,  1146,  1148,  1152,  1156,  1158,  1162,  1165,  1167,
  1170,  1173,  1175,  1177,  1178,  1184,  1186,  1189,  1192,  1194,
  1198,  1202,  1204,  1206,  1208,  1210,  1212,  1214,  1216,  1218,
  1220,  1222,  1224,  1226,  1227,  1229,  1230,  1232,  1233,  1235,
  1237,  1239,  1241,  1243,  1246
};

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

#endif

#if YYDEBUG != 0
static const short yyrline[] = { 0,
   264,   272,   290,   296,   297,   301,   305,   310,   311,   316,
   322,   331,   336,   342,   348,   354,   364,   374,   378,   385,
   392,   400,   405,   411,   415,   417,   423,   429,   430,   434,
   438,   443,   447,   449,   450,   452,   453,   458,   464,   469,
   475,   481,   488,   494,   495,   500,   501,   506,   510,   514,
   518,   522,   526,   531,   532,   537,   541,   546,   550,   554,
   558,   562,   566,   572,   576,   580,   584,   588,   592,   598,
   602,   604,   605,   606,   607,   612,   618,   619,   621,   625,
   626,   630,   631,   632,   633,   634,   635,   636,   637,   638,
   639,   640,   641,   642,   643,   644,   645,   646,   647,   648,
   649,   650,   651,   652,   653,   654,   655,   657,   657,   657,
   657,   658,   658,   658,   658,   658,   658,   658,   659,   659,
   659,   659,   659,   659,   659,   660,   660,   660,   660,   660,
   660,   660,   661,   661,   661,   661,   661,   661,   661,   662,
   662,   662,   662,   662,   662,   663,   663,   663,   665,   670,
   671,   691,   706,   717,   728,   739,   744,   748,   752,   756,
   760,   764,   768,   772,   795,   804,   816,   820,   824,   828,
   832,   836,   840,   844,   848,   852,   856,   860,   864,   868,
   873,   877,   881,   885,   889,   893,   894,   898,   904,   909,
   910,   914,   918,   922,   927,   931,   937,   941,   945,   949,
   954,   955,   957,   961,   965,   969,   975,   980,   986,   991,
   997,  1002,  1004,  1005,  1010,  1016,  1020,  1022,  1027,  1033,
  1038,  1040,  1045,  1050,  1056,  1070,  1074,  1075,  1079,  1080,
  1081,  1082,  1083,  1087,  1107,  1111,  1116,  1120,  1125,  1133,
  1137,  1144,  1150,  1156,  1161,  1165,  1169,  1169,  1174,  1179,
  1180,  1189,  1198,  1207,  1207,  1209,  1215,  1215,  1217,  1223,
  1231,  1235,  1235,  1237,  1243,  1252,  1259,  1265,  1272,  1281,
  1290,  1297,  1307,  1328,  1329,  1336,  1354,  1358,  1362,  1366,
  1371,  1372,  1373,  1375,  1376,  1378,  1379,  1388,  1389,  1394,
  1395,  1397,  1398,  1402,  1406,  1412,  1417,  1425,  1434,  1439,
  1445,  1450,  1456,  1462,  1467,  1474,  1482,  1487,  1493,  1498,
  1505,  1512,  1513,  1518,  1524,  1525,  1527,  1528,  1530,  1534,
  1536,  1547,  1549,  1550,  1559,  1560,  1564,  1566,  1570,  1571,
  1581,  1594,  1600,  1601,  1602,  1603,  1605,  1606,  1608,  1609,
  1610,  1611,  1612,  1613,  1614,  1615,  1616,  1617,  1618,  1620,
  1625,  1626,  1628,  1632,  1636,  1640,  1642,  1647,  1652,  1656,
  1660,  1664,  1668,  1672,  1676,  1680,  1684,  1689,  1693,  1697,
  1701,  1705,  1715,  1716,  1721,  1730,  1735,  1740,  1748,  1753,
  1762,  1766,  1768,  1777,  1777,  1795,  1796,  1800,  1808,  1809,
  1814,  1819,  1820,  1821,  1823,  1824,  1825,  1826,  1828,  1829,
  1830,  1832,  1833,  1835,  1836,  1838,  1839,  1841,  1842,  1843,
  1845,  1846,  1848,  1849,  1851
};
#endif


#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)

static const char * const yytname[] = {   "$","error","$undefined.","kCLASS",
"kMODULE","kDEF","kUNDEF","kBEGIN","kRESCUE","kENSURE","kEND","kIF","kUNLESS",
"kTHEN","kELSIF","kELSE","kCASE","kWHEN","kWHILE","kUNTIL","kFOR","kBREAK","kNEXT",
"kREDO","kRETRY","kIN","kDO","kDO_COND","kDO_BLOCK","kRETURN","kYIELD","kSUPER",
"kSELF","kNIL","kTRUE","kFALSE","kAND","kOR","kNOT","kIF_MOD","kUNLESS_MOD",
"kWHILE_MOD","kUNTIL_MOD","kRESCUE_MOD","kALIAS","kDEFINED","klBEGIN","klEND",
"k__LINE__","k__FILE__","tIDENTIFIER","tFID","tGVAR","tIVAR","tCONSTANT","tCVAR",
"tINTEGER","tFLOAT","tSTRING","tXSTRING","tREGEXP","tDSTRING","tDXSTRING","tDREGEXP",
"tNTH_REF","tBACK_REF","tUPLUS","tUMINUS","tPOW","tCMP","tEQ","tEQQ","tNEQ",
"tGEQ","tLEQ","tANDOP","tOROP","tMATCH","tNMATCH","tDOT2","tDOT3","tAREF","tASET",
"tLSHFT","tRSHFT","tCOLON2","tCOLON3","tOP_ASGN","tASSOC","tLPAREN","tLBRACK",
"tLBRACE","tSTAR","tAMPER","tSYMBEG","'='","'?'","':'","'>'","'<'","'|'","'^'",
"'&'","'+'","'-'","'*'","'/'","'%'","'!'","'~'","LAST_TOKEN","'{'","'}'","'.'",
"')'","','","'['","']'","'`'","'('","'\\n'","';'","program","@1","compstmt",
"stmts","stmt","@2","@3","expr","command_call","block_command","command","mlhs",
"mlhs_entry","mlhs_basic","mlhs_item","mlhs_head","mlhs_node","lhs","cname",
"fname","fitem","undef_list","@4","op","reswords","arg","@5","@6","aref_args",
"paren_args","opt_paren_args","call_args","command_args","@7","block_arg","opt_block_arg",
"args","mrhs","mrhs_basic","ret_args","primary","@8","@9","@10","@11","@12",
"@13","@14","@15","@16","@17","@18","@19","@20","@21","then","do","if_tail",
"opt_else","block_var","opt_block_var","do_block","@22","block_call","method_call",
"brace_block","@23","@24","case_body","when_args","cases","exc_list","exc_var",
"rescue","ensure","literal","string","symbol","sym","numeric","variable","var_ref",
"backref","superclass","@25","f_arglist","f_args","f_norm_arg","f_arg","f_opt",
"f_optarg","f_rest_arg","f_block_arg","opt_f_block_arg","singleton","@26","assoc_list",
"assocs","assoc","operation","operation2","operation3","dot_or_colon","opt_terms",
"opt_nl","trailer","term","terms","none", NULL
};
#endif

static const short yyr1[] = {     0,
   123,   122,   124,   125,   125,   125,   125,   127,   126,   126,
   126,   126,   126,   126,   126,   126,   126,   126,   128,   126,
   126,   126,   126,   126,   126,   129,   129,   129,   129,   129,
   129,   129,   129,   130,   130,   131,   131,   131,   132,   132,
   132,   132,   132,   133,   133,   134,   134,   135,   135,   135,
   135,   135,   135,   136,   136,   137,   137,   138,   138,   138,
   138,   138,   138,   139,   139,   139,   139,   139,   139,   140,
   140,   141,   141,   141,   141,   141,   142,   142,   143,   144,
   143,   145,   145,   145,   145,   145,   145,   145,   145,   145,
   145,   145,   145,   145,   145,   145,   145,   145,   145,   145,
   145,   145,   145,   145,   145,   145,   145,   146,   146,   146,
   146,   146,   146,   146,   146,   146,   146,   146,   146,   146,
   146,   146,   146,   146,   146,   146,   146,   146,   146,   146,
   146,   146,   146,   146,   146,   146,   146,   146,   146,   146,
   146,   146,   146,   146,   146,   146,   146,   146,   147,   148,
   147,   147,   147,   147,   147,   147,   147,   147,   147,   147,
   147,   147,   147,   147,   147,   147,   147,   147,   147,   147,
   147,   147,   147,   147,   147,   147,   147,   147,   147,   147,
   147,   147,   147,   147,   147,   149,   147,   147,   147,   150,
   150,   150,   150,   150,   150,   150,   151,   151,   151,   151,
   152,   152,   153,   153,   153,   153,   153,   153,   153,   153,
   153,   153,   155,   154,   156,   157,   157,   158,   158,   159,
   159,   160,   160,   160,   161,   162,   162,   162,   162,   162,
   162,   162,   162,   162,   162,   162,   162,   162,   162,   162,
   162,   162,   162,   162,   162,   162,   163,   162,   162,   162,
   162,   162,   162,   164,   165,   162,   166,   167,   162,   162,
   162,   168,   169,   162,   170,   162,   171,   172,   162,   173,
   162,   174,   162,   175,   176,   162,   162,   162,   162,   162,
   177,   177,   177,   178,   178,   179,   179,   180,   180,   181,
   181,   182,   182,   182,   182,   184,   183,   185,   185,   185,
   186,   186,   186,   186,   186,   186,   188,   187,   189,   187,
   190,   191,   191,   191,   192,   192,   193,   193,   194,   194,
   195,   195,   196,   196,   197,   197,   197,   198,   198,   198,
   198,   199,   200,   200,   200,   200,   201,   201,   202,   202,
   202,   202,   202,   202,   202,   202,   202,   202,   202,   203,
   204,   204,   205,   206,   205,   205,   207,   207,   208,   208,
   208,   208,   208,   208,   208,   208,   208,   209,   209,   209,
   209,   209,   210,   210,   211,   212,   212,   213,   213,   214,
   215,   215,   216,   217,   216,   218,   218,   218,   219,   219,
   220,   221,   221,   221,   222,   222,   222,   222,   223,   223,
   223,   224,   224,   225,   225,   226,   226,   227,   227,   227,
   228,   228,   229,   229,   230
};

static const short yyr2[] = {     0,
     0,     2,     2,     1,     1,     3,     2,     0,     4,     3,
     3,     3,     2,     3,     3,     3,     3,     3,     0,     5,
     4,     3,     3,     3,     1,     3,     2,     1,     3,     3,
     2,     2,     1,     1,     1,     1,     4,     4,     2,     4,
     4,     2,     2,     1,     3,     1,     3,     1,     2,     3,
     2,     2,     1,     1,     3,     2,     3,     1,     4,     3,
     3,     3,     1,     1,     4,     3,     3,     3,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     0,
     4,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     3,     0,
     4,     6,     5,     5,     5,     3,     3,     3,     3,     3,
     3,     3,     3,     3,     2,     2,     3,     3,     3,     3,
     3,     3,     3,     3,     3,     3,     3,     3,     3,     2,
     2,     3,     3,     3,     3,     0,     4,     5,     1,     1,
     2,     4,     2,     5,     2,     3,     3,     4,     4,     6,
     1,     1,     1,     3,     2,     5,     2,     5,     4,     7,
     3,     1,     0,     2,     2,     2,     1,     1,     3,     1,
     1,     3,     4,     2,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     6,     3,     3,     2,     4,     3,     3,
     4,     3,     1,     4,     3,     1,     0,     6,     2,     1,
     2,     6,     6,     0,     0,     7,     0,     0,     7,     5,
     4,     0,     0,     9,     0,     6,     0,     0,     8,     0,
     5,     0,     9,     0,     0,    12,     1,     1,     1,     1,
     1,     1,     2,     1,     1,     1,     5,     1,     2,     1,
     1,     1,     2,     1,     3,     0,     5,     2,     4,     4,
     2,     4,     4,     3,     2,     1,     0,     5,     0,     5,
     5,     1,     4,     2,     1,     1,     1,     1,     2,     1,
     6,     1,     1,     2,     1,     1,     1,     1,     1,     2,
     2,     2,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     0,     4,     2,     4,     2,     6,     4,
     4,     2,     4,     2,     2,     1,     0,     1,     1,     1,
     1,     1,     1,     3,     3,     1,     3,     2,     1,     2,
     2,     1,     1,     0,     5,     1,     2,     2,     1,     3,
     3,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     0,     1,     0,     1,     0,     1,     1,
     1,     1,     1,     2,     0
};

static const short yydefact[] = {     1,
     0,     0,     0,     0,     0,     0,     0,     0,     0,   404,
   254,   257,     0,   277,   278,   279,   280,   243,   246,   306,
   345,   344,   346,   347,     0,     0,   406,    19,     0,   349,
   348,   339,   233,   341,   340,   342,   343,   337,   338,   328,
   228,   327,   329,   229,   230,   351,   352,     0,     0,     0,
     0,   415,   415,    53,     0,     0,     0,     2,   404,     5,
    25,    28,    35,    34,     0,    44,     0,    48,    54,     0,
    33,   189,    36,   250,   226,   227,   326,   325,   350,   231,
   232,   213,     4,     7,    70,    71,     0,     0,   270,   117,
   129,   118,   142,   114,   135,   124,   123,   140,   122,   121,
   116,   145,   126,   115,   130,   134,   136,   128,   120,   137,
   147,   139,   138,   131,   141,   125,   113,   133,   132,   127,
   143,   146,   144,   148,   112,   119,   110,   111,   108,   109,
    72,    74,    73,   103,   104,   101,    85,    86,    87,    90,
    92,    88,   105,   106,    93,    94,    98,    89,    91,    82,
    83,    84,    95,    96,    97,    99,   100,   102,   107,   384,
   272,    75,    76,   350,   383,     0,   138,   131,   141,   125,
   108,   109,    72,    73,    77,    79,    13,    78,   415,     0,
     0,     0,     0,   412,   411,   404,     0,   413,   405,     0,
     0,   243,   246,   306,   406,   291,   290,     0,     0,   350,
   232,     0,     0,     0,     0,     0,     0,   203,   218,   225,
   212,   415,    27,   189,   350,   232,   415,   389,     0,    43,
   415,   305,    42,     0,    31,     0,     8,   407,   186,     0,
     0,   165,   189,   166,   237,     0,     0,     0,    44,     0,
   406,     0,   408,   408,   190,   408,     0,   408,   386,    52,
     0,    58,    63,   335,   334,   336,   333,   332,    32,   180,
   181,     3,   405,     0,     0,     0,     0,     0,     0,     0,
   296,   298,     0,    56,     0,    51,    49,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,   415,     0,     0,   309,
   307,   251,   330,   331,   150,     0,   301,    39,   249,   267,
     0,   354,   265,   353,     0,     0,   367,   403,   402,   274,
    80,   415,   415,   322,   282,     0,   281,     0,     0,     0,
     0,     0,     0,   414,     0,     0,     0,     0,     0,   415,
   262,   415,   215,   242,     0,     0,     0,   205,   217,     0,
     0,   415,     0,   207,   245,     0,   203,   406,   415,   406,
     0,   214,    10,    12,    11,     0,   247,     0,     0,     0,
     0,     0,     0,   235,    45,   406,   191,   239,   410,   409,
   193,   410,   195,   410,   388,   240,   387,     0,     0,   415,
     6,    14,    15,    16,    17,    18,    29,    30,   415,     0,
    23,   220,     0,    26,   221,     0,    50,    57,    22,   149,
    24,   164,   170,   175,   176,   177,   172,   174,   184,   185,
   178,   179,   157,   158,   182,   183,     0,   171,   173,   167,
   168,   169,   159,   160,   161,   162,   163,   395,   400,   236,
   401,   213,   304,   395,   397,   396,   398,   415,     0,   395,
   396,   213,   213,   415,   415,     0,   156,     0,   356,     0,
     0,     0,   406,   372,   370,   369,   368,   371,   379,     0,
   367,     0,     0,   373,   415,   376,   415,   415,   366,     0,
     0,   218,   318,   415,   317,     0,   415,   288,   415,   283,
   149,   415,     0,     0,   312,     0,   261,   285,   255,   284,
   258,   399,     0,   395,   396,   415,     0,     0,     0,   211,
   241,   391,     0,   204,   219,   216,   415,   399,   395,   396,
     0,     0,     0,   390,   244,     0,     0,     0,     0,     0,
   197,     9,     0,   187,     0,    21,    45,   196,     0,   406,
   219,    61,   395,   396,     0,   294,     0,     0,   292,   224,
     0,    55,     0,     0,   303,    41,     0,     0,   202,   302,
    40,   201,   238,   300,    38,   299,    37,     0,     0,   151,
   268,     0,     0,   271,     0,     0,   378,   380,   406,   415,
   358,     0,   362,   382,     0,   364,     0,   365,   275,    81,
     0,     0,     0,   320,   289,     0,     0,   323,     0,     0,
   286,     0,   260,   314,     0,     0,     0,     0,   238,     0,
   415,     0,   209,   238,   415,   198,   204,   406,   415,   415,
   199,     0,    20,   406,   192,    59,   293,     0,     0,     0,
   222,   188,   155,   153,   154,     0,     0,     0,     0,   355,
   266,   385,   375,     0,   415,   374,   415,   415,   381,     0,
   377,   415,   367,   319,     0,    64,    69,     0,   324,   234,
     0,   252,   253,     0,   415,     0,     0,   263,   206,     0,
   208,     0,   248,   194,   295,   297,   223,   152,   310,   308,
     0,   357,   415,     0,   360,   361,   363,     0,     0,     0,
   415,   415,     0,   313,   315,   316,   311,   256,   259,     0,
   415,   200,   269,     0,   415,   415,   399,   395,   396,     0,
   321,   415,     0,   210,   273,   359,   415,    65,   287,   264,
   415,     0,   276,     0,     0,     0
};

static const short yydefgoto[] = {   734,
     1,   237,    59,    60,   376,   230,    61,    62,    63,    64,
    65,   238,    66,    67,    68,    69,   182,    88,   175,   176,
   177,   491,   457,   163,    71,   466,   378,   242,   569,   570,
   210,   223,   224,   211,   358,   243,   414,   415,   213,   233,
   543,   190,   617,   191,   618,   518,   710,   471,   468,   649,
   325,   327,   490,   663,   336,   509,   610,   611,   199,   558,
   272,   409,    73,    74,   319,   465,   464,   343,   506,   707,
   494,   603,   333,   607,    75,    76,    77,   258,    78,   215,
    80,   216,   323,   470,   482,   483,   484,   485,   486,   487,
   488,   659,   593,   166,   326,   247,   217,   218,   202,   513,
   453,   330,   187,   229,   391,   337,   189,    83
};

static const short yypact[] = {-32768,
  1853,  4856,   187,   418,  3167,  4443,  2061,  4950,  4950,  3058,
-32768,-32768,  6358,-32768,-32768,-32768,-32768,  3652,  3746,  3840,
-32768,-32768,-32768,-32768,  4950,  4336,   -57,-32768,   -21,-32768,
-32768,  3276,  3370,-32768,-32768,  3464,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,  6078,  6078,   418,
  2551,  5420,  6078,  6542,  4229,  6172,  6078,-32768,   176,   639,
   286,-32768,-32768,    78,    29,-32768,    11,  6450,-32768,    38,
  7439,   167,    18,    10,-32768,    81,-32768,-32768,   141,-32768,
   184,    21,-32768,   639,-32768,-32768,  4950,    44,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,    45,   173,   202,   223,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,   225,   242,
   244,-32768,   327,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,   336,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,    26,-32768,   152,    46,
    96,   106,    46,-32768,-32768,    55,   195,-32768,    48,  4950,
  4950,   103,   179,   214,   -57,-32768,-32768,   188,   284,    56,
    77,    21,  2663,  6078,  6078,  6078,  4658,-32768,  7359,-32768,
-32768,   239,-32768,   200,    25,   145,   268,-32768,  4757,-32768,
  5044,-32768,-32768,  5044,-32768,   426,-32768,-32768,   221,   292,
  2775,   338,   229,   338,-32768,  2551,   299,   341,   343,  6078,
   -57,   345,   131,   307,-32768,   313,   318,   307,-32768,-32768,
   246,   294,   302,-32768,-32768,-32768,-32768,-32768,-32768,   338,
   338,-32768,  2964,  4950,  4950,  4950,  4950,  4856,  4950,  4950,
-32768,-32768,  5514,-32768,  2551,  6542,   301,  5514,  6078,  6078,
  6078,  6078,  6078,  6078,  6078,  6078,  6078,  6078,  6078,  6078,
  6078,  6078,  6078,  6078,  6078,  6078,  6078,  6078,  6078,  6078,
  6078,  6078,  6078,  6078,  1461,  6571,  5420,  6631,  6631,-32768,
-32768,-32768,-32768,-32768,-32768,  6078,-32768,-32768,-32768,   286,
   176,-32768,-32768,-32768,  2870,  4950,   393,-32768,-32768,-32768,
-32768,  6078,   445,-32768,-32768,  2173,   458,  5608,  6078,  2363,
   195,  5702,   465,-32768,    74,    74,   221,  6691,  6751,  5420,
-32768,  7215,  7439,-32768,   366,  6078,  5138,-32768,-32768,  6811,
  6871,  5420,  5232,-32768,-32768,   383,    78,   -57,   377,    37,
   388,-32768,-32768,-32768,-32768,  4443,-32768,  6078,  2775,   396,
  6811,  6871,   400,-32768,   395,  7162,-32768,-32768,  5796,-32768,
-32768,  6078,-32768,  6078,-32768,-32768,-32768,  6931,  6991,  5420,
   639,   286,   286,   286,   286,-32768,-32768,-32768,    68,  6078,
-32768,  7263,   404,-32768,-32768,   406,-32768,-32768,-32768,  7263,
-32768,   338,  7479,  7479,  7479,  7479,   481,   481,  7519,  1617,
  7479,  7479,  1185,  1185,   -10,   -10,  7399,   481,   481,   550,
   550,   607,   186,   186,   338,   338,   338,  1940,  3934,  4028,
  4122,   214,-32768,   364,-32768,   378,-32768,  3840,   407,-32768,
-32768,  1084,  1084,    68,    68,  6078,  7439,   176,-32768,  4950,
  2870,   515,    43,   433,-32768,-32768,-32768,-32768,   483,   484,
   518,  2061,   176,-32768,   416,-32768,   420,   429,-32768,  4550,
  4443,  7439,   435,   449,-32768,  2457,   529,-32768,   422,-32768,
  7439,   445,   531,  6078,   437,    33,-32768,-32768,-32768,-32768,
-32768,     4,   214,    82,    88,   214,   438,  4950,   466,-32768,
-32768,  7439,  6078,-32768,  7359,-32768,   443,  3558,   158,   224,
   444,  6078,  7359,-32768,-32768,   448,  5138,  6631,  6631,   453,
-32768,-32768,  4950,  7439,   457,-32768,   368,-32768,  6078,   -57,
  7439,   256,   124,   134,   459,-32768,  6266,  2870,-32768,  7439,
  5890,-32768,  6078,  6078,-32768,-32768,  6078,  6078,-32768,-32768,
-32768,-32768,   379,-32768,-32768,-32768,-32768,  2870,  2775,  7439,
-32768,    55,   564,-32768,   461,  6078,-32768,-32768,   -57,   152,
-32768,   518,-32768,-32768,    22,-32768,   486,-32768,-32768,-32768,
  6078,  6542,    33,-32768,-32768,  2870,   570,-32768,  4950,   580,
-32768,   581,-32768,  7439,  5984,  2268,  2870,  2870,   190,    74,
  7215,  5326,-32768,   233,  7215,-32768,    78,    37,   214,   214,
-32768,    72,-32768,  7162,-32768,   304,-32768,   493,   585,  6078,
  7311,  7439,  7439,  7439,  7439,  6078,   586,   488,  2870,-32768,
-32768,-32768,  7439,   489,   445,-32768,   487,   429,-32768,   433,
-32768,   429,   393,-32768,   316,   294,   302,  2061,-32768,-32768,
    46,-32768,-32768,  6078,    59,   594,   597,-32768,-32768,  6078,
-32768,   498,-32768,-32768,-32768,-32768,  7439,  7439,-32768,-32768,
   603,-32768,   529,    22,-32768,-32768,-32768,  2061,  7051,  7111,
  5420,   152,  2173,  7439,-32768,-32768,-32768,-32768,-32768,  2870,
  7215,-32768,-32768,   604,   429,   152,    53,    60,    64,   502,
-32768,   422,   610,-32768,-32768,-32768,   445,   304,-32768,-32768,
   529,   612,-32768,   624,   627,-32768
};

static const short yypgoto[] = {-32768,
-32768,   525,-32768,    13,-32768,-32768,   946,   -18,-32768,   -14,
   234,  -176,   -25,   560,-32768,   -15,   363,    50,    15,    -3,
-32768,-32768,    63,-32768,  1110,-32768,-32768,  -275,     2,  -421,
   153,   -54,-32768,  -320,  -190,   423,-32768,   351,    14,    -1,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,  -153,  -332,   -90,  -289,    79,    65,
-32768,-32768,  -211,-32768,   561,-32768,-32768,  -328,-32768,-32768,
-32768,-32768,  -555,  -653,-32768,-32768,     5,-32768,-32768,   538,
   632,   664,-32768,-32768,   -24,   159,    49,-32768,  -543,    51,
  -507,  -311,  -431,-32768,-32768,-32768,   -50,  -344,   127,  -244,
-32768,-32768,   -38,  -170,   265,    39,   587,  1124
};


#define	YYLAST		7626


static const short yytable[] = {    72,
    72,   244,   248,   208,   208,    72,    72,    72,    72,   370,
   178,   198,   503,   511,    84,   489,   214,   214,   534,   161,
   262,   222,   227,    72,   347,   239,   364,   318,   -67,   340,
   178,   459,   220,   241,   655,   310,   526,   259,   250,   714,
   574,   576,   526,   497,   321,   335,   310,   534,   188,    72,
   214,   661,   251,    89,   214,   596,   598,   279,   335,   383,
   452,   458,   228,   462,   463,   -67,   251,   162,   162,   257,
   387,   660,   -66,   496,   517,   342,   -68,   732,   269,   270,
   -64,   269,   270,   317,   658,    72,   531,   662,   162,   231,
   269,   270,   300,   301,   302,   303,   304,   188,   416,   235,
   508,   -69,   308,   -67,   516,   271,   -66,   269,   270,   269,
   270,   315,   -68,   479,   480,   452,   458,   162,   -61,   -64,
   311,   538,  -395,   273,   555,   274,   324,    82,    82,  -345,
   309,   311,   278,    82,    82,    82,    82,   516,   313,   221,
   331,   314,   322,   556,    82,    82,   721,   341,   -60,   539,
   661,    82,   184,   185,   516,   -64,   228,  -345,   -62,   332,
   727,   520,   228,   184,   185,   184,   185,   557,   344,   489,
   -58,  -395,   -67,   -67,   184,   185,   -69,    82,    82,   -66,
   -66,   -66,    82,   -68,   -68,   683,   715,   -68,    72,    72,
   338,   -63,   208,   184,   185,   222,   -60,   536,   526,   540,
   339,    72,   -62,   317,   208,   214,   367,   574,   576,   208,
   239,   342,   612,    82,   -65,   548,   526,   214,   -60,   214,
   355,   207,   214,   -60,   188,   695,   696,   315,   -62,    72,
   697,   316,   366,   -62,    72,   -64,    85,   -60,   -60,   -69,
    86,   181,   181,   181,   567,   389,   196,   -62,   -62,   239,
   390,   305,   -66,   279,   411,   -58,   244,  -344,   181,   419,
   417,    72,    72,    72,    72,    72,    72,    72,    72,    87,
   316,   214,   348,    72,   251,   401,   214,   534,   -69,   306,
   406,  -399,   307,   726,   360,  -344,  -346,   678,   241,   -65,
   302,   303,   304,   629,   630,   184,   185,   219,   -63,   244,
   349,   526,   585,   350,   -59,   214,   527,  -347,   351,  -349,
   568,   244,   361,   381,  -346,   362,    82,    82,   -68,   646,
   181,   269,   270,    72,    72,   628,  -348,   -65,  -339,    82,
   398,   241,   221,    82,    72,  -347,   623,  -349,    72,   377,
  -399,   382,   524,   241,   362,    82,   706,    82,   214,   244,
    82,   489,   616,   357,  -348,   214,  -339,    82,   399,   469,
   214,   400,    82,    70,    70,   693,  -399,   451,  -399,    70,
   550,  -399,   542,   368,  -395,   197,   372,    72,  -350,   635,
   178,   241,   363,   510,   510,   705,  -232,   214,  -238,    82,
    82,    82,    82,    82,    82,    82,    82,   566,   214,    82,
   699,    82,   379,   571,    82,   279,  -350,   575,   577,  -350,
   451,  -342,   384,    70,  -232,   418,  -238,  -232,   654,  -238,
   328,   392,   451,   181,   181,   720,   390,   394,   700,   396,
   679,   701,   390,    82,   681,   609,   496,   731,   162,  -342,
   212,   212,   474,   451,   475,   476,   477,   478,   329,   668,
   567,    82,    82,   565,   385,   516,   -46,   682,   -66,   496,
   451,   388,    82,   684,   568,   646,    82,    85,    72,    72,
   500,    86,   -68,   -65,   507,   246,    82,   373,   -60,   521,
    72,   -47,   -55,    82,   479,   480,   527,   600,    82,   374,
   375,   537,   -62,   -59,    72,   178,   535,   181,   181,   181,
   181,   541,   181,   181,   599,    82,   581,   546,   393,   -55,
   395,   481,   397,   547,   565,    82,    72,   703,   561,   562,
   724,   591,   627,   573,   584,    58,    82,   586,   578,   579,
   592,   179,   587,   588,   595,   214,   602,   606,    79,    79,
   613,    72,   164,   597,    79,    79,    79,    79,   279,   601,
   200,   615,   162,   162,   619,   198,    72,   622,   205,   181,
   624,   626,    79,   292,   293,    70,   631,   474,   633,   475,
   476,   477,   478,   651,   652,   636,    72,    72,   480,   670,
   297,   298,   299,   300,   301,   302,   303,   304,    79,   672,
   673,   252,   685,    70,   686,   689,    82,    82,    70,   690,
   665,   694,   692,   708,    72,   252,   709,    72,    82,   479,
   480,   712,   713,   725,    72,    72,    72,   279,   728,   730,
   650,   733,    82,   735,    79,    70,   736,   277,   421,   212,
    70,   729,   292,   293,   312,   638,   165,    70,   698,   589,
   656,   212,   657,   369,    82,   263,   212,    72,     0,     0,
   244,   299,   300,   301,   302,   303,   304,     0,   510,     0,
     0,     0,     0,    82,    81,    81,    72,     0,     0,    82,
    81,    81,    81,    81,   279,     0,   201,   264,   265,   266,
   267,   268,   241,     0,    82,     0,     0,    70,    81,   292,
   293,     0,     0,     0,     0,   413,    72,     0,    70,   214,
   413,    72,    70,   181,    82,    82,     0,     0,    72,   300,
   301,   302,   303,   304,    81,     0,     0,   253,     0,     0,
     0,     0,     0,     0,     0,     0,     0,    79,    79,     0,
     0,   253,    82,     0,     0,    82,     0,     0,     0,     0,
    79,    70,    82,    82,    82,     0,     0,     0,     0,     0,
    81,   181,     0,     0,   493,   380,     0,     0,     0,     0,
   413,   451,     0,     0,   505,     0,     0,     0,    79,     0,
     0,     0,     0,    79,     0,    82,   181,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   196,     0,     0,     0,    82,     0,     0,     0,     0,     0,
    79,    79,    79,    79,    79,    79,    79,    79,     0,     0,
     0,     0,    79,   252,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,    82,     0,     0,    82,     0,    82,
     0,     0,     0,    70,     0,     0,    82,     0,     0,     0,
     0,     0,   181,     0,    70,     0,     0,     0,     0,   472,
     0,     0,     0,    81,    81,     0,     0,     0,    70,     0,
   499,     0,    79,    79,   502,     0,    81,     0,     0,     0,
     0,     0,     0,    79,     0,     0,     0,    79,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,    81,     0,     0,     0,     0,    81,
     0,     0,     0,   545,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    79,     0,     0,   197,
    70,     0,     0,     0,     0,     0,    81,    81,    81,    81,
    81,    81,    81,    81,     0,     0,     0,     0,    81,   253,
    70,    70,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,   180,   183,   186,     0,     0,     0,     0,
     0,     0,     0,     0,   664,     0,     0,     0,    70,     0,
   225,     0,     0,     0,     0,     0,     0,     0,    70,    70,
    70,     0,     0,     0,     0,     0,     0,     0,    81,    81,
     0,     0,     0,     0,     0,   583,     0,     0,     0,    81,
     0,     0,     0,    81,     0,     0,   590,    79,    79,     0,
     0,    70,     0,     0,     0,     0,     0,     0,     0,    79,
   605,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    70,     0,   320,    79,     0,     0,     0,     0,     0,     0,
     0,     0,    81,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    79,     0,     0,     0,     0,
    70,     0,     0,     0,     0,    70,     0,     0,     0,     0,
     0,     0,    70,     0,     0,     0,     0,     0,     0,     0,
    79,     0,   639,  -415,     0,     0,     0,     0,     0,     0,
     0,  -415,  -415,  -415,   200,    79,  -415,  -415,  -415,     0,
  -415,     0,   647,   648,     0,     0,     0,     0,     0,     0,
  -415,     0,     0,     0,     0,    79,    79,     0,     0,  -415,
  -415,     0,  -415,  -415,  -415,  -415,  -415,   209,   209,     0,
   669,     0,     0,    81,    81,   345,   346,     0,     0,   666,
   675,   676,   677,    79,     0,    81,    79,     0,     0,     0,
     0,     0,     0,    79,    79,    79,     0,   232,   234,    81,
     0,   209,   209,     0,     0,   260,   261,     0,  -415,     0,
     0,     0,     0,   691,     0,   245,   249,     0,     0,     0,
     0,    81,     0,     0,     0,     0,    79,     0,     0,     0,
     0,     0,   702,     0,     0,  -415,  -415,  -415,     0,     0,
  -415,     0,   221,  -415,  -415,    79,    81,     0,     0,   402,
   403,   404,   405,     0,   407,   408,     0,     0,     0,     0,
   201,    81,   716,     0,     0,     0,     0,   722,     0,     0,
     0,     0,     0,     0,   723,    79,     0,     0,     0,     0,
    79,    81,    81,     0,     0,     0,     0,    79,     0,     0,
     0,     0,   279,   280,   281,   282,   283,   284,   285,   286,
   287,   288,   289,-32768,-32768,   667,     0,   292,   293,    81,
     0,   473,    81,     0,     0,     0,     0,     0,     0,    81,
    81,    81,   295,   296,   297,   298,   299,   300,   301,   302,
   303,   304,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,   334,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    81,   352,   353,   260,   209,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,   209,     0,
   209,    81,     0,   209,     0,   359,     0,     0,     0,     0,
   359,     0,     0,     0,   371,     0,     0,     0,     0,   386,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    81,     0,     0,     0,     0,    81,     0,     0,     0,
     0,     0,     0,    81,     0,     0,     0,     0,     0,     0,
     0,     0,   412,     0,     0,     0,     0,   420,   422,   423,
   424,   425,   426,   427,   428,   429,   430,   431,   432,   433,
   434,   435,   436,   437,   438,   439,   440,   441,   442,   443,
   444,   445,   446,   447,     0,   582,   209,     0,     0,     0,
     0,     0,     0,     0,     0,   467,     0,     0,     0,     0,
   245,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,   492,     0,     0,     0,     0,     0,   412,   501,     0,
     0,   492,     0,     0,     0,   495,   498,     0,     0,   209,
     0,     0,     0,   620,     0,   522,   525,     0,     0,     0,
     0,   209,   533,   245,     0,   359,     0,     0,     0,     0,
     0,     0,     0,     0,     0,   245,     0,   544,   632,     0,
     0,     0,   359,     0,     0,     0,     0,     0,   551,     0,
     0,   533,     0,   551,     0,     0,     0,     0,     0,   209,
   448,   449,     0,     0,   450,     0,     0,     0,     0,   560,
     0,     0,     0,   245,     0,     0,   134,   135,   136,   137,
   138,   139,   559,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,   671,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
     0,     0,     0,     0,     0,   580,     0,     0,   159,     0,
     0,   572,     0,     0,     0,   572,   572,   559,   559,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,   594,     0,
   594,   594,     0,   614,     0,     0,     0,   604,     0,     0,
   608,     0,   498,     0,     0,   498,     0,     0,     0,     0,
     0,     0,   621,     0,     0,     0,     0,     0,     0,   572,
     0,   625,     0,     0,     0,     0,   525,     0,     0,     0,
   359,     0,     0,     0,     0,     0,     0,     0,   634,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   641,     0,   642,   643,     0,     0,   644,   645,     0,     0,
     0,     0,     0,     0,   279,   280,   281,   282,   283,   284,
   285,   286,     0,   288,   289,   653,     0,     0,     0,   292,
   293,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   551,     0,     0,   334,   295,   296,   297,   298,   299,   300,
   301,   302,   303,   304,   551,     0,     0,     0,     0,     0,
     0,   533,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,   359,     0,     0,     0,   359,   687,
     0,     0,   572,   572,     0,   688,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,   498,     0,
   594,   594,     0,   704,     0,   594,     0,     0,     0,   711,
     0,     0,     0,     0,     0,     0,     0,     0,   498,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   209,     0,     0,     0,     0,     0,   608,     0,     0,     0,
     0,     0,     0,     0,   245,   334,     0,     0,     0,     0,
     0,     0,     0,     0,   359,     0,     0,     0,   594,   334,
     0,     0,     0,     0,     0,   498,     0,     0,     0,     0,
   498,     0,  -415,     2,   608,     3,     4,     5,     6,     7,
     0,     0,     0,     8,     9,     0,     0,     0,    10,     0,
    11,    12,    13,    14,    15,    16,    17,     0,     0,     0,
     0,    18,    19,    20,    21,    22,    23,    24,     0,     0,
    25,     0,     0,     0,     0,     0,    26,    27,    28,    29,
    30,    31,    32,    33,    34,    35,    36,    37,    38,    39,
    40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    50,  -399,
     0,    51,    52,    53,    54,     0,    55,  -399,  -399,  -399,
     0,     0,  -399,  -399,  -399,     0,  -399,     0,     0,     0,
    56,    57,     0,     0,     0,  -399,  -399,     0,     0,     0,
     0,     0,  -415,  -415,     0,  -399,  -399,     0,  -399,  -399,
  -399,  -399,  -399,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,  -399,  -399,  -399,
  -399,  -399,  -399,  -399,  -399,  -399,  -399,  -399,  -399,  -399,
     0,     0,  -399,  -399,  -399,     0,   564,     0,     0,     0,
     0,     0,     0,     0,   -67,  -399,     0,  -399,  -399,  -399,
  -399,  -399,  -399,  -399,  -399,  -399,  -399,     0,     0,     0,
  -399,  -399,  -399,  -399,   -61,  -399,     0,     0,     0,  -399,
  -399,     2,     0,     3,     4,     5,     6,     7,  -415,  -415,
  -415,     8,     9,     0,     0,  -415,    10,     0,    11,    12,
    13,    14,    15,    16,    17,     0,     0,     0,     0,    18,
    19,    20,    21,    22,    23,    24,     0,     0,    25,     0,
     0,     0,     0,     0,    26,    27,    28,    29,    30,    31,
    32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
    42,    43,    44,    45,    46,    47,    48,    49,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    50,     0,     0,    51,
    52,    53,    54,     0,    55,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    56,    57,
     0,     0,     0,     2,     0,     3,     4,     5,     6,     7,
  -415,  -415,  -415,     8,     9,     0,  -415,  -415,    10,     0,
    11,    12,    13,    14,    15,    16,    17,     0,     0,     0,
     0,    18,    19,    20,    21,    22,    23,    24,     0,     0,
    25,     0,     0,     0,     0,     0,    26,    27,    28,    29,
    30,    31,    32,    33,    34,    35,    36,    37,    38,    39,
    40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    50,     0,
     0,    51,    52,    53,    54,     0,    55,     0,     2,     0,
     3,     4,     5,     6,     7,     0,     0,  -415,     8,     9,
    56,    57,  -415,    10,  -415,    11,    12,    13,    14,    15,
    16,    17,  -415,  -415,     0,     0,    18,    19,    20,    21,
    22,    23,    24,     0,     0,    25,     0,     0,     0,     0,
     0,    26,    27,    28,    29,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    48,    49,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    50,     0,     0,    51,    52,    53,    54,
     0,    55,     0,     2,     0,     3,     4,     5,     6,     7,
     0,     0,  -415,     8,     9,    56,    57,  -415,    10,     0,
    11,    12,    13,    14,    15,    16,    17,  -415,  -415,     0,
     0,    18,    19,    20,    21,    22,    23,    24,     0,     0,
    25,     0,     0,     0,     0,     0,    26,    27,    28,    29,
    30,    31,    32,    33,    34,    35,    36,    37,    38,    39,
    40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    50,     0,
     0,    51,    52,    53,    54,     0,    55,     2,     0,     3,
     4,     5,     6,     7,     0,  -415,  -415,     8,     9,     0,
    56,    57,    10,     0,    11,    12,    13,    14,    15,    16,
    17,     0,  -415,  -415,     0,    18,    19,    20,    21,    22,
    23,    24,     0,     0,    25,     0,     0,     0,     0,     0,
    26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
    36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
    46,    47,    48,    49,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    50,     0,     0,    51,    52,    53,    54,     0,
    55,     2,     0,     3,     4,     5,     6,     7,     0,     0,
     0,     8,     9,     0,    56,    57,    10,     0,    11,    12,
    13,    14,    15,    16,    17,     0,  -415,  -415,     0,    18,
    19,    20,    21,    22,    23,    24,     0,     0,    25,     0,
     0,     0,     0,     0,    26,    27,    28,    29,    30,    31,
    32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
    42,    43,    44,    45,    46,    47,    48,    49,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    50,     0,     0,   236,
    52,    53,    54,     0,    55,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    56,    57,
     0,     0,     0,     2,  -415,     3,     4,     5,     6,     7,
  -415,  -415,     0,     8,     9,     0,     0,     0,    10,     0,
    11,    12,    13,    14,    15,    16,    17,     0,     0,     0,
     0,    18,    19,    20,    21,    22,    23,    24,     0,     0,
    25,     0,     0,     0,     0,     0,    26,    27,    28,    29,
    30,    31,    32,    33,    34,    35,    36,    37,    38,    39,
    40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    50,     0,
     0,    51,    52,    53,    54,     0,    55,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    56,    57,     0,     0,     0,     2,  -415,     3,     4,     5,
     6,     7,  -415,  -415,     0,     8,     9,     0,     0,     0,
    10,     0,    11,    12,    13,    14,    15,    16,    17,     0,
     0,     0,     0,    18,    19,    20,    21,    22,    23,    24,
     0,     0,    25,     0,     0,     0,     0,     0,    26,    27,
    28,    29,    30,    31,    32,    33,    34,    35,    36,    37,
    38,    39,    40,    41,    42,    43,    44,    45,    46,    47,
    48,    49,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    50,     0,     0,    51,    52,    53,    54,     0,    55,     0,
     2,     0,     3,     4,     5,     6,     7,     0,     0,  -415,
     8,     9,    56,    57,     0,    10,  -415,    11,    12,    13,
    14,    15,    16,    17,  -415,  -415,     0,     0,    18,    19,
    20,    21,    22,    23,    24,     0,     0,    25,     0,     0,
     0,     0,     0,    26,    27,    28,    29,    30,    31,    32,
    33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    48,    49,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    50,     0,     0,    51,    52,
    53,    54,     0,    55,     0,     0,     3,     4,     5,     6,
     7,     0,     0,     0,     8,     9,     0,    56,    57,    10,
     0,    11,    12,    13,    14,    15,    16,    17,     0,  -415,
  -415,     0,    18,    19,    20,    21,    22,    23,    24,     0,
     0,    25,     0,     0,     0,     0,     0,    26,    27,    28,
    29,    30,    31,    32,    33,    34,    35,    36,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
    49,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,    50,
     0,     0,    51,    52,    53,    54,     0,    55,     0,     0,
     3,     4,     5,     0,     7,     0,     0,     0,     8,     9,
     0,    56,    57,    10,     0,    11,    12,    13,    14,    15,
    16,    17,     0,     0,   344,     0,    18,    19,    20,    21,
    22,    23,    24,     0,     0,    25,     0,     0,     0,     0,
     0,     0,    27,     0,     0,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    48,    49,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    50,     0,     0,    51,    52,    53,    54,
     0,    55,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    56,    57,     0,     0,    90,
    91,    92,    93,    94,    95,    96,    97,   184,   185,    98,
    99,   100,   101,   102,     0,     0,   103,   104,   105,   106,
   107,   108,   109,     0,     0,   110,   111,   112,   113,   114,
   115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
   125,   126,   127,   128,   129,   130,   131,   132,    34,    35,
   133,    37,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,   134,   135,   136,   137,   138,   139,     0,   140,
   141,     0,     0,   142,     0,     0,     0,   143,   144,   145,
   146,     0,     0,     0,     0,     0,     0,     0,   147,     0,
     0,     0,     0,     0,   148,   149,   150,   151,   152,   153,
   154,   155,   156,   157,     0,   158,     0,     0,  -392,  -392,
  -392,     0,  -392,     0,   159,   160,  -392,  -392,     0,     0,
     0,  -392,     0,  -392,  -392,  -392,  -392,  -392,  -392,  -392,
     0,  -392,     0,     0,  -392,  -392,  -392,  -392,  -392,  -392,
  -392,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  -392,     0,     0,  -392,  -392,  -392,  -392,  -392,  -392,  -392,
  -392,  -392,  -392,  -392,  -392,  -392,  -392,  -392,  -392,  -392,
  -392,  -392,  -392,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,  -392,     0,     0,  -392,  -392,  -392,  -392,  -392,  -392,
     0,     0,  -394,  -394,  -394,     0,  -394,     0,     0,     0,
  -394,  -394,     0,  -392,  -392,  -394,  -392,  -394,  -394,  -394,
  -394,  -394,  -394,  -394,  -392,  -394,     0,     0,  -394,  -394,
  -394,  -394,  -394,  -394,  -394,     0,     0,     0,     0,     0,
     0,     0,     0,     0,  -394,     0,     0,  -394,  -394,  -394,
  -394,  -394,  -394,  -394,  -394,  -394,  -394,  -394,  -394,  -394,
  -394,  -394,  -394,  -394,  -394,  -394,  -394,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,  -394,     0,     0,  -394,  -394,
  -394,  -394,  -394,  -394,     0,     0,  -393,  -393,  -393,     0,
  -393,     0,     0,     0,  -393,  -393,     0,  -394,  -394,  -393,
  -394,  -393,  -393,  -393,  -393,  -393,  -393,  -393,  -394,  -393,
     0,     0,  -393,  -393,  -393,  -393,  -393,  -393,  -393,     0,
     0,     0,     0,     0,     0,     0,     0,     0,  -393,     0,
     0,  -393,  -393,  -393,  -393,  -393,  -393,  -393,  -393,  -393,
  -393,  -393,  -393,  -393,  -393,  -393,  -393,  -393,  -393,  -393,
  -393,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,  -393,
     0,     0,  -393,  -393,  -393,  -393,  -393,  -393,     0,     0,
  -395,  -395,  -395,     0,  -395,     0,     0,     0,  -395,  -395,
     0,  -393,  -393,  -395,  -393,  -395,  -395,  -395,  -395,  -395,
  -395,  -395,  -393,     0,     0,     0,  -395,  -395,  -395,  -395,
  -395,  -395,  -395,     0,     0,     0,     0,     0,     0,     0,
     0,     0,  -395,     0,     0,  -395,  -395,  -395,  -395,  -395,
  -395,  -395,  -395,  -395,  -395,  -395,  -395,  -395,  -395,  -395,
  -395,  -395,  -395,  -395,  -395,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,  -395,   564,     0,  -395,  -395,  -395,  -395,
  -395,  -395,   -67,     0,     3,     4,     5,     0,     7,     0,
     0,     0,     8,     9,     0,  -395,  -395,    10,     0,    11,
    12,    13,    14,    15,    16,    17,  -395,     0,     0,     0,
   192,    19,    20,    21,    22,    23,    24,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    27,     0,     0,    30,
    31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    48,    49,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,    50,     0,     0,
   203,    52,    53,   204,   205,    55,     0,     0,     3,     4,
     5,     0,     7,     0,     0,     0,     8,     9,     0,   206,
    57,    10,     0,    11,    12,    13,    14,    15,    16,    17,
   207,     0,     0,     0,   192,    19,    20,    21,    22,    23,
    24,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    27,     0,     0,    30,    31,    32,    33,    34,    35,    36,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    48,    49,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    50,     0,     0,   203,    52,    53,   204,   205,    55,
     0,     0,  -213,  -213,  -213,     0,  -213,     0,     0,     0,
  -213,  -213,     0,   206,    57,  -213,     0,  -213,  -213,  -213,
  -213,  -213,  -213,  -213,   219,     0,     0,     0,  -213,  -213,
  -213,  -213,  -213,  -213,  -213,     0,     0,     0,     0,     0,
     0,     0,     0,     0,  -213,     0,     0,  -213,  -213,  -213,
  -213,  -213,  -213,  -213,  -213,  -213,  -213,  -213,  -213,  -213,
  -213,  -213,  -213,  -213,  -213,  -213,  -213,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,  -213,     0,     0,  -213,  -213,
  -213,  -213,  -213,  -213,     0,     0,  -397,  -397,  -397,     0,
  -397,     0,     0,     0,  -397,  -397,     0,  -213,  -213,  -397,
     0,  -397,  -397,  -397,  -397,  -397,  -397,  -397,   221,     0,
     0,     0,  -397,  -397,  -397,  -397,  -397,  -397,  -397,     0,
     0,     0,     0,     0,     0,     0,     0,     0,  -397,     0,
     0,  -397,  -397,  -397,  -397,  -397,  -397,  -397,  -397,  -397,
  -397,  -397,  -397,  -397,  -397,  -397,  -397,  -397,  -397,  -397,
  -397,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,  -397,
     0,     0,  -397,  -397,  -397,  -397,  -397,  -397,     0,     0,
  -396,  -396,  -396,     0,  -396,     0,     0,     0,  -396,  -396,
     0,  -397,  -397,  -396,     0,  -396,  -396,  -396,  -396,  -396,
  -396,  -396,  -397,     0,     0,     0,  -396,  -396,  -396,  -396,
  -396,  -396,  -396,     0,     0,     0,     0,     0,     0,     0,
     0,     0,  -396,     0,     0,  -396,  -396,  -396,  -396,  -396,
  -396,  -396,  -396,  -396,  -396,  -396,  -396,  -396,  -396,  -396,
  -396,  -396,  -396,  -396,  -396,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,  -396,     0,     0,  -396,  -396,  -396,  -396,
  -396,  -396,     0,     0,  -398,  -398,  -398,     0,  -398,     0,
     0,     0,  -398,  -398,     0,  -396,  -396,  -398,     0,  -398,
  -398,  -398,  -398,  -398,  -398,  -398,  -396,     0,     0,     0,
  -398,  -398,  -398,  -398,  -398,  -398,  -398,     0,     0,     0,
     0,     0,     0,     0,     0,     0,  -398,     0,     0,  -398,
  -398,  -398,  -398,  -398,  -398,  -398,  -398,  -398,  -398,  -398,
  -398,  -398,  -398,  -398,  -398,  -398,  -398,  -398,  -398,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,  -398,     0,     0,
  -398,  -398,  -398,  -398,  -398,  -398,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,  -398,
  -398,    90,    91,    92,    93,    94,    95,    96,    97,     0,
  -398,    98,    99,   100,   101,   102,     0,     0,   103,   104,
   105,   106,   107,   108,   109,     0,     0,   110,   111,   112,
   167,   168,   169,   170,   117,   118,   119,   120,   121,   122,
   123,   124,   125,   126,   127,   128,   171,   172,   173,   132,
   254,   255,   174,   256,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,   134,   135,   136,   137,   138,   139,
     0,   140,   141,     0,     0,   142,     0,     0,     0,   143,
   144,   145,   146,     0,     0,     0,     0,     0,     0,     0,
   147,     0,     0,     0,     0,     0,   148,   149,   150,   151,
   152,   153,   154,   155,   156,   157,     0,   158,    90,    91,
    92,    93,    94,    95,    96,    97,   159,     0,    98,    99,
   100,   101,   102,     0,     0,   103,   104,   105,   106,   107,
   108,   109,     0,     0,   110,   111,   112,   167,   168,   169,
   170,   117,   118,   119,   120,   121,   122,   123,   124,   125,
   126,   127,   128,   171,   172,   173,   132,   226,     0,   174,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,   134,   135,   136,   137,   138,   139,     0,   140,   141,
     0,     0,   142,     0,     0,     0,   143,   144,   145,   146,
     0,     0,     0,     0,     0,     0,     0,   147,     0,    55,
     0,     0,     0,   148,   149,   150,   151,   152,   153,   154,
   155,   156,   157,     0,   158,    90,    91,    92,    93,    94,
    95,    96,    97,   159,     0,    98,    99,   100,   101,   102,
     0,     0,   103,   104,   105,   106,   107,   108,   109,     0,
     0,   110,   111,   112,   167,   168,   169,   170,   117,   118,
   119,   120,   121,   122,   123,   124,   125,   126,   127,   128,
   171,   172,   173,   132,     0,     0,   174,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,   134,   135,
   136,   137,   138,   139,     0,   140,   141,     0,     0,   142,
     0,     0,     0,   143,   144,   145,   146,     0,     0,     0,
     0,     0,     0,     0,   147,     0,    55,     0,     0,     0,
   148,   149,   150,   151,   152,   153,   154,   155,   156,   157,
     0,   158,    90,    91,    92,    93,    94,    95,    96,    97,
   159,     0,    98,    99,   100,   101,   102,     0,     0,   103,
   104,   105,   106,   107,   108,   109,     0,     0,   110,   111,
   112,   167,   168,   169,   170,   117,   118,   119,   120,   121,
   122,   123,   124,   125,   126,   127,   128,   171,   172,   173,
   132,     0,     0,   174,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,   134,   135,   136,   137,   138,
   139,     0,   140,   141,     0,     0,   142,     0,     0,     0,
   143,   144,   145,   146,     0,     0,     0,     0,     0,     0,
     0,   147,     0,     0,     0,     0,     0,   148,   149,   150,
   151,   152,   153,   154,   155,   156,   157,     0,   158,     0,
     3,     4,     5,     0,     7,     0,     0,   159,     8,     9,
     0,     0,     0,    10,     0,    11,    12,    13,    14,    15,
    16,    17,     0,     0,     0,     0,   192,    19,    20,    21,
    22,    23,    24,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    27,     0,     0,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    48,    49,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    50,     0,     0,   203,    52,    53,   204,
   205,    55,     0,     0,     0,     0,     0,     0,     0,     3,
     4,     5,     0,     7,     0,   206,    57,     8,     9,     0,
     0,   354,    10,     0,    11,    12,    13,    14,    15,    16,
    17,     0,     0,     0,     0,   192,    19,    20,    21,    22,
    23,    24,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    27,     0,     0,    30,    31,    32,    33,    34,    35,
    36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
    46,    47,    48,    49,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    50,     0,     0,   203,    52,    53,   204,   205,
    55,     0,     0,     0,     0,     0,     0,     0,     3,     4,
     5,     6,     7,     0,   206,    57,     8,     9,     0,     0,
   365,    10,     0,    11,    12,    13,    14,    15,    16,    17,
     0,     0,     0,     0,    18,    19,    20,    21,    22,    23,
    24,     0,     0,    25,     0,     0,     0,     0,     0,    26,
    27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    48,    49,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    50,     0,     0,    51,    52,    53,    54,     0,    55,
     0,     0,     3,     4,     5,     0,     7,     0,     0,     0,
     8,     9,     0,    56,    57,    10,     0,    11,    12,    13,
    14,    15,    16,    17,     0,     0,     0,     0,    18,    19,
    20,    21,    22,    23,    24,     0,     0,    25,     0,     0,
     0,     0,     0,     0,    27,     0,     0,    30,    31,    32,
    33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    48,    49,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    50,     0,     0,    51,    52,
    53,    54,     0,    55,     0,     0,     3,     4,     5,     0,
     7,     0,     0,     0,     8,     9,     0,    56,    57,    10,
     0,    11,    12,    13,    14,    15,    16,    17,     0,     0,
     0,     0,   192,    19,    20,    21,    22,    23,    24,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    27,     0,
     0,    30,    31,    32,    33,    34,    35,    36,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
    49,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,    50,
     0,     0,   203,    52,    53,   204,   205,    55,     0,     0,
     3,     4,     5,     0,     7,     0,     0,     0,     8,     9,
     0,   206,    57,    10,     0,    11,    12,    13,    14,    15,
    16,    17,     0,     0,     0,     0,   192,    19,    20,    21,
    22,    23,    24,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    27,     0,     0,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    48,    49,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    50,     0,     0,   203,    52,    53,   523,
   205,    55,     0,     0,     3,     4,     5,     0,     7,     0,
     0,     0,     8,     9,     0,   206,    57,    10,     0,    11,
    12,    13,    14,    15,    16,    17,     0,     0,     0,     0,
   192,   193,   194,    21,    22,    23,    24,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    27,     0,     0,    30,
    31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    48,    49,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,    50,     0,     0,
   203,    52,    53,   532,   205,    55,     0,     0,     3,     4,
     5,     0,     7,     0,     0,     0,     8,     9,     0,   206,
    57,    10,     0,    11,    12,    13,    14,    15,    16,    17,
     0,     0,     0,     0,   192,   193,   194,    21,    22,    23,
    24,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    27,     0,     0,    30,    31,    32,    33,    34,    35,    36,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    48,    49,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    50,     0,     0,   203,    52,    53,   680,   205,    55,
     0,     0,     3,     4,     5,     0,     7,     0,     0,     0,
     8,     9,     0,   206,    57,    10,     0,    11,    12,    13,
    14,    15,    16,    17,     0,     0,     0,     0,   192,    19,
    20,    21,    22,    23,    24,     0,     0,     0,     0,     0,
     0,     0,     0,     0,    27,     0,     0,    30,    31,    32,
    33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    48,    49,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    50,     0,     0,   203,    52,
    53,   240,     0,    55,     0,     0,     3,     4,     5,     0,
     7,     0,     0,     0,     8,     9,     0,   206,    57,    10,
     0,    11,    12,    13,    14,    15,    16,    17,     0,     0,
     0,     0,   192,    19,    20,    21,    22,    23,    24,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    27,     0,
     0,    30,    31,    32,    33,    34,    35,    36,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
    49,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,    50,
     0,     0,   203,    52,    53,   410,     0,    55,     0,     0,
     3,     4,     5,     0,     7,     0,     0,     0,     8,     9,
     0,   206,    57,    10,     0,    11,    12,    13,    14,    15,
    16,    17,     0,     0,     0,     0,   192,   193,   194,    21,
    22,    23,    24,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    27,     0,     0,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    48,    49,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    50,     0,     0,   203,    52,    53,   410,
     0,    55,     0,     0,     3,     4,     5,     0,     7,     0,
     0,     0,     8,     9,     0,   206,    57,    10,     0,    11,
    12,    13,    14,    15,    16,    17,     0,     0,     0,     0,
   192,   193,   194,    21,    22,    23,    24,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    27,     0,     0,    30,
    31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    48,    49,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,    50,     0,     0,
   203,    52,    53,   504,     0,    55,     0,     0,     3,     4,
     5,     0,     7,     0,     0,     0,     8,     9,     0,   206,
    57,    10,     0,    11,    12,    13,    14,    15,    16,    17,
     0,     0,     0,     0,   192,    19,    20,    21,    22,    23,
    24,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    27,     0,     0,    30,    31,    32,    33,    34,    35,    36,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    48,    49,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    50,     0,     0,   203,    52,    53,   549,     0,    55,
     0,     0,     3,     4,     5,     0,     7,     0,     0,     0,
     8,     9,     0,   206,    57,    10,     0,    11,    12,    13,
    14,    15,    16,    17,     0,     0,     0,     0,   192,   193,
   194,    21,    22,    23,    24,     0,     0,     0,     0,     0,
     0,     0,     0,     0,    27,     0,     0,    30,    31,    32,
    33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    48,    49,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    50,     0,     0,   203,    52,
    53,   640,     0,    55,     0,     0,     3,     4,     5,     0,
     7,     0,     0,     0,     8,     9,     0,   206,    57,    10,
     0,    11,    12,    13,    14,    15,    16,    17,     0,     0,
     0,     0,   192,   193,   194,    21,    22,    23,    24,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    27,     0,
     0,    30,    31,    32,    33,    34,    35,    36,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
    49,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,    50,
     0,     0,   203,    52,    53,   674,     0,    55,     0,     0,
     3,     4,     5,     0,     7,     0,     0,     0,     8,     9,
     0,   206,    57,    10,     0,    11,    12,    13,    14,    15,
    16,    17,     0,     0,     0,     0,   192,   193,   194,    21,
    22,    23,    24,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    27,     0,     0,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    48,    49,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    50,     0,     0,   203,    52,    53,     0,
     0,    55,     0,     0,     3,     4,     5,     0,     7,     0,
     0,     0,     8,     9,     0,   206,    57,    10,     0,    11,
    12,    13,    14,    15,    16,    17,     0,     0,     0,     0,
   192,    19,    20,    21,    22,    23,    24,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    27,     0,     0,    30,
    31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    48,    49,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,    50,     0,     0,
   203,    52,    53,     0,     0,    55,     0,     0,     3,     4,
     5,     0,     7,     0,     0,     0,     8,     9,     0,   206,
    57,    10,     0,    11,    12,    13,    14,    15,    16,    17,
     0,     0,     0,     0,   192,   193,   194,    21,    22,    23,
    24,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   195,     0,     0,    30,    31,    32,    33,    34,    35,    36,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    50,     0,     0,    51,    52,    53,    54,     0,    55,
     3,     4,     5,     0,     7,   637,     0,     0,     8,     9,
     0,     0,     0,    10,     0,    11,    12,    13,    14,    15,
    16,    17,     0,     0,     0,     0,   192,   193,   194,    21,
    22,    23,    24,     0,     0,     0,     0,     0,     0,     0,
     0,     0,   195,     0,     0,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    50,     0,     0,    51,    52,    53,    54,
     0,    55,     3,     4,     5,     0,     7,     0,     0,     0,
     8,     9,     0,     0,     0,    10,     0,    11,    12,    13,
    14,    15,    16,    17,     0,     0,     0,     0,   192,   193,
   194,    21,    22,    23,    24,     0,     0,     0,     0,     0,
     0,     0,     0,     0,   195,     0,     0,    30,    31,    32,
    33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    50,     0,     0,   275,    52,
    53,   276,     0,    55,     3,     4,     5,     0,     7,     0,
     0,     0,     8,     9,     0,     0,     0,    10,     0,    11,
    12,    13,    14,    15,    16,    17,     0,     0,     0,     0,
   192,   193,   194,    21,    22,    23,    24,     0,     0,     0,
     0,     0,     0,     0,     0,     0,   195,     0,     0,    30,
    31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   454,   455,     0,     0,   456,     0,     0,    50,     0,     0,
   203,    52,    53,     0,     0,    55,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   460,   455,     0,     0,   461,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   512,   449,     0,     0,   450,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   514,   455,     0,     0,   515,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   528,   449,     0,     0,   450,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   529,   455,     0,     0,   530,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   552,   449,     0,     0,   450,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   553,   455,     0,     0,   554,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   717,   449,     0,     0,   450,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
   718,   455,     0,     0,   719,     0,     0,     0,   159,     0,
     0,     0,     0,     0,     0,     0,   134,   135,   136,   137,
   138,   139,     0,   140,   141,     0,     0,   142,     0,     0,
     0,   143,   144,   145,   146,     0,     0,     0,     0,     0,
     0,     0,   147,     0,     0,     0,     0,     0,   148,   149,
   150,   151,   152,   153,   154,   155,   156,   157,     0,   158,
     0,     0,     0,     0,     0,     0,     0,     0,   159,   279,
   280,   281,   282,   283,   284,   285,   286,   287,   288,   289,
   290,   291,     0,     0,   292,   293,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,   294,     0,   295,
   296,   297,   298,   299,   300,   301,   302,   303,   304,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,   228,   279,   280,   281,   282,   283,   284,   285,   286,
   287,   288,   289,   290,   291,     0,     0,   292,   293,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   294,     0,   295,   296,   297,   298,   299,   300,   301,   302,
   303,   304,     0,     0,     0,     0,     0,     0,     0,   519,
   279,   280,   281,   282,   283,   284,   285,   286,   287,   288,
   289,   290,   291,     0,     0,   292,   293,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,   294,     0,
   295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     0,     0,     0,     0,     0,     0,     0,  -218,   279,   280,
   281,   282,   283,   284,   285,   286,   287,   288,   289,   290,
   291,     0,     0,   292,   293,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,   294,     0,   295,   296,
   297,   298,   299,   300,   301,   302,   303,   304,     0,     0,
     0,     0,     0,     0,     0,  -219,   279,   280,   281,   282,
   283,   284,   285,   286,   287,   288,   289,   290,   291,     0,
     0,   292,   293,     0,     0,     0,   356,     0,     0,     0,
     0,     0,     0,     0,   294,     0,   295,   296,   297,   298,
   299,   300,   301,   302,   303,   304,   279,   280,   281,   282,
   283,   284,   285,   286,   287,   288,   289,   290,   291,     0,
     0,   292,   293,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,   294,   563,   295,   296,   297,   298,
   299,   300,   301,   302,   303,   304,   279,   280,   281,   282,
   283,   284,   285,   286,   287,   288,   289,   290,   291,     0,
     0,   292,   293,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,   294,     0,   295,   296,   297,   298,
   299,   300,   301,   302,   303,   304,   279,-32768,-32768,-32768,
-32768,   284,   285,     0,     0,-32768,-32768,     0,     0,     0,
     0,   292,   293,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,   295,   296,   297,   298,
   299,   300,   301,   302,   303,   304,   279,   280,   281,   282,
   283,   284,   285,     0,     0,   288,   289,     0,     0,     0,
     0,   292,   293,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,   295,   296,   297,   298,
   299,   300,   301,   302,   303,   304
};

static const short yycheck[] = {     1,
     2,    52,    53,    18,    19,     7,     8,     9,    10,   221,
     6,    13,   341,   346,     2,   327,    18,    19,   363,     5,
    59,    20,    26,    25,   195,    51,   217,    82,    25,   183,
    26,   307,    19,    52,   590,    26,   357,    56,    54,   693,
   462,   463,   363,   333,     1,    13,    26,   392,    10,    51,
    52,   595,    54,     4,    56,   487,   488,    68,    13,   236,
   305,   306,   120,   308,   309,    13,    68,     5,     6,    55,
   241,    50,    13,    15,   350,    17,    13,   731,    36,    37,
    25,    36,    37,    82,   592,    87,   362,   595,    26,   111,
    36,    37,   103,   104,   105,   106,   107,    59,   275,    50,
    27,    25,    85,   100,   349,    28,    25,    36,    37,    36,
    37,    87,    25,    92,    93,   360,   361,    55,   115,    95,
   111,    85,   119,    95,   400,   115,    88,     1,     2,    85,
   113,   111,    95,     7,     8,     9,    10,   382,    58,   119,
   115,    61,    99,    76,    18,    19,   702,   186,    25,   113,
   694,    25,   120,   121,   399,   100,   120,   113,    25,     8,
   716,   352,   120,   120,   121,   120,   121,   100,   121,   481,
   115,   119,   120,   121,   120,   121,   100,    51,    52,   120,
   121,   100,    56,   120,   121,   114,   694,   100,   190,   191,
    95,   115,   207,   120,   121,   194,   115,   368,   519,   370,
    95,   203,   115,   202,   219,   207,   221,   629,   630,   224,
   236,    17,   502,    87,    25,   386,   537,   219,    95,   221,
   207,   119,   224,   100,   186,   657,   658,    87,    95,   231,
   662,    87,   219,   100,   236,    95,    50,   114,   115,    95,
    54,     8,     9,    10,    87,   115,    13,   114,   115,   275,
   120,    85,    95,    68,   273,   115,   307,    85,    25,   278,
   276,   263,   264,   265,   266,   267,   268,   269,   270,    83,
    87,   273,    85,   275,   276,   263,   278,   622,    95,   113,
   268,    26,   116,   715,    85,   113,    85,   620,   307,   100,
   105,   106,   107,   538,   539,   120,   121,   119,   115,   350,
   113,   622,   473,   116,   115,   307,   357,    85,    25,    85,
    87,   362,   113,    85,   113,   116,   190,   191,    95,    87,
    87,    36,    37,   325,   326,   537,    85,    95,    85,   203,
    85,   350,   119,   207,   336,   113,   527,   113,   340,   119,
    85,   113,   357,   362,   116,   219,   675,   221,   350,   400,
   224,   663,   506,   115,   113,   357,   113,   231,   113,   321,
   362,   116,   236,     1,     2,   655,   111,   305,   113,     7,
   389,   116,   376,   221,   119,    13,   224,   379,    85,   550,
   376,   400,   115,   345,   346,   675,    85,   389,    85,   263,
   264,   265,   266,   267,   268,   269,   270,   452,   400,   273,
    85,   275,   111,   458,   278,    68,   113,   462,   463,   116,
   348,    85,   114,    51,   113,   115,   113,   116,   589,   116,
    85,   115,   360,   190,   191,   701,   120,   115,   113,   112,
   621,   116,   120,   307,   625,    14,    15,   727,   376,   113,
    18,    19,    50,   381,    52,    53,    54,    55,   113,   603,
    87,   325,   326,   452,   114,   700,   114,   628,    95,    15,
   398,   117,   336,   634,    87,    87,   340,    50,   470,   471,
    13,    54,    95,    95,    10,    53,   350,    52,   115,   114,
   482,   114,   115,   357,    92,    93,   537,   491,   362,    64,
    65,   115,   115,   115,   496,   491,   114,   264,   265,   266,
   267,   114,   269,   270,   490,   379,   468,   112,   244,   115,
   246,   119,   248,   114,   513,   389,   518,   671,   115,   114,
   711,   483,   537,   117,    10,     1,   400,    95,   464,   465,
   115,     7,    50,    50,   115,   537,    88,     9,     1,     2,
    10,   543,     5,   115,     7,     8,     9,    10,    68,   115,
    13,   115,   490,   491,   117,   557,   558,   115,    93,   326,
   117,   114,    25,    83,    84,   203,   114,    50,   112,    52,
    53,    54,    55,    10,   114,   117,   578,   579,    93,    10,
   100,   101,   102,   103,   104,   105,   106,   107,    51,    10,
    10,    54,   100,   231,    10,    10,   470,   471,   236,   112,
   602,   115,   114,    10,   606,    68,    10,   609,   482,    92,
    93,   114,    10,    10,   616,   617,   618,    68,   117,    10,
   582,    10,   496,     0,    87,   263,     0,    68,   278,   207,
   268,   722,    83,    84,    74,   557,     5,   275,   663,   481,
   592,   219,   592,   221,   518,    59,   224,   649,    -1,    -1,
   701,   102,   103,   104,   105,   106,   107,    -1,   620,    -1,
    -1,    -1,    -1,   537,     1,     2,   668,    -1,    -1,   543,
     7,     8,     9,    10,    68,    -1,    13,    39,    40,    41,
    42,    43,   701,    -1,   558,    -1,    -1,   325,    25,    83,
    84,    -1,    -1,    -1,    -1,   273,   698,    -1,   336,   701,
   278,   703,   340,   470,   578,   579,    -1,    -1,   710,   103,
   104,   105,   106,   107,    51,    -1,    -1,    54,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,   190,   191,    -1,
    -1,    68,   606,    -1,    -1,   609,    -1,    -1,    -1,    -1,
   203,   379,   616,   617,   618,    -1,    -1,    -1,    -1,    -1,
    87,   518,    -1,    -1,   332,   231,    -1,    -1,    -1,    -1,
   338,   699,    -1,    -1,   342,    -1,    -1,    -1,   231,    -1,
    -1,    -1,    -1,   236,    -1,   649,   543,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
   557,    -1,    -1,    -1,   668,    -1,    -1,    -1,    -1,    -1,
   263,   264,   265,   266,   267,   268,   269,   270,    -1,    -1,
    -1,    -1,   275,   276,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,   698,    -1,    -1,   701,    -1,   703,
    -1,    -1,    -1,   471,    -1,    -1,   710,    -1,    -1,    -1,
    -1,    -1,   609,    -1,   482,    -1,    -1,    -1,    -1,   325,
    -1,    -1,    -1,   190,   191,    -1,    -1,    -1,   496,    -1,
   336,    -1,   325,   326,   340,    -1,   203,    -1,    -1,    -1,
    -1,    -1,    -1,   336,    -1,    -1,    -1,   340,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,   231,    -1,    -1,    -1,    -1,   236,
    -1,    -1,    -1,   379,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,   379,    -1,    -1,   557,
   558,    -1,    -1,    -1,    -1,    -1,   263,   264,   265,   266,
   267,   268,   269,   270,    -1,    -1,    -1,    -1,   275,   276,
   578,   579,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,     8,     9,    10,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,   602,    -1,    -1,    -1,   606,    -1,
    25,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   616,   617,
   618,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   325,   326,
    -1,    -1,    -1,    -1,    -1,   471,    -1,    -1,    -1,   336,
    -1,    -1,    -1,   340,    -1,    -1,   482,   470,   471,    -1,
    -1,   649,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   482,
   496,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
   668,    -1,    87,   496,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,   379,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,   518,    -1,    -1,    -1,    -1,
   698,    -1,    -1,    -1,    -1,   703,    -1,    -1,    -1,    -1,
    -1,    -1,   710,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
   543,    -1,   558,     0,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,     8,     9,    10,   557,   558,    13,    14,    15,    -1,
    17,    -1,   578,   579,    -1,    -1,    -1,    -1,    -1,    -1,
    27,    -1,    -1,    -1,    -1,   578,   579,    -1,    -1,    36,
    37,    -1,    39,    40,    41,    42,    43,    18,    19,    -1,
   606,    -1,    -1,   470,   471,   190,   191,    -1,    -1,   602,
   616,   617,   618,   606,    -1,   482,   609,    -1,    -1,    -1,
    -1,    -1,    -1,   616,   617,   618,    -1,    48,    49,   496,
    -1,    52,    53,    -1,    -1,    56,    57,    -1,    85,    -1,
    -1,    -1,    -1,   649,    -1,    52,    53,    -1,    -1,    -1,
    -1,   518,    -1,    -1,    -1,    -1,   649,    -1,    -1,    -1,
    -1,    -1,   668,    -1,    -1,   112,   113,   114,    -1,    -1,
   117,    -1,   119,   120,   121,   668,   543,    -1,    -1,   264,
   265,   266,   267,    -1,   269,   270,    -1,    -1,    -1,    -1,
   557,   558,   698,    -1,    -1,    -1,    -1,   703,    -1,    -1,
    -1,    -1,    -1,    -1,   710,   698,    -1,    -1,    -1,    -1,
   703,   578,   579,    -1,    -1,    -1,    -1,   710,    -1,    -1,
    -1,    -1,    68,    69,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,   602,    -1,    83,    84,   606,
    -1,   326,   609,    -1,    -1,    -1,    -1,    -1,    -1,   616,
   617,   618,    98,    99,   100,   101,   102,   103,   104,   105,
   106,   107,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,   179,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,   649,   204,   205,   206,   207,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   219,    -1,
   221,   668,    -1,   224,    -1,   212,    -1,    -1,    -1,    -1,
   217,    -1,    -1,    -1,   221,    -1,    -1,    -1,    -1,   240,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,   698,    -1,    -1,    -1,    -1,   703,    -1,    -1,    -1,
    -1,    -1,    -1,   710,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,   273,    -1,    -1,    -1,    -1,   278,   279,   280,
   281,   282,   283,   284,   285,   286,   287,   288,   289,   290,
   291,   292,   293,   294,   295,   296,   297,   298,   299,   300,
   301,   302,   303,   304,    -1,   470,   307,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,   316,    -1,    -1,    -1,    -1,
   307,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,   332,    -1,    -1,    -1,    -1,    -1,   338,   339,    -1,
    -1,   342,    -1,    -1,    -1,   332,   333,    -1,    -1,   350,
    -1,    -1,    -1,   518,    -1,   356,   357,    -1,    -1,    -1,
    -1,   362,   363,   350,    -1,   352,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,   362,    -1,   378,   543,    -1,
    -1,    -1,   369,    -1,    -1,    -1,    -1,    -1,   389,    -1,
    -1,   392,    -1,   394,    -1,    -1,    -1,    -1,    -1,   400,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,    -1,   410,
    -1,    -1,    -1,   400,    -1,    -1,    66,    67,    68,    69,
    70,    71,   409,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,   609,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    -1,    -1,    -1,    -1,    -1,   466,    -1,    -1,   118,    -1,
    -1,   458,    -1,    -1,    -1,   462,   463,   464,   465,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   485,    -1,
   487,   488,    -1,   504,    -1,    -1,    -1,   494,    -1,    -1,
   497,    -1,   499,    -1,    -1,   502,    -1,    -1,    -1,    -1,
    -1,    -1,   523,    -1,    -1,    -1,    -1,    -1,    -1,   516,
    -1,   532,    -1,    -1,    -1,    -1,   537,    -1,    -1,    -1,
   527,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   549,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
   561,    -1,   563,   564,    -1,    -1,   567,   568,    -1,    -1,
    -1,    -1,    -1,    -1,    68,    69,    70,    71,    72,    73,
    74,    75,    -1,    77,    78,   586,    -1,    -1,    -1,    83,
    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
   601,    -1,    -1,   590,    98,    99,   100,   101,   102,   103,
   104,   105,   106,   107,   615,    -1,    -1,    -1,    -1,    -1,
    -1,   622,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,   621,    -1,    -1,    -1,   625,   640,
    -1,    -1,   629,   630,    -1,   646,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   655,    -1,
   657,   658,    -1,   674,    -1,   662,    -1,    -1,    -1,   680,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   675,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
   701,    -1,    -1,    -1,    -1,    -1,   693,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,   701,   702,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,   711,    -1,    -1,    -1,   715,   716,
    -1,    -1,    -1,    -1,    -1,   722,    -1,    -1,    -1,    -1,
   727,    -1,     0,     1,   731,     3,     4,     5,     6,     7,
    -1,    -1,    -1,    11,    12,    -1,    -1,    -1,    16,    -1,
    18,    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,
    -1,    29,    30,    31,    32,    33,    34,    35,    -1,    -1,
    38,    -1,    -1,    -1,    -1,    -1,    44,    45,    46,    47,
    48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
    58,    59,    60,    61,    62,    63,    64,    65,    66,    67,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,     0,
    -1,    89,    90,    91,    92,    -1,    94,     8,     9,    10,
    -1,    -1,    13,    14,    15,    -1,    17,    -1,    -1,    -1,
   108,   109,    -1,    -1,    -1,    26,    27,    -1,    -1,    -1,
    -1,    -1,   120,   121,    -1,    36,    37,    -1,    39,    40,
    41,    42,    43,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,    69,    70,
    71,    72,    73,    74,    75,    76,    77,    78,    79,    80,
    -1,    -1,    83,    84,    85,    -1,    87,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    95,    96,    -1,    98,    99,   100,
   101,   102,   103,   104,   105,   106,   107,    -1,    -1,    -1,
   111,   112,   113,   114,   115,   116,    -1,    -1,    -1,   120,
   121,     1,    -1,     3,     4,     5,     6,     7,     8,     9,
    10,    11,    12,    -1,    -1,    15,    16,    -1,    18,    19,
    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,    29,
    30,    31,    32,    33,    34,    35,    -1,    -1,    38,    -1,
    -1,    -1,    -1,    -1,    44,    45,    46,    47,    48,    49,
    50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
    60,    61,    62,    63,    64,    65,    66,    67,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,
    90,    91,    92,    -1,    94,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,   109,
    -1,    -1,    -1,     1,    -1,     3,     4,     5,     6,     7,
   120,   121,    10,    11,    12,    -1,    14,    15,    16,    -1,
    18,    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,
    -1,    29,    30,    31,    32,    33,    34,    35,    -1,    -1,
    38,    -1,    -1,    -1,    -1,    -1,    44,    45,    46,    47,
    48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
    58,    59,    60,    61,    62,    63,    64,    65,    66,    67,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,
    -1,    89,    90,    91,    92,    -1,    94,    -1,     1,    -1,
     3,     4,     5,     6,     7,    -1,    -1,    10,    11,    12,
   108,   109,    15,    16,    17,    18,    19,    20,    21,    22,
    23,    24,   120,   121,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    38,    -1,    -1,    -1,    -1,
    -1,    44,    45,    46,    47,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,
    -1,    94,    -1,     1,    -1,     3,     4,     5,     6,     7,
    -1,    -1,    10,    11,    12,   108,   109,    15,    16,    -1,
    18,    19,    20,    21,    22,    23,    24,   120,   121,    -1,
    -1,    29,    30,    31,    32,    33,    34,    35,    -1,    -1,
    38,    -1,    -1,    -1,    -1,    -1,    44,    45,    46,    47,
    48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
    58,    59,    60,    61,    62,    63,    64,    65,    66,    67,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,
    -1,    89,    90,    91,    92,    -1,    94,     1,    -1,     3,
     4,     5,     6,     7,    -1,     9,    10,    11,    12,    -1,
   108,   109,    16,    -1,    18,    19,    20,    21,    22,    23,
    24,    -1,   120,   121,    -1,    29,    30,    31,    32,    33,
    34,    35,    -1,    -1,    38,    -1,    -1,    -1,    -1,    -1,
    44,    45,    46,    47,    48,    49,    50,    51,    52,    53,
    54,    55,    56,    57,    58,    59,    60,    61,    62,    63,
    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,    -1,
    94,     1,    -1,     3,     4,     5,     6,     7,    -1,    -1,
    -1,    11,    12,    -1,   108,   109,    16,    -1,    18,    19,
    20,    21,    22,    23,    24,    -1,   120,   121,    -1,    29,
    30,    31,    32,    33,    34,    35,    -1,    -1,    38,    -1,
    -1,    -1,    -1,    -1,    44,    45,    46,    47,    48,    49,
    50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
    60,    61,    62,    63,    64,    65,    66,    67,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,
    90,    91,    92,    -1,    94,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,   109,
    -1,    -1,    -1,     1,   114,     3,     4,     5,     6,     7,
   120,   121,    -1,    11,    12,    -1,    -1,    -1,    16,    -1,
    18,    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,
    -1,    29,    30,    31,    32,    33,    34,    35,    -1,    -1,
    38,    -1,    -1,    -1,    -1,    -1,    44,    45,    46,    47,
    48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
    58,    59,    60,    61,    62,    63,    64,    65,    66,    67,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,
    -1,    89,    90,    91,    92,    -1,    94,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
   108,   109,    -1,    -1,    -1,     1,   114,     3,     4,     5,
     6,     7,   120,   121,    -1,    11,    12,    -1,    -1,    -1,
    16,    -1,    18,    19,    20,    21,    22,    23,    24,    -1,
    -1,    -1,    -1,    29,    30,    31,    32,    33,    34,    35,
    -1,    -1,    38,    -1,    -1,    -1,    -1,    -1,    44,    45,
    46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
    56,    57,    58,    59,    60,    61,    62,    63,    64,    65,
    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    86,    -1,    -1,    89,    90,    91,    92,    -1,    94,    -1,
     1,    -1,     3,     4,     5,     6,     7,    -1,    -1,    10,
    11,    12,   108,   109,    -1,    16,   112,    18,    19,    20,
    21,    22,    23,    24,   120,   121,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    -1,    -1,    38,    -1,    -1,
    -1,    -1,    -1,    44,    45,    46,    47,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
    61,    62,    63,    64,    65,    66,    67,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
    91,    92,    -1,    94,    -1,    -1,     3,     4,     5,     6,
     7,    -1,    -1,    -1,    11,    12,    -1,   108,   109,    16,
    -1,    18,    19,    20,    21,    22,    23,    24,    -1,   120,
   121,    -1,    29,    30,    31,    32,    33,    34,    35,    -1,
    -1,    38,    -1,    -1,    -1,    -1,    -1,    44,    45,    46,
    47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
    -1,    -1,    89,    90,    91,    92,    -1,    94,    -1,    -1,
     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
    -1,   108,   109,    16,    -1,    18,    19,    20,    21,    22,
    23,    24,    -1,    -1,   121,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    38,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,
    -1,    94,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,   108,   109,    -1,    -1,     3,
     4,     5,     6,     7,     8,     9,    10,   120,   121,    13,
    14,    15,    16,    17,    -1,    -1,    20,    21,    22,    23,
    24,    25,    26,    -1,    -1,    29,    30,    31,    32,    33,
    34,    35,    36,    37,    38,    39,    40,    41,    42,    43,
    44,    45,    46,    47,    48,    49,    50,    51,    52,    53,
    54,    55,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    66,    67,    68,    69,    70,    71,    -1,    73,
    74,    -1,    -1,    77,    -1,    -1,    -1,    81,    82,    83,
    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,    -1,
    -1,    -1,    -1,    -1,    98,    99,   100,   101,   102,   103,
   104,   105,   106,   107,    -1,   109,    -1,    -1,     3,     4,
     5,    -1,     7,    -1,   118,   119,    11,    12,    -1,    -1,
    -1,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
    -1,    26,    -1,    -1,    29,    30,    31,    32,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    -1,    -1,    48,    49,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
    65,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    86,    -1,    -1,    89,    90,    91,    92,    93,    94,
    -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
    11,    12,    -1,   108,   109,    16,   111,    18,    19,    20,
    21,    22,    23,    24,   119,    26,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
    61,    62,    63,    64,    65,    66,    67,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
    91,    92,    93,    94,    -1,    -1,     3,     4,     5,    -1,
     7,    -1,    -1,    -1,    11,    12,    -1,   108,   109,    16,
   111,    18,    19,    20,    21,    22,    23,    24,   119,    26,
    -1,    -1,    29,    30,    31,    32,    33,    34,    35,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,
    -1,    48,    49,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
    -1,    -1,    89,    90,    91,    92,    93,    94,    -1,    -1,
     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
    -1,   108,   109,    16,   111,    18,    19,    20,    21,    22,
    23,    24,   119,    -1,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    87,    -1,    89,    90,    91,    92,
    93,    94,    95,    -1,     3,     4,     5,    -1,     7,    -1,
    -1,    -1,    11,    12,    -1,   108,   109,    16,    -1,    18,
    19,    20,    21,    22,    23,    24,   119,    -1,    -1,    -1,
    29,    30,    31,    32,    33,    34,    35,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,
    49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    60,    61,    62,    63,    64,    65,    66,    67,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
    89,    90,    91,    92,    93,    94,    -1,    -1,     3,     4,
     5,    -1,     7,    -1,    -1,    -1,    11,    12,    -1,   108,
   109,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
   119,    -1,    -1,    -1,    29,    30,    31,    32,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    -1,    -1,    48,    49,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
    65,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    86,    -1,    -1,    89,    90,    91,    92,    93,    94,
    -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
    11,    12,    -1,   108,   109,    16,    -1,    18,    19,    20,
    21,    22,    23,    24,   119,    -1,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
    61,    62,    63,    64,    65,    66,    67,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
    91,    92,    93,    94,    -1,    -1,     3,     4,     5,    -1,
     7,    -1,    -1,    -1,    11,    12,    -1,   108,   109,    16,
    -1,    18,    19,    20,    21,    22,    23,    24,   119,    -1,
    -1,    -1,    29,    30,    31,    32,    33,    34,    35,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,
    -1,    48,    49,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
    -1,    -1,    89,    90,    91,    92,    93,    94,    -1,    -1,
     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
    -1,   108,   109,    16,    -1,    18,    19,    20,    21,    22,
    23,    24,   119,    -1,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,
    93,    94,    -1,    -1,     3,     4,     5,    -1,     7,    -1,
    -1,    -1,    11,    12,    -1,   108,   109,    16,    -1,    18,
    19,    20,    21,    22,    23,    24,   119,    -1,    -1,    -1,
    29,    30,    31,    32,    33,    34,    35,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,
    49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    60,    61,    62,    63,    64,    65,    66,    67,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
    89,    90,    91,    92,    93,    94,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,
   109,     3,     4,     5,     6,     7,     8,     9,    10,    -1,
   119,    13,    14,    15,    16,    17,    -1,    -1,    20,    21,
    22,    23,    24,    25,    26,    -1,    -1,    29,    30,    31,
    32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
    42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
    52,    53,    54,    55,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    66,    67,    68,    69,    70,    71,
    -1,    73,    74,    -1,    -1,    77,    -1,    -1,    -1,    81,
    82,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    92,    -1,    -1,    -1,    -1,    -1,    98,    99,   100,   101,
   102,   103,   104,   105,   106,   107,    -1,   109,     3,     4,
     5,     6,     7,     8,     9,    10,   118,    -1,    13,    14,
    15,    16,    17,    -1,    -1,    20,    21,    22,    23,    24,
    25,    26,    -1,    -1,    29,    30,    31,    32,    33,    34,
    35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    48,    49,    50,    51,    52,    -1,    54,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    66,    67,    68,    69,    70,    71,    -1,    73,    74,
    -1,    -1,    77,    -1,    -1,    -1,    81,    82,    83,    84,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,    -1,    94,
    -1,    -1,    -1,    98,    99,   100,   101,   102,   103,   104,
   105,   106,   107,    -1,   109,     3,     4,     5,     6,     7,
     8,     9,    10,   118,    -1,    13,    14,    15,    16,    17,
    -1,    -1,    20,    21,    22,    23,    24,    25,    26,    -1,
    -1,    29,    30,    31,    32,    33,    34,    35,    36,    37,
    38,    39,    40,    41,    42,    43,    44,    45,    46,    47,
    48,    49,    50,    51,    -1,    -1,    54,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,
    68,    69,    70,    71,    -1,    73,    74,    -1,    -1,    77,
    -1,    -1,    -1,    81,    82,    83,    84,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    92,    -1,    94,    -1,    -1,    -1,
    98,    99,   100,   101,   102,   103,   104,   105,   106,   107,
    -1,   109,     3,     4,     5,     6,     7,     8,     9,    10,
   118,    -1,    13,    14,    15,    16,    17,    -1,    -1,    20,
    21,    22,    23,    24,    25,    26,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    48,    49,    50,
    51,    -1,    -1,    54,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,    70,
    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,    -1,
    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,   100,
   101,   102,   103,   104,   105,   106,   107,    -1,   109,    -1,
     3,     4,     5,    -1,     7,    -1,    -1,   118,    11,    12,
    -1,    -1,    -1,    16,    -1,    18,    19,    20,    21,    22,
    23,    24,    -1,    -1,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,
    93,    94,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,
     4,     5,    -1,     7,    -1,   108,   109,    11,    12,    -1,
    -1,   114,    16,    -1,    18,    19,    20,    21,    22,    23,
    24,    -1,    -1,    -1,    -1,    29,    30,    31,    32,    33,
    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,    53,
    54,    55,    56,    57,    58,    59,    60,    61,    62,    63,
    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,    93,
    94,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,     4,
     5,     6,     7,    -1,   108,   109,    11,    12,    -1,    -1,
   114,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
    -1,    -1,    -1,    -1,    29,    30,    31,    32,    33,    34,
    35,    -1,    -1,    38,    -1,    -1,    -1,    -1,    -1,    44,
    45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
    65,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    86,    -1,    -1,    89,    90,    91,    92,    -1,    94,
    -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
    11,    12,    -1,   108,   109,    16,    -1,    18,    19,    20,
    21,    22,    23,    24,    -1,    -1,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    -1,    -1,    38,    -1,    -1,
    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
    61,    62,    63,    64,    65,    66,    67,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
    91,    92,    -1,    94,    -1,    -1,     3,     4,     5,    -1,
     7,    -1,    -1,    -1,    11,    12,    -1,   108,   109,    16,
    -1,    18,    19,    20,    21,    22,    23,    24,    -1,    -1,
    -1,    -1,    29,    30,    31,    32,    33,    34,    35,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,
    -1,    48,    49,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
    -1,    -1,    89,    90,    91,    92,    93,    94,    -1,    -1,
     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
    -1,   108,   109,    16,    -1,    18,    19,    20,    21,    22,
    23,    24,    -1,    -1,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,
    93,    94,    -1,    -1,     3,     4,     5,    -1,     7,    -1,
    -1,    -1,    11,    12,    -1,   108,   109,    16,    -1,    18,
    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
    29,    30,    31,    32,    33,    34,    35,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,
    49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    60,    61,    62,    63,    64,    65,    66,    67,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
    89,    90,    91,    92,    93,    94,    -1,    -1,     3,     4,
     5,    -1,     7,    -1,    -1,    -1,    11,    12,    -1,   108,
   109,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
    -1,    -1,    -1,    -1,    29,    30,    31,    32,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    -1,    -1,    48,    49,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
    65,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    86,    -1,    -1,    89,    90,    91,    92,    93,    94,
    -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
    11,    12,    -1,   108,   109,    16,    -1,    18,    19,    20,
    21,    22,    23,    24,    -1,    -1,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
    61,    62,    63,    64,    65,    66,    67,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
    91,    92,    -1,    94,    -1,    -1,     3,     4,     5,    -1,
     7,    -1,    -1,    -1,    11,    12,    -1,   108,   109,    16,
    -1,    18,    19,    20,    21,    22,    23,    24,    -1,    -1,
    -1,    -1,    29,    30,    31,    32,    33,    34,    35,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,
    -1,    48,    49,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
    -1,    -1,    89,    90,    91,    92,    -1,    94,    -1,    -1,
     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
    -1,   108,   109,    16,    -1,    18,    19,    20,    21,    22,
    23,    24,    -1,    -1,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,
    -1,    94,    -1,    -1,     3,     4,     5,    -1,     7,    -1,
    -1,    -1,    11,    12,    -1,   108,   109,    16,    -1,    18,
    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
    29,    30,    31,    32,    33,    34,    35,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,
    49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    60,    61,    62,    63,    64,    65,    66,    67,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
    89,    90,    91,    92,    -1,    94,    -1,    -1,     3,     4,
     5,    -1,     7,    -1,    -1,    -1,    11,    12,    -1,   108,
   109,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
    -1,    -1,    -1,    -1,    29,    30,    31,    32,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    -1,    -1,    48,    49,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
    65,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    86,    -1,    -1,    89,    90,    91,    92,    -1,    94,
    -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
    11,    12,    -1,   108,   109,    16,    -1,    18,    19,    20,
    21,    22,    23,    24,    -1,    -1,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
    61,    62,    63,    64,    65,    66,    67,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
    91,    92,    -1,    94,    -1,    -1,     3,     4,     5,    -1,
     7,    -1,    -1,    -1,    11,    12,    -1,   108,   109,    16,
    -1,    18,    19,    20,    21,    22,    23,    24,    -1,    -1,
    -1,    -1,    29,    30,    31,    32,    33,    34,    35,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,
    -1,    48,    49,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
    -1,    -1,    89,    90,    91,    92,    -1,    94,    -1,    -1,
     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
    -1,   108,   109,    16,    -1,    18,    19,    20,    21,    22,
    23,    24,    -1,    -1,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    66,    67,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    -1,
    -1,    94,    -1,    -1,     3,     4,     5,    -1,     7,    -1,
    -1,    -1,    11,    12,    -1,   108,   109,    16,    -1,    18,
    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
    29,    30,    31,    32,    33,    34,    35,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,
    49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    60,    61,    62,    63,    64,    65,    66,    67,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
    89,    90,    91,    -1,    -1,    94,    -1,    -1,     3,     4,
     5,    -1,     7,    -1,    -1,    -1,    11,    12,    -1,   108,
   109,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
    -1,    -1,    -1,    -1,    29,    30,    31,    32,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    -1,    -1,    48,    49,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
    65,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    86,    -1,    -1,    89,    90,    91,    92,    -1,    94,
     3,     4,     5,    -1,     7,   100,    -1,    -1,    11,    12,
    -1,    -1,    -1,    16,    -1,    18,    19,    20,    21,    22,
    23,    24,    -1,    -1,    -1,    -1,    29,    30,    31,    32,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    -1,    -1,    48,    49,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
    63,    64,    65,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    91,    92,
    -1,    94,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
    11,    12,    -1,    -1,    -1,    16,    -1,    18,    19,    20,
    21,    22,    23,    24,    -1,    -1,    -1,    -1,    29,    30,
    31,    32,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
    61,    62,    63,    64,    65,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
    91,    92,    -1,    94,     3,     4,     5,    -1,     7,    -1,
    -1,    -1,    11,    12,    -1,    -1,    -1,    16,    -1,    18,
    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
    29,    30,    31,    32,    33,    34,    35,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,
    49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    60,    61,    62,    63,    64,    65,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    50,    51,    -1,    -1,    54,    -1,    -1,    86,    -1,    -1,
    89,    90,    91,    -1,    -1,    94,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    50,    51,    -1,    -1,    54,    -1,    -1,    -1,   118,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
    70,    71,    -1,    73,    74,    -1,    -1,    77,    -1,    -1,
    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,   109,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   118,    68,
    69,    70,    71,    72,    73,    74,    75,    76,    77,    78,
    79,    80,    -1,    -1,    83,    84,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    96,    -1,    98,
    99,   100,   101,   102,   103,   104,   105,   106,   107,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,   120,    68,    69,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    -1,    -1,    83,    84,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    96,    -1,    98,    99,   100,   101,   102,   103,   104,   105,
   106,   107,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   115,
    68,    69,    70,    71,    72,    73,    74,    75,    76,    77,
    78,    79,    80,    -1,    -1,    83,    84,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    96,    -1,
    98,    99,   100,   101,   102,   103,   104,   105,   106,   107,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,   115,    68,    69,
    70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
    80,    -1,    -1,    83,    84,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    96,    -1,    98,    99,
   100,   101,   102,   103,   104,   105,   106,   107,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,   115,    68,    69,    70,    71,
    72,    73,    74,    75,    76,    77,    78,    79,    80,    -1,
    -1,    83,    84,    -1,    -1,    -1,    88,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    96,    -1,    98,    99,   100,   101,
   102,   103,   104,   105,   106,   107,    68,    69,    70,    71,
    72,    73,    74,    75,    76,    77,    78,    79,    80,    -1,
    -1,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    96,    97,    98,    99,   100,   101,
   102,   103,   104,   105,   106,   107,    68,    69,    70,    71,
    72,    73,    74,    75,    76,    77,    78,    79,    80,    -1,
    -1,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    96,    -1,    98,    99,   100,   101,
   102,   103,   104,   105,   106,   107,    68,    69,    70,    71,
    72,    73,    74,    -1,    -1,    77,    78,    -1,    -1,    -1,
    -1,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    98,    99,   100,   101,
   102,   103,   104,   105,   106,   107,    68,    69,    70,    71,
    72,    73,    74,    -1,    -1,    77,    78,    -1,    -1,    -1,
    -1,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    98,    99,   100,   101,
   102,   103,   104,   105,   106,   107
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
#line 3 "bison.simple"

/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not GNU C.  */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#include <alloca.h>
#else /* not sparc */
#if defined (MSDOS) && !defined (__TURBOC__)
#include <malloc.h>
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#include <malloc.h>
 #pragma alloca
#else /* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca (unsigned int);
};
#else /* not __cplusplus */
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc.  */
#endif /* not GNU C.  */
#endif /* alloca not defined.  */

/* This is the parser code that is written into each bison parser
  when the %semantic_parser declaration is not specified in the grammar.
  It was written by Richard Stallman by simplifying the hairy parser
  used when %semantic_parser is specified.  */

/* Note: there must be only one dollar sign in this file.
   It is replaced by the list of actions, each action
   as one case of the switch.  */

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		-2
#define YYEOF		0
#define YYACCEPT	return(0)
#define YYABORT 	return(1)
#define YYERROR		goto yyerrlab1
/* 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);			\
      yychar1 = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { yyerror ("syntax error: cannot back up"); YYERROR; }	\
while (0)

#define YYTERROR	1
#define YYERRCODE	256

#ifndef YYPURE
#define YYLEX		yylex()
#endif

#ifdef YYPURE
#ifdef YYLSP_NEEDED
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, &yylloc, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval, &yylloc)
#endif
#else /* not YYLSP_NEEDED */
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval)
#endif
#endif /* not YYLSP_NEEDED */
#endif

/* If nonreentrant, generate the variables here */

#ifndef YYPURE

int	yychar;			/*  the lookahead symbol		*/
YYSTYPE	yylval;			/*  the semantic value of the		*/
				/*  lookahead symbol			*/

#ifdef YYLSP_NEEDED
YYLTYPE yylloc;			/*  location data for the lookahead	*/
				/*  symbol				*/
#endif

int yynerrs;			/*  number of parse errors so far       */
#endif  /* not YYPURE */

#if YYDEBUG != 0
int yydebug;			/*  nonzero means print parse trace	*/
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
#endif

/*  YYINITDEPTH indicates the initial size of the parser's stacks	*/

#ifndef	YYINITDEPTH
#define YYINITDEPTH 200
#endif

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

#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif

/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
int yyparse (void);
#endif

#if __GNUC__ > 1		/* GNU C and GNU C++ define this.  */
#define __yy_memcpy(TO,FROM,COUNT)	__builtin_memcpy(TO,FROM,COUNT)
#else				/* not GNU C or C++ */
#ifndef __cplusplus

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (to, from, count)
     char *to;
     char *from;
     int count;
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#else /* __cplusplus */

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (char *to, char *from, int count)
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#endif
#endif

#line 196 "bison.simple"

/* The user can define YYPARSE_PARAM as the name of an argument to be passed
   into yyparse.  The argument should have type void *.
   It should actually point to an object.
   Grammar actions can access the variable by casting it
   to the proper pointer type.  */

#ifdef YYPARSE_PARAM
#ifdef __cplusplus
#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */

int
yyparse(YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL
{
  register int yystate;
  register int yyn;
  register short *yyssp;
  register YYSTYPE *yyvsp;
  int yyerrstatus;	/*  number of tokens to shift before error messages enabled */
  int yychar1 = 0;		/*  lookahead token as an internal (translated) token number */

  short	yyssa[YYINITDEPTH];	/*  the state stack			*/
  YYSTYPE yyvsa[YYINITDEPTH];	/*  the semantic value stack		*/

  short *yyss = yyssa;		/*  refer to the stacks thru separate pointers */
  YYSTYPE *yyvs = yyvsa;	/*  to allow yyoverflow to reallocate them elsewhere */

#ifdef YYLSP_NEEDED
  YYLTYPE yylsa[YYINITDEPTH];	/*  the location stack			*/
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;

#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
#define YYPOPSTACK   (yyvsp--, yyssp--)
#endif

  int yystacksize = YYINITDEPTH;

#ifdef YYPURE
  int yychar;
  YYSTYPE yylval;
  int yynerrs;
#ifdef YYLSP_NEEDED
  YYLTYPE yylloc;
#endif
#endif

  YYSTYPE yyval;		/*  the variable used to return		*/
				/*  semantic values from the action	*/
				/*  routines				*/

  int yylen;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Starting parse\n");
#endif

  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 - 1;
  yyvsp = yyvs;
#ifdef YYLSP_NEEDED
  yylsp = yyls;
#endif

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

  *++yyssp = yystate;

  if (yyssp >= yyss + yystacksize - 1)
    {
      /* 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;
      short *yyss1 = yyss;
#ifdef YYLSP_NEEDED
      YYLTYPE *yyls1 = yyls;
#endif

      /* Get the current used size of the three stacks, in elements.  */
      int size = yyssp - yyss + 1;

#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of
	 the data in use in that stack, in bytes.  */
#ifdef YYLSP_NEEDED
      /* This used to be a conditional around just the two extra args,
	 but that might be undefined if yyoverflow is a macro.  */
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yyls1, size * sizeof (*yylsp),
		 &yystacksize);
#else
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yystacksize);
#endif

      yyss = yyss1; yyvs = yyvs1;
#ifdef YYLSP_NEEDED
      yyls = yyls1;
#endif
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
	{
	  yyerror("parser stack overflow");
	  return 2;
	}
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;
      yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
      __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
      yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
      __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
      yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
      __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
#endif
#endif /* no yyoverflow */

      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
      yylsp = yyls + size - 1;
#endif

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif

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

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Entering state %d\n", yystate);
#endif

  goto yybackup;
 yybackup:

/* Do appropriate processing given the current state.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* yyresume: */

  /* First try to decide what to do without reference to lookahead token.  */

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yydefault;

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

  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */

  if (yychar == YYEMPTY)
    {
#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Reading a token: ");
#endif
      yychar = YYLEX;
    }

  /* Convert token to internal form (in yychar1) for indexing tables with */

  if (yychar <= 0)		/* This means end of input. */
    {
      yychar1 = 0;
      yychar = YYEOF;		/* Don't call YYLEX any more */

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Now at end of input.\n");
#endif
    }
  else
    {
      yychar1 = YYTRANSLATE(yychar);

#if YYDEBUG != 0
      if (yydebug)
	{
	  fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
	  /* Give the individual parser a way to print the precise meaning
	     of a token, for further debugging info.  */
#ifdef YYPRINT
	  YYPRINT (stderr, yychar, yylval);
#endif
	  fprintf (stderr, ")\n");
	}
#endif
    }

  yyn += yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
    goto yydefault;

  yyn = yytable[yyn];

  /* yyn is what to do for this token type in this state.
     Negative => reduce, -yyn is rule number.
     Positive => shift, yyn is new state.
       New state is final state => don't bother to shift,
       just return success.
     0, or most negative number => error.  */

  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrlab;

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
#endif

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

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

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

  yystate = yyn;
  goto yynewstate;

/* Do the default action for the current state.  */
yydefault:

  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;

/* Do a reduction.  yyn is the number of a rule to reduce with.  */
yyreduce:
  yylen = yyr2[yyn];
  if (yylen > 0)
    yyval = yyvsp[1-yylen]; /* implement default value of the action */

#if YYDEBUG != 0
  if (yydebug)
    {
      int i;

      fprintf (stderr, "Reducing via rule %d (line %d), ",
	       yyn, yyrline[yyn]);

      /* Print the symbols being reduced, and their result.  */
      for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
	fprintf (stderr, "%s ", yytname[yyrhs[i]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
#endif


  switch (yyn) {

case 1:
#line 264 "parse.y"
{
		        yyval.vars = ruby_dyna_vars;
			lex_state = EXPR_BEG;
                        top_local_init();
			if ((VALUE)ruby_class == rb_cObject) class_nest = 0;
			else class_nest = 1;
		    ;
    break;}
case 2:
#line 272 "parse.y"
{
			if (yyvsp[0].node && !compile_for_eval) {
                            /* last expression should not be void */
			    if (nd_type(yyvsp[0].node) != NODE_BLOCK) void_expr(yyvsp[0].node);
			    else {
				NODE *node = yyvsp[0].node;
				while (node->nd_next) {
				    node = node->nd_next;
				}
				void_expr(node->nd_head);
			    }
			}
			ruby_eval_tree = block_append(ruby_eval_tree, yyvsp[0].node);
                        top_local_setup();
			class_nest = 0;
		        ruby_dyna_vars = yyvsp[-1].vars;
		    ;
    break;}
case 3:
#line 291 "parse.y"
{
			void_stmts(yyvsp[-1].node);
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 5:
#line 298 "parse.y"
{
			yyval.node = newline_node(yyvsp[0].node);
		    ;
    break;}
case 6:
#line 302 "parse.y"
{
			yyval.node = block_append(yyvsp[-2].node, newline_node(yyvsp[0].node));
		    ;
    break;}
case 7:
#line 306 "parse.y"
{
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 8:
#line 310 "parse.y"
{lex_state = EXPR_FNAME;;
    break;}
case 9:
#line 311 "parse.y"
{
			if (in_def || in_single)
			    yyerror("alias within method");
		        yyval.node = NEW_ALIAS(yyvsp[-2].id, yyvsp[0].id);
		    ;
    break;}
case 10:
#line 317 "parse.y"
{
			if (in_def || in_single)
			    yyerror("alias within method");
		        yyval.node = NEW_VALIAS(yyvsp[-1].id, yyvsp[0].id);
		    ;
    break;}
case 11:
#line 323 "parse.y"
{
			char buf[3];

			if (in_def || in_single)
			    yyerror("alias within method");
			sprintf(buf, "$%c", yyvsp[0].node->nd_nth);
		        yyval.node = NEW_VALIAS(yyvsp[-1].id, rb_intern(buf));
		    ;
    break;}
case 12:
#line 332 "parse.y"
{
		        yyerror("can't make alias for the number variables");
		        yyval.node = 0;
		    ;
    break;}
case 13:
#line 337 "parse.y"
{
			if (in_def || in_single)
			    yyerror("undef within method");
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 14:
#line 343 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = NEW_IF(cond(yyvsp[0].node), yyvsp[-2].node, 0);
		        fixpos(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 15:
#line 349 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = NEW_UNLESS(cond(yyvsp[0].node), yyvsp[-2].node, 0);
		        fixpos(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 16:
#line 355 "parse.y"
{
			value_expr(yyvsp[0].node);
			if (yyvsp[-2].node && nd_type(yyvsp[-2].node) == NODE_BEGIN) {
			    yyval.node = NEW_WHILE(cond(yyvsp[0].node), yyvsp[-2].node->nd_body, 0);
			}
			else {
			    yyval.node = NEW_WHILE(cond(yyvsp[0].node), yyvsp[-2].node, 1);
			}
		    ;
    break;}
case 17:
#line 365 "parse.y"
{
			value_expr(yyvsp[0].node);
			if (yyvsp[-2].node && nd_type(yyvsp[-2].node) == NODE_BEGIN) {
			    yyval.node = NEW_UNTIL(cond(yyvsp[0].node), yyvsp[-2].node->nd_body, 0);
			}
			else {
			    yyval.node = NEW_UNTIL(cond(yyvsp[0].node), yyvsp[-2].node, 1);
			}
		    ;
    break;}
case 18:
#line 375 "parse.y"
{
			yyval.node = NEW_RESCUE(yyvsp[-2].node, NEW_RESBODY(0,yyvsp[0].node,0), 0);
		    ;
    break;}
case 19:
#line 379 "parse.y"
{
			if (in_def || in_single) {
			    yyerror("BEGIN in method");
			}
			local_push();
		    ;
    break;}
case 20:
#line 386 "parse.y"
{
			ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
						            NEW_PREEXE(yyvsp[-1].node));
		        local_pop();
		        yyval.node = 0;
		    ;
    break;}
case 21:
#line 393 "parse.y"
{
			if (compile_for_eval && (in_def || in_single)) {
			    yyerror("END in method; use at_exit");
			}

			yyval.node = NEW_ITER(0, NEW_POSTEXE(), yyvsp[-1].node);
		    ;
    break;}
case 22:
#line 401 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = node_assign(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 23:
#line 406 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyvsp[-2].node->nd_value = yyvsp[0].node;
			yyval.node = yyvsp[-2].node;
		    ;
    break;}
case 24:
#line 412 "parse.y"
{
			yyval.node = node_assign(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 26:
#line 418 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyvsp[-2].node->nd_value = yyvsp[0].node;
			yyval.node = yyvsp[-2].node;
		    ;
    break;}
case 27:
#line 424 "parse.y"
{
			if (!compile_for_eval && !in_def && !in_single)
			    yyerror("return appeared outside of method");
			yyval.node = NEW_RETURN(yyvsp[0].node);
		    ;
    break;}
case 29:
#line 431 "parse.y"
{
			yyval.node = logop(NODE_AND, yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 30:
#line 435 "parse.y"
{
			yyval.node = logop(NODE_OR, yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 31:
#line 439 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = NEW_NOT(cond(yyvsp[0].node));
		    ;
    break;}
case 32:
#line 444 "parse.y"
{
			yyval.node = NEW_NOT(cond(yyvsp[0].node));
		    ;
    break;}
case 37:
#line 454 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		    ;
    break;}
case 38:
#line 459 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		    ;
    break;}
case 39:
#line 465 "parse.y"
{
			yyval.node = new_fcall(yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[0].node);
		   ;
    break;}
case 40:
#line 470 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-3].node);
		    ;
    break;}
case 41:
#line 476 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-3].node);
		    ;
    break;}
case 42:
#line 482 "parse.y"
{
			if (!compile_for_eval && !in_def && !in_single)
			    yyerror("super called outside of method");
			yyval.node = new_super(yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 43:
#line 489 "parse.y"
{
			yyval.node = NEW_YIELD(yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 45:
#line 496 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 47:
#line 502 "parse.y"
{
			yyval.node = NEW_MASGN(NEW_LIST(yyvsp[-1].node), 0);
		    ;
    break;}
case 48:
#line 507 "parse.y"
{
			yyval.node = NEW_MASGN(yyvsp[0].node, 0);
		    ;
    break;}
case 49:
#line 511 "parse.y"
{
			yyval.node = NEW_MASGN(list_append(yyvsp[-1].node,yyvsp[0].node), 0);
		    ;
    break;}
case 50:
#line 515 "parse.y"
{
			yyval.node = NEW_MASGN(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 51:
#line 519 "parse.y"
{
			yyval.node = NEW_MASGN(yyvsp[-1].node, -1);
		    ;
    break;}
case 52:
#line 523 "parse.y"
{
			yyval.node = NEW_MASGN(0, yyvsp[0].node);
		    ;
    break;}
case 53:
#line 527 "parse.y"
{
			yyval.node = NEW_MASGN(0, -1);
		    ;
    break;}
case 55:
#line 533 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 56:
#line 538 "parse.y"
{
			yyval.node = NEW_LIST(yyvsp[-1].node);
		    ;
    break;}
case 57:
#line 542 "parse.y"
{
			yyval.node = list_append(yyvsp[-2].node, yyvsp[-1].node);
		    ;
    break;}
case 58:
#line 547 "parse.y"
{
			yyval.node = assignable(yyvsp[0].id, 0);
		    ;
    break;}
case 59:
#line 551 "parse.y"
{
			yyval.node = aryset(yyvsp[-3].node, yyvsp[-1].node);
		    ;
    break;}
case 60:
#line 555 "parse.y"
{
			yyval.node = attrset(yyvsp[-2].node, yyvsp[0].id);
		    ;
    break;}
case 61:
#line 559 "parse.y"
{
			yyval.node = attrset(yyvsp[-2].node, yyvsp[0].id);
		    ;
    break;}
case 62:
#line 563 "parse.y"
{
			yyval.node = attrset(yyvsp[-2].node, yyvsp[0].id);
		    ;
    break;}
case 63:
#line 567 "parse.y"
{
		        rb_backref_error(yyvsp[0].node);
			yyval.node = 0;
		    ;
    break;}
case 64:
#line 573 "parse.y"
{
			yyval.node = assignable(yyvsp[0].id, 0);
		    ;
    break;}
case 65:
#line 577 "parse.y"
{
			yyval.node = aryset(yyvsp[-3].node, yyvsp[-1].node);
		    ;
    break;}
case 66:
#line 581 "parse.y"
{
			yyval.node = attrset(yyvsp[-2].node, yyvsp[0].id);
		    ;
    break;}
case 67:
#line 585 "parse.y"
{
			yyval.node = attrset(yyvsp[-2].node, yyvsp[0].id);
		    ;
    break;}
case 68:
#line 589 "parse.y"
{
			yyval.node = attrset(yyvsp[-2].node, yyvsp[0].id);
		    ;
    break;}
case 69:
#line 593 "parse.y"
{
		        rb_backref_error(yyvsp[0].node);
			yyval.node = 0;
		    ;
    break;}
case 70:
#line 599 "parse.y"
{
			yyerror("class/module name must be CONSTANT");
		    ;
    break;}
case 75:
#line 608 "parse.y"
{
			lex_state = EXPR_END;
			yyval.id = yyvsp[0].id;
		    ;
    break;}
case 76:
#line 613 "parse.y"
{
			lex_state = EXPR_END;
			yyval.id = yyvsp[0].id;
		    ;
    break;}
case 79:
#line 622 "parse.y"
{
			yyval.node = NEW_UNDEF(yyvsp[0].id);
		    ;
    break;}
case 80:
#line 625 "parse.y"
{lex_state = EXPR_FNAME;;
    break;}
case 81:
#line 626 "parse.y"
{
			yyval.node = block_append(yyvsp[-3].node, NEW_UNDEF(yyvsp[0].id));
		    ;
    break;}
case 82:
#line 630 "parse.y"
{ yyval.id = '|'; ;
    break;}
case 83:
#line 631 "parse.y"
{ yyval.id = '^'; ;
    break;}
case 84:
#line 632 "parse.y"
{ yyval.id = '&'; ;
    break;}
case 85:
#line 633 "parse.y"
{ yyval.id = tCMP; ;
    break;}
case 86:
#line 634 "parse.y"
{ yyval.id = tEQ; ;
    break;}
case 87:
#line 635 "parse.y"
{ yyval.id = tEQQ; ;
    break;}
case 88:
#line 636 "parse.y"
{ yyval.id = tMATCH; ;
    break;}
case 89:
#line 637 "parse.y"
{ yyval.id = '>'; ;
    break;}
case 90:
#line 638 "parse.y"
{ yyval.id = tGEQ; ;
    break;}
case 91:
#line 639 "parse.y"
{ yyval.id = '<'; ;
    break;}
case 92:
#line 640 "parse.y"
{ yyval.id = tLEQ; ;
    break;}
case 93:
#line 641 "parse.y"
{ yyval.id = tLSHFT; ;
    break;}
case 94:
#line 642 "parse.y"
{ yyval.id = tRSHFT; ;
    break;}
case 95:
#line 643 "parse.y"
{ yyval.id = '+'; ;
    break;}
case 96:
#line 644 "parse.y"
{ yyval.id = '-'; ;
    break;}
case 97:
#line 645 "parse.y"
{ yyval.id = '*'; ;
    break;}
case 98:
#line 646 "parse.y"
{ yyval.id = '*'; ;
    break;}
case 99:
#line 647 "parse.y"
{ yyval.id = '/'; ;
    break;}
case 100:
#line 648 "parse.y"
{ yyval.id = '%'; ;
    break;}
case 101:
#line 649 "parse.y"
{ yyval.id = tPOW; ;
    break;}
case 102:
#line 650 "parse.y"
{ yyval.id = '~'; ;
    break;}
case 103:
#line 651 "parse.y"
{ yyval.id = tUPLUS; ;
    break;}
case 104:
#line 652 "parse.y"
{ yyval.id = tUMINUS; ;
    break;}
case 105:
#line 653 "parse.y"
{ yyval.id = tAREF; ;
    break;}
case 106:
#line 654 "parse.y"
{ yyval.id = tASET; ;
    break;}
case 107:
#line 655 "parse.y"
{ yyval.id = '`'; ;
    break;}
case 149:
#line 666 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = node_assign(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 150:
#line 670 "parse.y"
{yyval.node = assignable(yyvsp[-1].id, 0);;
    break;}
case 151:
#line 671 "parse.y"
{
			if (yyvsp[-2].id == tOROP) {
			    yyvsp[-1].node->nd_value = yyvsp[0].node;
			    yyval.node = NEW_OP_ASGN_OR(gettable(yyvsp[-3].id), yyvsp[-1].node);
			    if (is_instance_id(yyvsp[-3].id)) {
				yyval.node->nd_aid = yyvsp[-3].id;
			    }
			}
			else if (yyvsp[-2].id == tANDOP) {
			    yyvsp[-1].node->nd_value = yyvsp[0].node;
			    yyval.node = NEW_OP_ASGN_AND(gettable(yyvsp[-3].id), yyvsp[-1].node);
			}
			else {
			    yyval.node = yyvsp[-1].node;
			    if (yyval.node) {
				yyval.node->nd_value = call_op(gettable(yyvsp[-3].id),yyvsp[-2].id,1,yyvsp[0].node);
			    }
			}
			fixpos(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 152:
#line 692 "parse.y"
{
			NODE *args = NEW_LIST(yyvsp[0].node);

			list_append(yyvsp[-3].node, NEW_NIL());
			list_concat(args, yyvsp[-3].node);
			if (yyvsp[-1].id == tOROP) {
			    yyvsp[-1].id = 0;
			}
			else if (yyvsp[-1].id == tANDOP) {
			    yyvsp[-1].id = 1;
			}
			yyval.node = NEW_OP_ASGN1(yyvsp[-5].node, yyvsp[-1].id, args);
		        fixpos(yyval.node, yyvsp[-5].node);
		    ;
    break;}
case 153:
#line 707 "parse.y"
{
			if (yyvsp[-1].id == tOROP) {
			    yyvsp[-1].id = 0;
			}
			else if (yyvsp[-1].id == tANDOP) {
			    yyvsp[-1].id = 1;
			}
			yyval.node = NEW_OP_ASGN2(yyvsp[-4].node, yyvsp[-2].id, yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 154:
#line 718 "parse.y"
{
			if (yyvsp[-1].id == tOROP) {
			    yyvsp[-1].id = 0;
			}
			else if (yyvsp[-1].id == tANDOP) {
			    yyvsp[-1].id = 1;
			}
			yyval.node = NEW_OP_ASGN2(yyvsp[-4].node, yyvsp[-2].id, yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 155:
#line 729 "parse.y"
{
			if (yyvsp[-1].id == tOROP) {
			    yyvsp[-1].id = 0;
			}
			else if (yyvsp[-1].id == tANDOP) {
			    yyvsp[-1].id = 1;
			}
			yyval.node = NEW_OP_ASGN2(yyvsp[-4].node, yyvsp[-2].id, yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 156:
#line 740 "parse.y"
{
		        rb_backref_error(yyvsp[-2].node);
			yyval.node = 0;
		    ;
    break;}
case 157:
#line 745 "parse.y"
{
			yyval.node = NEW_DOT2(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 158:
#line 749 "parse.y"
{
			yyval.node = NEW_DOT3(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 159:
#line 753 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, '+', 1, yyvsp[0].node);
		    ;
    break;}
case 160:
#line 757 "parse.y"
{
		        yyval.node = call_op(yyvsp[-2].node, '-', 1, yyvsp[0].node);
		    ;
    break;}
case 161:
#line 761 "parse.y"
{
		        yyval.node = call_op(yyvsp[-2].node, '*', 1, yyvsp[0].node);
		    ;
    break;}
case 162:
#line 765 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, '/', 1, yyvsp[0].node);
		    ;
    break;}
case 163:
#line 769 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, '%', 1, yyvsp[0].node);
		    ;
    break;}
case 164:
#line 773 "parse.y"
{
			int need_negate = Qfalse;

			if (nd_type(yyvsp[-2].node) == NODE_LIT) {

			    switch (TYPE(yyvsp[-2].node->nd_lit)) {
			      case T_FIXNUM:
			      case T_FLOAT:
			      case T_BIGNUM:
				if (RTEST(rb_funcall(yyvsp[-2].node->nd_lit,'<',1,INT2FIX(0)))) {
				    yyvsp[-2].node->nd_lit = rb_funcall(yyvsp[-2].node->nd_lit,rb_intern("-@"),0,0);
				    need_negate = Qtrue;
				}
			      default:
				break;
			    }
			}
			yyval.node = call_op(yyvsp[-2].node, tPOW, 1, yyvsp[0].node);
			if (need_negate) {
			    yyval.node = call_op(yyval.node, tUMINUS, 0, 0);
			}
		    ;
    break;}
case 165:
#line 796 "parse.y"
{
			if (yyvsp[0].node && nd_type(yyvsp[0].node) == NODE_LIT) {
			    yyval.node = yyvsp[0].node;
			}
			else {
			    yyval.node = call_op(yyvsp[0].node, tUPLUS, 0, 0);
			}
		    ;
    break;}
case 166:
#line 805 "parse.y"
{
			if (yyvsp[0].node && nd_type(yyvsp[0].node) == NODE_LIT && FIXNUM_P(yyvsp[0].node->nd_lit)) {
			    long i = FIX2LONG(yyvsp[0].node->nd_lit);

			    yyvsp[0].node->nd_lit = INT2FIX(-i);
			    yyval.node = yyvsp[0].node;
			}
			else {
			    yyval.node = call_op(yyvsp[0].node, tUMINUS, 0, 0);
			}
		    ;
    break;}
case 167:
#line 817 "parse.y"
{
		        yyval.node = call_op(yyvsp[-2].node, '|', 1, yyvsp[0].node);
		    ;
    break;}
case 168:
#line 821 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, '^', 1, yyvsp[0].node);
		    ;
    break;}
case 169:
#line 825 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, '&', 1, yyvsp[0].node);
		    ;
    break;}
case 170:
#line 829 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, tCMP, 1, yyvsp[0].node);
		    ;
    break;}
case 171:
#line 833 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, '>', 1, yyvsp[0].node);
		    ;
    break;}
case 172:
#line 837 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, tGEQ, 1, yyvsp[0].node);
		    ;
    break;}
case 173:
#line 841 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, '<', 1, yyvsp[0].node);
		    ;
    break;}
case 174:
#line 845 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, tLEQ, 1, yyvsp[0].node);
		    ;
    break;}
case 175:
#line 849 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, tEQ, 1, yyvsp[0].node);
		    ;
    break;}
case 176:
#line 853 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, tEQQ, 1, yyvsp[0].node);
		    ;
    break;}
case 177:
#line 857 "parse.y"
{
			yyval.node = NEW_NOT(call_op(yyvsp[-2].node, tEQ, 1, yyvsp[0].node));
		    ;
    break;}
case 178:
#line 861 "parse.y"
{
			yyval.node = match_gen(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 179:
#line 865 "parse.y"
{
			yyval.node = NEW_NOT(match_gen(yyvsp[-2].node, yyvsp[0].node));
		    ;
    break;}
case 180:
#line 869 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = NEW_NOT(cond(yyvsp[0].node));
		    ;
    break;}
case 181:
#line 874 "parse.y"
{
			yyval.node = call_op(yyvsp[0].node, '~', 0, 0);
		    ;
    break;}
case 182:
#line 878 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, tLSHFT, 1, yyvsp[0].node);
		    ;
    break;}
case 183:
#line 882 "parse.y"
{
			yyval.node = call_op(yyvsp[-2].node, tRSHFT, 1, yyvsp[0].node);
		    ;
    break;}
case 184:
#line 886 "parse.y"
{
			yyval.node = logop(NODE_AND, yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 185:
#line 890 "parse.y"
{
			yyval.node = logop(NODE_OR, yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 186:
#line 893 "parse.y"
{in_defined = 1;;
    break;}
case 187:
#line 894 "parse.y"
{
		        in_defined = 0;
			yyval.node = NEW_DEFINED(yyvsp[0].node);
		    ;
    break;}
case 188:
#line 899 "parse.y"
{
			value_expr(yyvsp[-4].node);
			yyval.node = NEW_IF(cond(yyvsp[-4].node), yyvsp[-2].node, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 189:
#line 905 "parse.y"
{
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 191:
#line 911 "parse.y"
{
			yyval.node = NEW_LIST(yyvsp[-1].node);
		    ;
    break;}
case 192:
#line 915 "parse.y"
{
			yyval.node = list_append(yyvsp[-3].node, yyvsp[-1].node);
		    ;
    break;}
case 193:
#line 919 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 194:
#line 923 "parse.y"
{
			value_expr(yyvsp[-1].node);
			yyval.node = arg_concat(yyvsp[-4].node, yyvsp[-1].node);
		    ;
    break;}
case 195:
#line 928 "parse.y"
{
			yyval.node = NEW_LIST(NEW_HASH(yyvsp[-1].node));
		    ;
    break;}
case 196:
#line 932 "parse.y"
{
			value_expr(yyvsp[-1].node);
			yyval.node = NEW_RESTARGS(yyvsp[-1].node);
		    ;
    break;}
case 197:
#line 938 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 198:
#line 942 "parse.y"
{
			yyval.node = yyvsp[-2].node;
		    ;
    break;}
case 199:
#line 946 "parse.y"
{
			yyval.node = NEW_LIST(yyvsp[-2].node);
		    ;
    break;}
case 200:
#line 950 "parse.y"
{
			yyval.node = list_append(yyvsp[-4].node, yyvsp[-2].node);
		    ;
    break;}
case 203:
#line 958 "parse.y"
{
			yyval.node = NEW_LIST(yyvsp[0].node);
		    ;
    break;}
case 204:
#line 962 "parse.y"
{
			yyval.node = list_append(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 205:
#line 966 "parse.y"
{
			yyval.node = arg_blk_pass(yyvsp[-1].node, yyvsp[0].node);
		    ;
    break;}
case 206:
#line 970 "parse.y"
{
			value_expr(yyvsp[-1].node);
			yyval.node = arg_concat(yyvsp[-4].node, yyvsp[-1].node);
			yyval.node = arg_blk_pass(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 207:
#line 976 "parse.y"
{
			yyval.node = NEW_LIST(NEW_HASH(yyvsp[-1].node));
			yyval.node = arg_blk_pass(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 208:
#line 981 "parse.y"
{
			value_expr(yyvsp[-1].node);
			yyval.node = arg_concat(NEW_LIST(NEW_HASH(yyvsp[-4].node)), yyvsp[-1].node);
			yyval.node = arg_blk_pass(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 209:
#line 987 "parse.y"
{
			yyval.node = list_append(yyvsp[-3].node, NEW_HASH(yyvsp[-1].node));
			yyval.node = arg_blk_pass(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 210:
#line 992 "parse.y"
{
			value_expr(yyvsp[-1].node);
			yyval.node = arg_concat(list_append(yyvsp[-6].node, NEW_HASH(yyvsp[-4].node)), yyvsp[-1].node);
			yyval.node = arg_blk_pass(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 211:
#line 998 "parse.y"
{
			value_expr(yyvsp[-1].node);
			yyval.node = arg_blk_pass(NEW_RESTARGS(yyvsp[-1].node), yyvsp[0].node);
		    ;
    break;}
case 213:
#line 1004 "parse.y"
{CMDARG_PUSH;;
    break;}
case 214:
#line 1005 "parse.y"
{
		        CMDARG_POP;
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 215:
#line 1011 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = NEW_BLOCK_PASS(yyvsp[0].node);
		    ;
    break;}
case 216:
#line 1017 "parse.y"
{
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 218:
#line 1023 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = NEW_LIST(yyvsp[0].node);
		    ;
    break;}
case 219:
#line 1028 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = list_append(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 220:
#line 1034 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 222:
#line 1041 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = list_append(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 223:
#line 1046 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = arg_concat(yyvsp[-3].node, yyvsp[0].node);
		    ;
    break;}
case 224:
#line 1051 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 225:
#line 1057 "parse.y"
{
			yyval.node = yyvsp[0].node;
			if (yyvsp[0].node) {
			    if (nd_type(yyvsp[0].node) == NODE_ARRAY &&
				yyvsp[0].node->nd_next == 0) {
				yyval.node = yyvsp[0].node->nd_head;
			    }
			    else if (nd_type(yyvsp[0].node) == NODE_BLOCK_PASS) {
				rb_compile_error("block argument should not be given");
			    }
			}
		    ;
    break;}
case 226:
#line 1071 "parse.y"
{
			yyval.node = NEW_LIT(yyvsp[0].val);
		    ;
    break;}
case 228:
#line 1076 "parse.y"
{
			yyval.node = NEW_XSTR(yyvsp[0].val);
		    ;
    break;}
case 233:
#line 1084 "parse.y"
{
			yyval.node = NEW_VCALL(yyvsp[0].id);
		    ;
    break;}
case 234:
#line 1093 "parse.y"
{
			if (!yyvsp[-3].node && !yyvsp[-2].node && !yyvsp[-1].node)
			    yyval.node = NEW_BEGIN(yyvsp[-4].node);
			else {
			    if (yyvsp[-3].node) yyvsp[-4].node = NEW_RESCUE(yyvsp[-4].node, yyvsp[-3].node, yyvsp[-2].node);
			    else if (yyvsp[-2].node) {
				rb_warn("else without rescue is useless");
				yyvsp[-4].node = block_append(yyvsp[-4].node, yyvsp[-2].node);
			    }
			    if (yyvsp[-1].node) yyvsp[-4].node = NEW_ENSURE(yyvsp[-4].node, yyvsp[-1].node);
			    yyval.node = yyvsp[-4].node;
			}
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 235:
#line 1108 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 236:
#line 1112 "parse.y"
{
			value_expr(yyvsp[-2].node);
			yyval.node = NEW_COLON2(yyvsp[-2].node, yyvsp[0].id);
		    ;
    break;}
case 237:
#line 1117 "parse.y"
{
			yyval.node = NEW_COLON3(yyvsp[0].id);
		    ;
    break;}
case 238:
#line 1121 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = NEW_CALL(yyvsp[-3].node, tAREF, yyvsp[-1].node);
		    ;
    break;}
case 239:
#line 1126 "parse.y"
{
			if (yyvsp[-1].node == 0)
			    yyval.node = NEW_ZARRAY(); /* zero length array*/
			else {
			    yyval.node = yyvsp[-1].node;
			}
		    ;
    break;}
case 240:
#line 1134 "parse.y"
{
			yyval.node = NEW_HASH(yyvsp[-1].node);
		    ;
    break;}
case 241:
#line 1138 "parse.y"
{
			if (!compile_for_eval && !in_def && !in_single)
			    yyerror("return appeared outside of method");
			value_expr(yyvsp[-1].node);
			yyval.node = NEW_RETURN(yyvsp[-1].node);
		    ;
    break;}
case 242:
#line 1145 "parse.y"
{
			if (!compile_for_eval && !in_def && !in_single)
			    yyerror("return appeared outside of method");
			yyval.node = NEW_RETURN(0);
		    ;
    break;}
case 243:
#line 1151 "parse.y"
{
			if (!compile_for_eval && !in_def && !in_single)
			    yyerror("return appeared outside of method");
			yyval.node = NEW_RETURN(0);
		    ;
    break;}
case 244:
#line 1157 "parse.y"
{
			value_expr(yyvsp[-1].node);
			yyval.node = NEW_YIELD(yyvsp[-1].node);
		    ;
    break;}
case 245:
#line 1162 "parse.y"
{
			yyval.node = NEW_YIELD(0);
		    ;
    break;}
case 246:
#line 1166 "parse.y"
{
			yyval.node = NEW_YIELD(0);
		    ;
    break;}
case 247:
#line 1169 "parse.y"
{in_defined = 1;;
    break;}
case 248:
#line 1170 "parse.y"
{
		        in_defined = 0;
			yyval.node = NEW_DEFINED(yyvsp[-1].node);
		    ;
    break;}
case 249:
#line 1175 "parse.y"
{
			yyvsp[0].node->nd_iter = NEW_FCALL(yyvsp[-1].id, 0);
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 251:
#line 1181 "parse.y"
{
			if (yyvsp[-1].node && nd_type(yyvsp[-1].node) == NODE_BLOCK_PASS) {
			    rb_compile_error("both block arg and actual block given");
			}
			yyvsp[0].node->nd_iter = yyvsp[-1].node;
			yyval.node = yyvsp[0].node;
		        fixpos(yyval.node, yyvsp[-1].node);
		    ;
    break;}
case 252:
#line 1193 "parse.y"
{
			value_expr(yyvsp[-4].node);
			yyval.node = NEW_IF(cond(yyvsp[-4].node), yyvsp[-2].node, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 253:
#line 1202 "parse.y"
{
			value_expr(yyvsp[-4].node);
			yyval.node = NEW_UNLESS(cond(yyvsp[-4].node), yyvsp[-2].node, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 254:
#line 1207 "parse.y"
{COND_PUSH;;
    break;}
case 255:
#line 1207 "parse.y"
{COND_POP;;
    break;}
case 256:
#line 1210 "parse.y"
{
			value_expr(yyvsp[-4].node);
			yyval.node = NEW_WHILE(cond(yyvsp[-4].node), yyvsp[-1].node, 1);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 257:
#line 1215 "parse.y"
{COND_PUSH;;
    break;}
case 258:
#line 1215 "parse.y"
{COND_POP;;
    break;}
case 259:
#line 1218 "parse.y"
{
			value_expr(yyvsp[-4].node);
			yyval.node = NEW_UNTIL(cond(yyvsp[-4].node), yyvsp[-1].node, 1);
		        fixpos(yyval.node, yyvsp[-4].node);
		    ;
    break;}
case 260:
#line 1226 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = NEW_CASE(yyvsp[-3].node, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-3].node);
		    ;
    break;}
case 261:
#line 1232 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 262:
#line 1235 "parse.y"
{COND_PUSH;;
    break;}
case 263:
#line 1235 "parse.y"
{COND_POP;;
    break;}
case 264:
#line 1238 "parse.y"
{
			value_expr(yyvsp[-4].node);
			yyval.node = NEW_FOR(yyvsp[-7].node, yyvsp[-4].node, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-7].node);
		    ;
    break;}
case 265:
#line 1244 "parse.y"
{
			if (in_def || in_single)
			    yyerror("class definition in method body");
			class_nest++;
			local_push();
		        yyval.num = ruby_sourceline;
		    ;
    break;}
case 266:
#line 1253 "parse.y"
{
		        yyval.node = NEW_CLASS(yyvsp[-4].id, yyvsp[-1].node, yyvsp[-3].node);
		        nd_set_line(yyval.node, yyvsp[-2].num);
		        local_pop();
			class_nest--;
		    ;
    break;}
case 267:
#line 1260 "parse.y"
{
			yyval.num = in_def;
		        in_def = 0;
		    ;
    break;}
case 268:
#line 1265 "parse.y"
{
		        yyval.num = in_single;
		        in_single = 0;
			class_nest++;
			local_push();
		    ;
    break;}
case 269:
#line 1273 "parse.y"
{
		        yyval.node = NEW_SCLASS(yyvsp[-5].node, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-5].node);
		        local_pop();
			class_nest--;
		        in_def = yyvsp[-4].num;
		        in_single = yyvsp[-2].num;
		    ;
    break;}
case 270:
#line 1282 "parse.y"
{
			if (in_def || in_single)
			    yyerror("module definition in method body");
			class_nest++;
			local_push();
		        yyval.num = ruby_sourceline;
		    ;
    break;}
case 271:
#line 1291 "parse.y"
{
		        yyval.node = NEW_MODULE(yyvsp[-3].id, yyvsp[-1].node);
		        nd_set_line(yyval.node, yyvsp[-2].num);
		        local_pop();
			class_nest--;
		    ;
    break;}
case 272:
#line 1298 "parse.y"
{
			if (in_def || in_single)
			    yyerror("nested method definition");
			yyval.id = cur_mid;
			cur_mid = yyvsp[0].id;
			in_def++;
			local_push();
		    ;
    break;}
case 273:
#line 1312 "parse.y"
{
		        if (yyvsp[-3].node) yyvsp[-4].node = NEW_RESCUE(yyvsp[-4].node, yyvsp[-3].node, yyvsp[-2].node);
			else if (yyvsp[-2].node) {
			    rb_warn("else without rescue is useless");
			    yyvsp[-4].node = block_append(yyvsp[-4].node, yyvsp[-2].node);
			}
			if (yyvsp[-1].node) yyvsp[-4].node = NEW_ENSURE(yyvsp[-4].node, yyvsp[-1].node);

		        /* NOEX_PRIVATE for toplevel */
			yyval.node = NEW_DEFN(yyvsp[-7].id, yyvsp[-5].node, yyvsp[-4].node, class_nest?NOEX_PUBLIC:NOEX_PRIVATE);
			if (is_attrset_id(yyvsp[-7].id)) yyval.node->nd_noex = NOEX_PUBLIC;
		        fixpos(yyval.node, yyvsp[-5].node);
		        local_pop();
			in_def--;
			cur_mid = yyvsp[-6].id;
		    ;
    break;}
case 274:
#line 1328 "parse.y"
{lex_state = EXPR_FNAME;;
    break;}
case 275:
#line 1329 "parse.y"
{
			value_expr(yyvsp[-3].node);
			in_single++;
			local_push();
		        lex_state = EXPR_END; /* force for args */
		    ;
    break;}
case 276:
#line 1341 "parse.y"
{
		        if (yyvsp[-3].node) yyvsp[-4].node = NEW_RESCUE(yyvsp[-4].node, yyvsp[-3].node, yyvsp[-2].node);
			else if (yyvsp[-2].node) {
			    rb_warn("else without rescue is useless");
			    yyvsp[-4].node = block_append(yyvsp[-4].node, yyvsp[-2].node);
			}
			if (yyvsp[-1].node) yyvsp[-4].node = NEW_ENSURE(yyvsp[-4].node, yyvsp[-1].node);

			yyval.node = NEW_DEFS(yyvsp[-10].node, yyvsp[-7].id, yyvsp[-5].node, yyvsp[-4].node);
		        fixpos(yyval.node, yyvsp[-10].node);
		        local_pop();
			in_single--;
		    ;
    break;}
case 277:
#line 1355 "parse.y"
{
			yyval.node = NEW_BREAK();
		    ;
    break;}
case 278:
#line 1359 "parse.y"
{
			yyval.node = NEW_NEXT();
		    ;
    break;}
case 279:
#line 1363 "parse.y"
{
			yyval.node = NEW_REDO();
		    ;
    break;}
case 280:
#line 1367 "parse.y"
{
			yyval.node = NEW_RETRY();
		    ;
    break;}
case 287:
#line 1382 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = NEW_IF(cond(yyvsp[-3].node), yyvsp[-1].node, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-3].node);
		    ;
    break;}
case 289:
#line 1390 "parse.y"
{
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 293:
#line 1399 "parse.y"
{
			yyval.node = (NODE*)1;
		    ;
    break;}
case 294:
#line 1403 "parse.y"
{
			yyval.node = (NODE*)1;
		    ;
    break;}
case 295:
#line 1407 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 296:
#line 1413 "parse.y"
{
		        yyval.vars = dyna_push();
		    ;
    break;}
case 297:
#line 1419 "parse.y"
{
			yyval.node = NEW_ITER(yyvsp[-2].node, 0, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-2].node?yyvsp[-2].node:yyvsp[-1].node);
			dyna_pop(yyvsp[-3].vars);
		    ;
    break;}
case 298:
#line 1426 "parse.y"
{
			if (yyvsp[-1].node && nd_type(yyvsp[-1].node) == NODE_BLOCK_PASS) {
			    rb_compile_error("both block arg and actual block given");
			}
			yyvsp[0].node->nd_iter = yyvsp[-1].node;
			yyval.node = yyvsp[0].node;
		        fixpos(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 299:
#line 1435 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		    ;
    break;}
case 300:
#line 1440 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		    ;
    break;}
case 301:
#line 1446 "parse.y"
{
			yyval.node = new_fcall(yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 302:
#line 1451 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-3].node);
		    ;
    break;}
case 303:
#line 1457 "parse.y"
{
			value_expr(yyvsp[-3].node);
			yyval.node = new_call(yyvsp[-3].node, yyvsp[-1].id, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-3].node);
		    ;
    break;}
case 304:
#line 1463 "parse.y"
{
			value_expr(yyvsp[-2].node);
			yyval.node = new_call(yyvsp[-2].node, yyvsp[0].id, 0);
		    ;
    break;}
case 305:
#line 1468 "parse.y"
{
			if (!compile_for_eval && !in_def &&
		            !in_single && !in_defined)
			    yyerror("super called outside of method");
			yyval.node = new_super(yyvsp[0].node);
		    ;
    break;}
case 306:
#line 1475 "parse.y"
{
			if (!compile_for_eval && !in_def &&
		            !in_single && !in_defined)
			    yyerror("super called outside of method");
			yyval.node = NEW_ZSUPER();
		    ;
    break;}
case 307:
#line 1483 "parse.y"
{
		        yyval.vars = dyna_push();
		    ;
    break;}
case 308:
#line 1488 "parse.y"
{
			yyval.node = NEW_ITER(yyvsp[-2].node, 0, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-1].node);
			dyna_pop(yyvsp[-3].vars);
		    ;
    break;}
case 309:
#line 1494 "parse.y"
{
		        yyval.vars = dyna_push();
		    ;
    break;}
case 310:
#line 1499 "parse.y"
{
			yyval.node = NEW_ITER(yyvsp[-2].node, 0, yyvsp[-1].node);
		        fixpos(yyval.node, yyvsp[-1].node);
			dyna_pop(yyvsp[-3].vars);
		    ;
    break;}
case 311:
#line 1508 "parse.y"
{
			yyval.node = NEW_WHEN(yyvsp[-3].node, yyvsp[-1].node, yyvsp[0].node);
		    ;
    break;}
case 313:
#line 1514 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = list_append(yyvsp[-3].node, NEW_WHEN(yyvsp[0].node, 0, 0));
		    ;
    break;}
case 314:
#line 1519 "parse.y"
{
			value_expr(yyvsp[0].node);
			yyval.node = NEW_LIST(NEW_WHEN(yyvsp[0].node, 0, 0));
		    ;
    break;}
case 319:
#line 1531 "parse.y"
{
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 321:
#line 1539 "parse.y"
{
		        if (yyvsp[-3].node) {
		            yyvsp[-3].node = node_assign(yyvsp[-3].node, NEW_GVAR(rb_intern("$!")));
			    yyvsp[-1].node = block_append(yyvsp[-3].node, yyvsp[-1].node);
			}
			yyval.node = NEW_RESBODY(yyvsp[-4].node, yyvsp[-1].node, yyvsp[0].node);
		        fixpos(yyval.node, yyvsp[-4].node?yyvsp[-4].node:yyvsp[-1].node);
		    ;
    break;}
case 324:
#line 1551 "parse.y"
{
			if (yyvsp[0].node)
			    yyval.node = yyvsp[0].node;
			else
			    /* place holder */
			    yyval.node = NEW_NIL();
		    ;
    break;}
case 326:
#line 1561 "parse.y"
{
			yyval.val = ID2SYM(yyvsp[0].id);
		    ;
    break;}
case 328:
#line 1567 "parse.y"
{
			yyval.node = NEW_STR(yyvsp[0].val);
		    ;
    break;}
case 330:
#line 1572 "parse.y"
{
		        if (nd_type(yyvsp[-1].node) == NODE_DSTR) {
			    list_append(yyvsp[-1].node, NEW_STR(yyvsp[0].val));
			}
			else {
			    rb_str_concat(yyvsp[-1].node->nd_lit, yyvsp[0].val);
			}
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 331:
#line 1582 "parse.y"
{
		        if (nd_type(yyvsp[-1].node) == NODE_STR) {
			    yyval.node = NEW_DSTR(yyvsp[-1].node->nd_lit);
			}
			else {
			    yyval.node = yyvsp[-1].node;
			}
			yyvsp[0].node->nd_head = NEW_STR(yyvsp[0].node->nd_lit);
			nd_set_type(yyvsp[0].node, NODE_ARRAY);
			list_concat(yyval.node, yyvsp[0].node);
		    ;
    break;}
case 332:
#line 1595 "parse.y"
{
		        lex_state = EXPR_END;
			yyval.id = yyvsp[0].id;
		    ;
    break;}
case 344:
#line 1613 "parse.y"
{yyval.id = kNIL;;
    break;}
case 345:
#line 1614 "parse.y"
{yyval.id = kSELF;;
    break;}
case 346:
#line 1615 "parse.y"
{yyval.id = kTRUE;;
    break;}
case 347:
#line 1616 "parse.y"
{yyval.id = kFALSE;;
    break;}
case 348:
#line 1617 "parse.y"
{yyval.id = k__FILE__;;
    break;}
case 349:
#line 1618 "parse.y"
{yyval.id = k__LINE__;;
    break;}
case 350:
#line 1621 "parse.y"
{
			yyval.node = gettable(yyvsp[0].id);
		    ;
    break;}
case 353:
#line 1629 "parse.y"
{
			yyval.node = 0;
		    ;
    break;}
case 354:
#line 1633 "parse.y"
{
			lex_state = EXPR_BEG;
		    ;
    break;}
case 355:
#line 1637 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 356:
#line 1640 "parse.y"
{yyerrok; yyval.node = 0;;
    break;}
case 357:
#line 1643 "parse.y"
{
			yyval.node = yyvsp[-2].node;
			lex_state = EXPR_BEG;
		    ;
    break;}
case 358:
#line 1648 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 359:
#line 1653 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(yyvsp[-5].num, yyvsp[-3].node, yyvsp[-1].id), yyvsp[0].node);
		    ;
    break;}
case 360:
#line 1657 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(yyvsp[-3].num, yyvsp[-1].node, -1), yyvsp[0].node);
		    ;
    break;}
case 361:
#line 1661 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(yyvsp[-3].num, 0, yyvsp[-1].id), yyvsp[0].node);
		    ;
    break;}
case 362:
#line 1665 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(yyvsp[-1].num, 0, -1), yyvsp[0].node);
		    ;
    break;}
case 363:
#line 1669 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(0, yyvsp[-3].node, yyvsp[-1].id), yyvsp[0].node);
		    ;
    break;}
case 364:
#line 1673 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(0, yyvsp[-1].node, -1), yyvsp[0].node);
		    ;
    break;}
case 365:
#line 1677 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(0, 0, yyvsp[-1].id), yyvsp[0].node);
		    ;
    break;}
case 366:
#line 1681 "parse.y"
{
			yyval.node = block_append(NEW_ARGS(0, 0, -1), yyvsp[0].node);
		    ;
    break;}
case 367:
#line 1685 "parse.y"
{
			yyval.node = NEW_ARGS(0, 0, -1);
		    ;
    break;}
case 368:
#line 1690 "parse.y"
{
			yyerror("formal argument cannot be a constant");
		    ;
    break;}
case 369:
#line 1694 "parse.y"
{
                        yyerror("formal argument cannot be an instance variable");
		    ;
    break;}
case 370:
#line 1698 "parse.y"
{
                        yyerror("formal argument cannot be a global variable");
		    ;
    break;}
case 371:
#line 1702 "parse.y"
{
                        yyerror("formal argument cannot be a class variable");
		    ;
    break;}
case 372:
#line 1706 "parse.y"
{
			if (!is_local_id(yyvsp[0].id))
			    yyerror("formal argument must be local variable");
			else if (local_id(yyvsp[0].id))
			    yyerror("duplicate argument name");
			local_cnt(yyvsp[0].id);
			yyval.num = 1;
		    ;
    break;}
case 374:
#line 1717 "parse.y"
{
			yyval.num += 1;
		    ;
    break;}
case 375:
#line 1722 "parse.y"
{
			if (!is_local_id(yyvsp[-2].id))
			    yyerror("formal argument must be local variable");
			else if (local_id(yyvsp[-2].id))
			    yyerror("duplicate optional argument name");
			yyval.node = assignable(yyvsp[-2].id, yyvsp[0].node);
		    ;
    break;}
case 376:
#line 1731 "parse.y"
{
			yyval.node = NEW_BLOCK(yyvsp[0].node);
			yyval.node->nd_end = yyval.node;
		    ;
    break;}
case 377:
#line 1736 "parse.y"
{
			yyval.node = block_append(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 378:
#line 1741 "parse.y"
{
			if (!is_local_id(yyvsp[0].id))
			    yyerror("rest argument must be local variable");
			else if (local_id(yyvsp[0].id))
			    yyerror("duplicate rest argument name");
			yyval.id = local_cnt(yyvsp[0].id);
		    ;
    break;}
case 379:
#line 1749 "parse.y"
{
			yyval.id = -2;
		    ;
    break;}
case 380:
#line 1754 "parse.y"
{
			if (!is_local_id(yyvsp[0].id))
			    yyerror("block argument must be local variable");
			else if (local_id(yyvsp[0].id))
			    yyerror("duplicate block argument name");
			yyval.node = NEW_BLOCK_ARG(yyvsp[0].id);
		    ;
    break;}
case 381:
#line 1763 "parse.y"
{
			yyval.node = yyvsp[0].node;
		    ;
    break;}
case 383:
#line 1769 "parse.y"
{
			if (nd_type(yyvsp[0].node) == NODE_SELF) {
			    yyval.node = NEW_SELF();
			}
			else {
			    yyval.node = yyvsp[0].node;
			}
		    ;
    break;}
case 384:
#line 1777 "parse.y"
{lex_state = EXPR_BEG;;
    break;}
case 385:
#line 1778 "parse.y"
{
			switch (nd_type(yyvsp[-2].node)) {
			  case NODE_STR:
			  case NODE_DSTR:
			  case NODE_XSTR:
			  case NODE_DXSTR:
			  case NODE_DREGX:
			  case NODE_LIT:
			  case NODE_ARRAY:
			  case NODE_ZARRAY:
			    yyerror("can't define single method for literals.");
			  default:
			    break;
			}
			yyval.node = yyvsp[-2].node;
		    ;
    break;}
case 387:
#line 1797 "parse.y"
{
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 388:
#line 1801 "parse.y"
{
			if (yyvsp[-1].node->nd_alen%2 != 0) {
			    yyerror("odd number list for Hash");
			}
			yyval.node = yyvsp[-1].node;
		    ;
    break;}
case 390:
#line 1810 "parse.y"
{
			yyval.node = list_concat(yyvsp[-2].node, yyvsp[0].node);
		    ;
    break;}
case 391:
#line 1815 "parse.y"
{
			yyval.node = list_append(NEW_LIST(yyvsp[-2].node), yyvsp[0].node);
		    ;
    break;}
case 411:
#line 1845 "parse.y"
{yyerrok;;
    break;}
case 414:
#line 1849 "parse.y"
{yyerrok;;
    break;}
case 415:
#line 1852 "parse.y"
{
			yyval.node = 0;
		    ;
    break;}
}
   /* the action file gets copied in in place of this dollarsign */
#line 498 "bison.simple"

  yyvsp -= yylen;
  yyssp -= yylen;
#ifdef YYLSP_NEEDED
  yylsp -= yylen;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

  *++yyvsp = yyval;

#ifdef YYLSP_NEEDED
  yylsp++;
  if (yylen == 0)
    {
      yylsp->first_line = yylloc.first_line;
      yylsp->first_column = yylloc.first_column;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->text = 0;
    }
  else
    {
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
    }
#endif

  /* 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 - YYNTBASE] + *yyssp;
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTBASE];

  goto yynewstate;

yyerrlab:   /* here on detecting error */

  if (! yyerrstatus)
    /* If not already recovering from an error, report this error.  */
    {
      ++yynerrs;

#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
	{
	  int size = 0;
	  char *msg;
	  int x, count;

	  count = 0;
	  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
	  for (x = (yyn < 0 ? -yyn : 0);
	       x < (sizeof(yytname) / sizeof(char *)); x++)
	    if (yycheck[x + yyn] == x)
	      size += strlen(yytname[x]) + 15, count++;
	  msg = (char *) malloc(size + 15);
	  if (msg != 0)
	    {
	      strcpy(msg, "parse error");

	      if (count < 5)
		{
		  count = 0;
		  for (x = (yyn < 0 ? -yyn : 0);
		       x < (sizeof(yytname) / sizeof(char *)); x++)
		    if (yycheck[x + yyn] == x)
		      {
			strcat(msg, count == 0 ? ", expecting `" : " or `");
			strcat(msg, yytname[x]);
			strcat(msg, "'");
			count++;
		      }
		}
	      yyerror(msg);
	      free(msg);
	    }
	  else
	    yyerror ("parse error; also virtual memory exceeded");
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror("parse error");
    }

  goto yyerrlab1;
yyerrlab1:   /* here on error raised explicitly by an action */

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

      /* return failure if at end of input */
      if (yychar == YYEOF)
	YYABORT;

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
#endif

      yychar = YYEMPTY;
    }

  /* Else will try to reuse lookahead token
     after shifting the error token.  */

  yyerrstatus = 3;		/* Each real token shifted decrements this */

  goto yyerrhandle;

yyerrdefault:  /* current state does not do anything special for the error token. */

#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  if (yyn) goto yydefault;
#endif

yyerrpop:   /* pop the current state because it cannot handle the error token */

  if (yyssp == yyss) YYABORT;
  yyvsp--;
  yystate = *--yyssp;
#ifdef YYLSP_NEEDED
  yylsp--;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "Error: state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

yyerrhandle:

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yyerrdefault;

  yyn += YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
    goto yyerrdefault;

  yyn = yytable[yyn];
  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrpop;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrpop;

  if (yyn == YYFINAL)
    YYACCEPT;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting error token, ");
#endif

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  yystate = yyn;
  goto yynewstate;
}
#line 1855 "parse.y"

#include <ctype.h>
#include <sys/types.h>
#include "regex.h"
#include "util.h"

/* We remove any previous definition of `SIGN_EXTEND_CHAR',
   since ours (we hope) works properly with all combinations of
   machines, compilers, `char' and `unsigned char' argument types.
   (Per Bothner suggested the basic approach.)  */
#undef SIGN_EXTEND_CHAR
#if __STDC__
# define SIGN_EXTEND_CHAR(c) ((signed char)(c))
#else  /* not __STDC__ */
/* As in Harbison and Steele.  */
# define SIGN_EXTEND_CHAR(c) ((((unsigned char)(c)) ^ 128) - 128)
#endif
#define is_identchar(c) (SIGN_EXTEND_CHAR(c)!=-1&&(ISALNUM(c) || (c) == '_' || ismbchar(c)))

static char *tokenbuf = NULL;
static int   tokidx, toksiz = 0;

static NODE *str_extend();

#define LEAVE_BS 1

static VALUE (*lex_gets)();	/* gets function */
static VALUE lex_input;		/* non-nil if File */
static VALUE lex_lastline;	/* gc protect */
static char *lex_pbeg;
static char *lex_p;
static char *lex_pend;

static int
yyerror(msg)
    char *msg;
{
    char *p, *pe, *buf;
    int len, i;

    rb_compile_error("%s", msg);
    p = lex_p;
    while (lex_pbeg <= p) {
	if (*p == '\n') break;
	p--;
    }
    p++;

    pe = lex_p;
    while (pe < lex_pend) {
	if (*pe == '\n') break;
	pe++;
    }

    len = pe - p;
    if (len > 4) {
	buf = ALLOCA_N(char, len+2);
	MEMCPY(buf, p, char, len);
	buf[len] = '\0';
	rb_compile_error_append("%s", buf);

	i = lex_p - p;
	p = buf; pe = p + len;

	while (p < pe) {
	    if (*p != '\t') *p = ' ';
	    p++;
	}
	buf[i] = '^';
	buf[i+1] = '\0';
	rb_compile_error_append("%s", buf);
    }

    return 0;
}

static int heredoc_end;

int ruby_in_compile = 0;
int ruby__end__seen;

static VALUE ruby_debug_lines;

static NODE*
yycompile(f, line)
    char *f;
    int line;
{
    int n;
    NODE *node = 0;

    if (!compile_for_eval && rb_safe_level() == 0 &&
	rb_const_defined(rb_cObject, rb_intern("SCRIPT_LINES__"))) {
	VALUE hash, fname;

	hash = rb_const_get(rb_cObject, rb_intern("SCRIPT_LINES__"));
	if (TYPE(hash) == T_HASH) {
	    fname = rb_str_new2(f);
	    ruby_debug_lines = rb_hash_aref(hash, fname);
	    if (NIL_P(ruby_debug_lines)) {
		ruby_debug_lines = rb_ary_new();
		rb_hash_aset(hash, fname, ruby_debug_lines);
	    }
	}
	if (line > 1) {
	    VALUE str = rb_str_new(0,0);
	    while (line > 1) {
		rb_ary_push(ruby_debug_lines, str);
		line--;
	    }
	}
    }

    ruby__end__seen = 0;
    ruby_eval_tree = 0;
    heredoc_end = 0;
    ruby_sourcefile = f;
    ruby_in_compile = 1;
    n = yyparse();
    ruby_debug_lines = 0;
    compile_for_eval = 0;
    ruby_in_compile = 0;
    cond_nest = 0;
    cond_stack = 0;
    cmdarg_stack = 0;
    class_nest = 0;
    in_single = 0;
    in_def = 0;
    cur_mid = 0;

    if (n == 0) node = ruby_eval_tree;
    return node;
}

static int lex_gets_ptr;

static VALUE
lex_get_str(s)
    VALUE s;
{
    char *beg, *end, *pend;

    beg = RSTRING(s)->ptr;
    if (lex_gets_ptr) {
	if (RSTRING(s)->len == lex_gets_ptr) return Qnil;
	beg += lex_gets_ptr;
    }
    pend = RSTRING(s)->ptr + RSTRING(s)->len;
    end = beg;
    while (end < pend) {
	if (*end++ == '\n') break;
    }
    lex_gets_ptr = end - RSTRING(s)->ptr;
    return rb_str_new(beg, end - beg);
}

static VALUE
lex_getline()
{
    VALUE line = (*lex_gets)(lex_input);
    if (ruby_debug_lines && !NIL_P(line)) {
	rb_ary_push(ruby_debug_lines, line);
    }
    return line;
}

NODE*
rb_compile_string(f, s, line)
    const char *f;
    VALUE s;
    int line;
{
    lex_gets = lex_get_str;
    lex_gets_ptr = 0;
    lex_input = s;
    lex_pbeg = lex_p = lex_pend = 0;
    ruby_sourceline = line - 1;
    compile_for_eval = ruby_in_eval;

    return yycompile(f, line);
}

NODE*
rb_compile_cstr(f, s, len, line)
    const char *f, *s;
    int len, line;
{
    return rb_compile_string(f, rb_str_new(s, len), line);
}

NODE*
rb_compile_file(f, file, start)
    const char *f;
    VALUE file;
    int start;
{
    lex_gets = rb_io_gets;
    lex_input = file;
    lex_pbeg = lex_p = lex_pend = 0;
    ruby_sourceline = start - 1;

    return yycompile(strdup(f), start);
}

static inline int
nextc()
{
    int c;

    if (lex_p == lex_pend) {
	if (lex_input) {
	    VALUE v = lex_getline();

	    if (NIL_P(v)) return -1;
	    if (heredoc_end > 0) {
		ruby_sourceline = heredoc_end;
		heredoc_end = 0;
	    }
	    ruby_sourceline++;
	    lex_pbeg = lex_p = RSTRING(v)->ptr;
	    lex_pend = lex_p + RSTRING(v)->len;
	    if (strncmp(lex_pbeg, "__END__", 7) == 0 &&
		(RSTRING(v)->len == 7 || lex_pbeg[7] == '\n' || lex_pbeg[7] == '\r')) {
		ruby__end__seen = 1;
		lex_lastline = 0;
		return -1;
	    }
	    lex_lastline = v;
	}
	else {
	    lex_lastline = 0;
	    return -1;
	}
    }
    c = (unsigned char)*lex_p++;
    if (c == '\r' && lex_p <= lex_pend && *lex_p == '\n') {
	lex_p++;
	c = '\n';
    }

    return c;
}

static void
pushback(c)
    int c;
{
    if (c == -1) return;
    lex_p--;
}

#define peek(c) (lex_p != lex_pend && (c) == *lex_p)

#define tokfix() (tokenbuf[tokidx]='\0')
#define tok() tokenbuf
#define toklen() tokidx
#define toklast() (tokidx>0?tokenbuf[tokidx-1]:0)

static char*
newtok()
{
    tokidx = 0;
    if (!tokenbuf) {
	toksiz = 60;
	tokenbuf = ALLOC_N(char, 60);
    }
    if (toksiz > 4096) {
	toksiz = 60;
	REALLOC_N(tokenbuf, char, 60);
    }
    return tokenbuf;
}

static void
tokadd(c)
    char c;
{
    tokenbuf[tokidx++] = c;
    if (tokidx >= toksiz) {
	toksiz *= 2;
	REALLOC_N(tokenbuf, char, toksiz);
    }
}

static int
read_escape()
{
    int c;

    switch (c = nextc()) {
      case '\\':	/* Backslash */
	return c;

      case 'n':	/* newline */
	return '\n';

      case 't':	/* horizontal tab */
	return '\t';

      case 'r':	/* carriage-return */
	return '\r';

      case 'f':	/* form-feed */
	return '\f';

      case 'v':	/* vertical tab */
	return '\13';

      case 'a':	/* alarm(bell) */
	return '\007';

      case 'e':	/* escape */
	return 033;

      case '0': case '1': case '2': case '3': /* octal constant */
      case '4': case '5': case '6': case '7':
	{
	    char buf[3];
	    int i;

	    pushback(c);
	    for (i=0; i<3; i++) {
		c = nextc();
		if (c == -1) goto eof;
		if (c < '0' || '7' < c) {
		    pushback(c);
		    break;
		}
		buf[i] = c;
	    }
	    c = scan_oct(buf, i, &i);
	}
	return c;

      case 'x':	/* hex constant */
	{
	    int numlen;

	    c = scan_hex(lex_p, 2, &numlen);
	    lex_p += numlen;
	}
	return c;

      case 'b':	/* backspace */
	return '\010';

      case 's':	/* space */
	return ' ';

      case 'M':
	if ((c = nextc()) != '-') {
	    yyerror("Invalid escape character syntax");
	    pushback(c);
	    return '\0';
	}
	if ((c = nextc()) == '\\') {
	    return read_escape() | 0x80;
	}
	else if (c == -1) goto eof;
	else {
	    return ((c & 0xff) | 0x80);
	}

      case 'C':
	if ((c = nextc()) != '-') {
	    yyerror("Invalid escape character syntax");
	    pushback(c);
	    return '\0';
	}
      case 'c':
	if ((c = nextc())== '\\') {
	    c = read_escape();
	}
	else if (c == '?')
	    return 0177;
	else if (c == -1) goto eof;
	return c & 0x9f;

      eof:
      case -1:
        yyerror("Invalid escape character syntax");
	return '\0';

      default:
	return c;
    }
}

static int
tokadd_escape()
{
    int c;

    switch (c = nextc()) {
      case '\n':
	return 0;		/* just ignore */

      case '0': case '1': case '2': case '3': /* octal constant */
      case '4': case '5': case '6': case '7':
	{
	    int i;

	    tokadd('\\');
	    tokadd(c);
	    for (i=0; i<2; i++) {
		c = nextc();
		if (c == -1) goto eof;
		if (c < '0' || '7' < c) {
		    pushback(c);
		    break;
		}
		tokadd(c);
	    }
	}
	return 0;

      case 'x':	/* hex constant */
	{
	    int numlen;

	    tokadd('\\');
	    tokadd(c);
	    scan_hex(lex_p, 2, &numlen);
	    while (numlen--)
		tokadd(nextc());
	}
	return 0;

      case 'M':
	if ((c = nextc()) != '-') {
	    yyerror("Invalid escape character syntax");
	    pushback(c);
	    return 0;
	}
	tokadd('\\'); tokadd('M'); tokadd('-');
	goto escaped;

      case 'C':
	if ((c = nextc()) != '-') {
	    yyerror("Invalid escape character syntax");
	    pushback(c);
	    return 0;
	}
	tokadd('\\'); tokadd('C'); tokadd('-');
	goto escaped;

      case 'c':
	tokadd('\\'); tokadd('c');
      escaped:
	if ((c = nextc()) == '\\') {
	    return tokadd_escape();
	}
	else if (c == -1) goto eof;
	tokadd(c);
	return 0;

      eof:
      case -1:
        yyerror("Invalid escape character syntax");
	return -1;

      default:
	tokadd('\\');
	tokadd(c);
    }
    return 0;
}

static int
parse_regx(term, paren)
    int term, paren;
{
    register int c;
    char kcode = 0;
    int once = 0;
    int nest = 0;
    int options = 0;
    int re_start = ruby_sourceline;
    NODE *list = 0;

    newtok();
    while ((c = nextc()) != -1) {
	if (c == term && nest == 0) {
	    goto regx_end;
	}

	switch (c) {
	  case '#':
	    list = str_extend(list, term);
	    if (list == (NODE*)-1) return 0;
	    continue;

	  case '\\':
	    if (tokadd_escape() < 0)
		return 0;
	    continue;

	  case -1:
	    goto unterminated;

	  default:
	    if (paren)  {
	      if (c == paren) nest++;
	      if (c == term) nest--;
	    }
	    if (ismbchar(c)) {
		int i, len = mbclen(c)-1;

		for (i = 0; i < len; i++) {
		    tokadd(c);
		    c = nextc();
		}
	    }
	    break;

	  regx_end:
	    for (;;) {
		switch (c = nextc()) {
		  case 'i':
		    options |= RE_OPTION_IGNORECASE;
		    break;
		  case 'x':
		    options |= RE_OPTION_EXTENDED;
		    break;
		  case 'p':	/* /p is obsolete */
		    rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior");
		    options |= RE_OPTION_POSIXLINE;
		    break;
		  case 'm':
		    options |= RE_OPTION_MULTILINE;
		    break;
		  case 'o':
		    once = 1;
		    break;
		  case 'n':
		    kcode = 16;
		    break;
		  case 'e':
		    kcode = 32;
		    break;
		  case 's':
		    kcode = 48;
		    break;
		  case 'u':
		    kcode = 64;
		    break;
		  default:
		    pushback(c);
		    goto end_options;
		}
	    }

	  end_options:
	    tokfix();
	    lex_state = EXPR_END;
	    if (list) {
		nd_set_line(list, re_start);
		if (toklen() > 0) {
		    VALUE ss = rb_str_new(tok(), toklen());
		    list_append(list, NEW_STR(ss));
		}
		nd_set_type(list, once?NODE_DREGX_ONCE:NODE_DREGX);
		list->nd_cflag = options | kcode;
		yylval.node = list;
		return tDREGEXP;
	    }
	    else {
		yylval.val = rb_reg_new(tok(), toklen(), options | kcode);
		return tREGEXP;
	    }
	}
	tokadd(c);
    }
  unterminated:
    ruby_sourceline = re_start;
    rb_compile_error("unterminated regexp meets end of file");
    return 0;
}

static int parse_qstring _((int,int));

static int
parse_string(func, term, paren)
    int func, term, paren;
{
    int c;
    NODE *list = 0;
    int strstart;
    int nest = 0;

    if (func == '\'') {
	return parse_qstring(term, paren);
    }
    if (func == 0) {		/* read 1 line for heredoc */
				/* -1 for chomp */
	yylval.val = rb_str_new(lex_pbeg, lex_pend - lex_pbeg - 1);
	lex_p = lex_pend;
	return tSTRING;
    }
    strstart = ruby_sourceline;
    newtok();
    while ((c = nextc()) != term || nest > 0) {
	if (c == -1) {
	  unterm_str:
	    ruby_sourceline = strstart;
	    rb_compile_error("unterminated string meets end of file");
	    return 0;
	}
	if (ismbchar(c)) {
	    int i, len = mbclen(c)-1;

	    for (i = 0; i < len; i++) {
		tokadd(c);
		c = nextc();
	    }
	}
	else if (c == '#') {
	    list = str_extend(list, term);
	    if (list == (NODE*)-1) goto unterm_str;
	    continue;
	}
	else if (c == '\\') {
	    c = nextc();
	    if (c == '\n')
		continue;
	    if (c == term) {
		tokadd(c);
	    }
	    else {
                pushback(c);
                if (func != '"') tokadd('\\');
                tokadd(read_escape());
  	    }
	    continue;
	}
	if (paren) {
	    if (c == paren) nest++;
	    if (c == term && nest-- == 0) break;
	}
	tokadd(c);
    }

    tokfix();
    lex_state = EXPR_END;

    if (list) {
	nd_set_line(list, strstart);
	if (toklen() > 0) {
	    VALUE ss = rb_str_new(tok(), toklen());
	    list_append(list, NEW_STR(ss));
	}
	yylval.node = list;
	if (func == '`') {
	    nd_set_type(list, NODE_DXSTR);
	    return tDXSTRING;
	}
	else {
	    return tDSTRING;
	}
    }
    else {
	yylval.val = rb_str_new(tok(), toklen());
	return (func == '`') ? tXSTRING : tSTRING;
    }
}

static int
parse_qstring(term, paren)
    int term, paren;
{
    int strstart;
    int c;
    int nest = 0;

    strstart = ruby_sourceline;
    newtok();
    while ((c = nextc()) != term || nest > 0) {
	if (c == -1) {
	    ruby_sourceline = strstart;
	    rb_compile_error("unterminated string meets end of file");
	    return 0;
	}
	if (ismbchar(c)) {
	    int i, len = mbclen(c)-1;

	    for (i = 0; i < len; i++) {
		tokadd(c);
		c = nextc();
	    }
	}
	else if (c == '\\') {
	    c = nextc();
	    switch (c) {
	      case '\n':
		continue;

	      case '\\':
		c = '\\';
		break;

	      default:
		/* fall through */
		if (c == term || (paren && c == paren)) {
		    tokadd(c);
		    continue;
		}
		tokadd('\\');
	    }
	}
	if (paren) {
	    if (c == paren) nest++;
	    if (c == term && nest-- == 0) break;
	}
	tokadd(c);
    }

    tokfix();
    yylval.val = rb_str_new(tok(), toklen());
    lex_state = EXPR_END;
    return tSTRING;
}

static int
parse_quotedwords(term, paren)
    int term, paren;
{
    NODE *qwords = 0;
    int strstart;
    int c;
    int nest = 0;

    strstart = ruby_sourceline;
    newtok();

    while (c = nextc(),ISSPACE(c))
	;		/* skip preceding spaces */
    pushback(c);
    while ((c = nextc()) != term || nest > 0) {
	if (c == -1) {
	    ruby_sourceline = strstart;
	    rb_compile_error("unterminated string meets end of file");
	    return 0;
	}
	if (ismbchar(c)) {
	    int i, len = mbclen(c)-1;

	    for (i = 0; i < len; i++) {
		tokadd(c);
		c = nextc();
	    }
	}
	else if (c == '\\') {
	    c = nextc();
	    switch (c) {
	      case '\n':
		continue;
	      case '\\':
		c = '\\';
		break;
	      default:
		if (c == term || (paren && c == paren)) {
		    tokadd(c);
		    continue;
		}
		if (!ISSPACE(c))
		    tokadd('\\');
		break;
	    }
	}
	else if (ISSPACE(c)) {
	    NODE *str;

	    tokfix();
	    str = NEW_STR(rb_str_new(tok(), toklen()));
	    newtok();
	    if (!qwords) qwords = NEW_LIST(str);
	    else list_append(qwords, str);
	    while (c = nextc(),ISSPACE(c))
		;		/* skip continuous spaces */
	    pushback(c);
	    continue;
	}
	if (paren) {
	    if (c == paren) nest++;
	    if (c == term && nest-- == 0) break;
	}
	tokadd(c);
    }

    tokfix();
    if (toklen() > 0) {
	NODE *str;

	str = NEW_STR(rb_str_new(tok(), toklen()));
	if (!qwords) qwords = NEW_LIST(str);
	else list_append(qwords, str);
    }
    if (!qwords) qwords = NEW_ZARRAY();
    yylval.node = qwords;
    lex_state = EXPR_END;
    return tDSTRING;
}

static int
here_document(term, indent)
    char term;
    int indent;
{
    int c;
    char *eos, *p;
    int len;
    VALUE str;
    volatile VALUE line = 0;
    VALUE lastline_save;
    int offset_save;
    NODE *list = 0;
    int linesave = ruby_sourceline;

    newtok();
    switch (term) {
      case '\'':
      case '"':
      case '`':
	while ((c = nextc()) != term) {
	    tokadd(c);
	}
	if (term == '\'') term = 0;
	break;

      default:
	c = term;
	term = '"';
	if (!is_identchar(c)) {
	    rb_warn("use of bare << to mean <<\"\" is deprecated");
	    break;
	}
	while (is_identchar(c)) {
	    tokadd(c);
	    c = nextc();
	}
	pushback(c);
	break;
    }
    tokfix();
    lastline_save = lex_lastline;
    offset_save = lex_p - lex_pbeg;
    eos = strdup(tok());
    len = strlen(eos);

    str = rb_str_new(0,0);
    for (;;) {
	lex_lastline = line = lex_getline();
	if (NIL_P(line)) {
	  error:
	    ruby_sourceline = linesave;
	    rb_compile_error("can't find string \"%s\" anywhere before EOF", eos);
		free(eos);
		return 0;
	}
	ruby_sourceline++;
	p = RSTRING(line)->ptr;
	if (indent) {
	    while (*p && (*p == ' ' || *p == '\t')) {
		p++;
	    }
	}
	if (strncmp(eos, p, len) == 0) {
	    if (p[len] == '\n' || p[len] == '\r')
		break;
	    if (len == RSTRING(line)->len)
		break;
	}

	lex_pbeg = lex_p = RSTRING(line)->ptr;
	lex_pend = lex_p + RSTRING(line)->len;
#if 0
	if (indent) {
	    while (*lex_p && *lex_p == '\t') {
		lex_p++;
	    }
	}
#endif
      retry:
	switch (parse_string(term, '\n', '\n')) {
	  case tSTRING:
	  case tXSTRING:
	    rb_str_cat2(yylval.val, "\n");
	    if (!list) {
	        rb_str_append(str, yylval.val);
	    }
	    else {
		list_append(list, NEW_STR(yylval.val));
	    }
	    break;
	  case tDSTRING:
	    if (!list) list = NEW_DSTR(str);
	    /* fall through */
	  case tDXSTRING:
	    if (!list) list = NEW_DXSTR(str);

	    list_append(yylval.node, NEW_STR(rb_str_new2("\n")));
	    nd_set_type(yylval.node, NODE_STR);
	    yylval.node = NEW_LIST(yylval.node);
	    yylval.node->nd_next = yylval.node->nd_head->nd_next;
	    list_concat(list, yylval.node);
	    break;

	  case 0:
	    goto error;
	}
	if (lex_p != lex_pend) {
	    goto retry;
	}
    }
    free(eos);
    lex_lastline = lastline_save;
    lex_pbeg = RSTRING(lex_lastline)->ptr;
    lex_pend = lex_pbeg + RSTRING(lex_lastline)->len;
    lex_p = lex_pbeg + offset_save;

    lex_state = EXPR_END;
    heredoc_end = ruby_sourceline;
    ruby_sourceline = linesave;

    if (list) {
	nd_set_line(list, linesave+1);
	yylval.node = list;
    }
    switch (term) {
      case '\0':
      case '\'':
      case '"':
	if (list) return tDSTRING;
	yylval.val = str;
	return tSTRING;
      case '`':
	if (list) return tDXSTRING;
	yylval.val = str;
	return tXSTRING;
    }
    return 0;
}

#include "lex.c"

static void
arg_ambiguous()
{
    rb_warning("ambiguous first argument; make sure");
}

#if !defined(strtod) && !defined(HAVE_STDLIB_H)
double strtod ();
#endif

static int
yylex()
{
    register int c;
    int space_seen = 0;
    struct kwtable *kw;

  retry:
    switch (c = nextc()) {
      case '\0':		/* NUL */
      case '\004':		/* ^D */
      case '\032':		/* ^Z */
      case -1:			/* end of script. */
	return 0;

	/* white spaces */
      case ' ': case '\t': case '\f': case '\r':
      case '\13': /* '\v' */
	space_seen++;
	goto retry;

      case '#':		/* it's a comment */
	while ((c = nextc()) != '\n') {
	    if (c == -1)
		return 0;
	}
	/* fall through */
      case '\n':
	switch (lex_state) {
	  case EXPR_BEG:
	  case EXPR_FNAME:
	  case EXPR_DOT:
	    goto retry;
	  default:
	    break;
	}
	lex_state = EXPR_BEG;
	return '\n';

      case '*':
	if ((c = nextc()) == '*') {
	    lex_state = EXPR_BEG;
	    if (nextc() == '=') {
		yylval.id = tPOW;
		return tOP_ASGN;
	    }
	    pushback(c);
	    return tPOW;
	}
	if (c == '=') {
	    yylval.id = '*';
	    lex_state = EXPR_BEG;
	    return tOP_ASGN;
	}
	pushback(c);
	if (lex_state == EXPR_ARG && space_seen && !ISSPACE(c)){
	    rb_warning("`*' interpreted as argument prefix");
	    c = tSTAR;
	}
	else if (lex_state == EXPR_BEG || lex_state == EXPR_MID) {
	    c = tSTAR;
	}
	else {
	    c = '*';
	}
	lex_state = EXPR_BEG;
	return c;

      case '!':
	lex_state = EXPR_BEG;
	if ((c = nextc()) == '=') {
	    return tNEQ;
	}
	if (c == '~') {
	    return tNMATCH;
	}
	pushback(c);
	return '!';

      case '=':
	if (lex_p == lex_pbeg + 1) {
	    /* skip embedded rd document */
	    if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) {
		for (;;) {
		    lex_p = lex_pend;
		    c = nextc();
		    if (c == -1) {
			rb_compile_error("embedded document meets end of file");
			return 0;
		    }
		    if (c != '=') continue;
		    if (strncmp(lex_p, "end", 3) == 0 &&
			(lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) {
			break;
		    }
		}
		lex_p = lex_pend;
		goto retry;
	    }
	}

	lex_state = EXPR_BEG;
	if ((c = nextc()) == '=') {
	    if ((c = nextc()) == '=') {
		return tEQQ;
	    }
	    pushback(c);
	    return tEQ;
	}
	if (c == '~') {
	    return tMATCH;
	}
	else if (c == '>') {
	    return tASSOC;
	}
	pushback(c);
	return '=';

      case '<':
	c = nextc();
	if (c == '<' &&
	    lex_state != EXPR_END && lex_state != EXPR_CLASS &&
	    (lex_state != EXPR_ARG || space_seen)) {
 	    int c2 = nextc();
	    int indent = 0;
	    if (c2 == '-') {
		indent = 1;
		c2 = nextc();
	    }
	    if (!ISSPACE(c2) && (strchr("\"'`", c2) || is_identchar(c2))) {
		return here_document(c2, indent);
	    }
	    pushback(c2);
	}
	lex_state = EXPR_BEG;
	if (c == '=') {
	    if ((c = nextc()) == '>') {
		return tCMP;
	    }
	    pushback(c);
	    return tLEQ;
	}
	if (c == '<') {
	    if (nextc() == '=') {
		yylval.id = tLSHFT;
		return tOP_ASGN;
	    }
	    pushback(c);
	    return tLSHFT;
	}
	pushback(c);
	return '<';

      case '>':
	lex_state = EXPR_BEG;
	if ((c = nextc()) == '=') {
	    return tGEQ;
	}
	if (c == '>') {
	    if ((c = nextc()) == '=') {
		yylval.id = tRSHFT;
		return tOP_ASGN;
	    }
	    pushback(c);
	    return tRSHFT;
	}
	pushback(c);
	return '>';

      case '"':
	return parse_string(c,c,c);
      case '`':
	if (lex_state == EXPR_FNAME) return c;
	if (lex_state == EXPR_DOT) return c;
	return parse_string(c,c,c);

      case '\'':
	return parse_qstring(c,0);

      case '?':
	if (lex_state == EXPR_END) {
	    lex_state = EXPR_BEG;
	    return '?';
	}
	c = nextc();
	if (c == -1 || c == 10) {
	    rb_compile_error("incomplete character syntax");
	    return 0;
	}
	if (lex_state == EXPR_ARG && ISSPACE(c)){
	    pushback(c);
	    lex_state = EXPR_BEG;
	    return '?';
	}
	if (c == '\\') {
	    c = read_escape();
	}
	c &= 0xff;
	yylval.val = INT2FIX(c);
	lex_state = EXPR_END;
	return tINTEGER;

      case '&':
	if ((c = nextc()) == '&') {
	    lex_state = EXPR_BEG;
	    if ((c = nextc()) == '=') {
		yylval.id = tANDOP;
		return tOP_ASGN;
	    }
	    pushback(c);
	    return tANDOP;
	}
	else if (c == '=') {
	    yylval.id = '&';
	    lex_state = EXPR_BEG;
	    return tOP_ASGN;
	}
	pushback(c);
	if (lex_state == EXPR_ARG && space_seen && !ISSPACE(c)){
	    rb_warning("`&' interpreted as argument prefix");
	    c = tAMPER;
	}
	else if (lex_state == EXPR_BEG || lex_state == EXPR_MID) {
	    c = tAMPER;
	}
	else {
	    c = '&';
	}
	lex_state = EXPR_BEG;
	return c;

      case '|':
	lex_state = EXPR_BEG;
	if ((c = nextc()) == '|') {
	    if ((c = nextc()) == '=') {
		yylval.id = tOROP;
		return tOP_ASGN;
	    }
	    pushback(c);
	    return tOROP;
	}
	else if (c == '=') {
	    yylval.id = '|';
	    return tOP_ASGN;
	}
	pushback(c);
	return '|';

      case '+':
	c = nextc();
	if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) {
	    if (c == '@') {
		return tUPLUS;
	    }
	    pushback(c);
	    return '+';
	}
	if (c == '=') {
	    lex_state = EXPR_BEG;
	    yylval.id = '+';
	    return tOP_ASGN;
	}
	if (lex_state == EXPR_BEG || lex_state == EXPR_MID ||
	    (lex_state == EXPR_ARG && space_seen && !ISSPACE(c))) {
	    if (lex_state == EXPR_ARG) arg_ambiguous();
	    lex_state = EXPR_BEG;
	    pushback(c);
	    if (ISDIGIT(c)) {
		c = '+';
		goto start_num;
	    }
	    return tUPLUS;
	}
	lex_state = EXPR_BEG;
	pushback(c);
	return '+';

      case '-':
	c = nextc();
	if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) {
	    if (c == '@') {
		return tUMINUS;
	    }
	    pushback(c);
	    return '-';
	}
	if (c == '=') {
	    lex_state = EXPR_BEG;
	    yylval.id = '-';
	    return tOP_ASGN;
	}
	if (lex_state == EXPR_BEG || lex_state == EXPR_MID ||
	    (lex_state == EXPR_ARG && space_seen && !ISSPACE(c))) {
	    if (lex_state == EXPR_ARG) arg_ambiguous();
	    lex_state = EXPR_BEG;
	    pushback(c);
	    if (ISDIGIT(c)) {
		c = '-';
		goto start_num;
	    }
	    return tUMINUS;
	}
	lex_state = EXPR_BEG;
	pushback(c);
	return '-';

      case '.':
	lex_state = EXPR_BEG;
	if ((c = nextc()) == '.') {
	    if ((c = nextc()) == '.') {
		return tDOT3;
	    }
	    pushback(c);
	    return tDOT2;
	}
	pushback(c);
	if (!ISDIGIT(c)) {
	    lex_state = EXPR_DOT;
	    return '.';
	}
	c = '.';
	/* fall through */

      start_num:
      case '0': case '1': case '2': case '3': case '4':
      case '5': case '6': case '7': case '8': case '9':
	{
	    int is_float, seen_point, seen_e, seen_uc;

	    is_float = seen_point = seen_e = seen_uc = 0;
	    lex_state = EXPR_END;
	    newtok();
	    if (c == '-' || c == '+') {
		tokadd(c);
		c = nextc();
	    }
	    if (c == '0') {
		c = nextc();
		if (c == 'x' || c == 'X') {
		    /* hexadecimal */
		    c = nextc();
		    do {
			if (c == '_') {
			    seen_uc = 1;
			    continue;
			}
			if (!ISXDIGIT(c)) break;
			seen_uc = 0;
			tokadd(c);
		    } while (c = nextc());
		    pushback(c);
		    tokfix();
		    if (toklen() == 0) {
			yyerror("hexadecimal number without hex-digits");
		    }
		    else if (seen_uc) goto trailing_uc;
		    yylval.val = rb_cstr2inum(tok(), 16);
		    return tINTEGER;
		}
		if (c == 'b' || c == 'B') {
		    /* binary */
		    c = nextc();
		    do {
			if (c == '_') {
			    seen_uc = 1;
			    continue;
			}
			if (c != '0'&& c != '1') break;
			seen_uc = 0;
			tokadd(c);
		    } while (c = nextc());
		    pushback(c);
		    tokfix();
		    if (toklen() == 0) {
			yyerror("numeric literal without digits");
		    }
		    else if (seen_uc) goto trailing_uc;
		    yylval.val = rb_cstr2inum(tok(), 2);
		    return tINTEGER;
		}
		if (c >= '0' && c <= '7' || c == '_') {
		    /* octal */
	            do {
			if (c == '_') {
			    seen_uc = 1;
			    continue;
			}
			if (c < '0' || c > '7') break;
			seen_uc = 0;
			tokadd(c);
		    } while (c = nextc());
		    pushback(c);
		    tokfix();
		    if (seen_uc) goto trailing_uc;
		    yylval.val = rb_cstr2inum(tok(), 8);
		    return tINTEGER;
		}
		if (c > '7' && c <= '9') {
		    yyerror("Illegal octal digit");
		}
		else if (c == '.') {
		    tokadd('0');
		}
		else {
		    pushback(c);
		    yylval.val = INT2FIX(0);
		    return tINTEGER;
		}
	    }

	    for (;;) {
		switch (c) {
		  case '0': case '1': case '2': case '3': case '4':
		  case '5': case '6': case '7': case '8': case '9':
		    seen_uc = 0;
		    tokadd(c);
		    break;

		  case '.':
		    if (seen_point || seen_e) {
			goto decode_num;
		    }
		    else {
			int c0 = nextc();
			if (!ISDIGIT(c0)) {
			    pushback(c0);
			    goto decode_num;
			}
			c = c0;
		    }
		    tokadd('.');
		    tokadd(c);
		    is_float++;
		    seen_point++;
		    seen_uc = 0;
		    break;

		  case 'e':
		  case 'E':
		    if (seen_e) {
			goto decode_num;
		    }
		    tokadd(c);
		    seen_e++;
		    is_float++;
		    while ((c = nextc()) == '_')
			seen_uc = 1;
		    if (c == '-' || c == '+')
			tokadd(c);
		    else 
			continue;
		    break;

		  case '_':	/* `_' in number just ignored */
		    seen_uc = 1;
		    break;

		  default:
		    goto decode_num;
		}
		c = nextc();
	    }

	  decode_num:
	    pushback(c);
	    tokfix();
	    if (seen_uc) {
	      trailing_uc:
		yyerror("trailing `_' in number");
	    }
	    if (is_float) {
		double d = strtod(tok(), 0);
		if (errno == ERANGE) {
		    rb_warn("Float %s out of range", tok());
		    errno = 0;
		}
		yylval.val = rb_float_new(d);
		return tFLOAT;
	    }
	    yylval.val = rb_cstr2inum(tok(), 10);
	    return tINTEGER;
	}

      case ']':
      case '}':
	lex_state = EXPR_END;
	return c;

      case ')':
	if (cond_nest > 0) {
	    cond_stack >>= 1;
	}
	lex_state = EXPR_END;
	return c;

      case ':':
	c = nextc();
	if (c == ':') {
	    if (lex_state == EXPR_BEG ||  lex_state == EXPR_MID ||
		(lex_state == EXPR_ARG && space_seen)) {
		lex_state = EXPR_BEG;
		return tCOLON3;
	    }
	    lex_state = EXPR_DOT;
	    return tCOLON2;
	}
	pushback(c);
	if (lex_state == EXPR_END || ISSPACE(c)) {
	    lex_state = EXPR_BEG;
	    return ':';
	}
	lex_state = EXPR_FNAME;
	return tSYMBEG;

      case '/':
	if (lex_state == EXPR_BEG || lex_state == EXPR_MID) {
	    return parse_regx('/', '/');
	}
	if ((c = nextc()) == '=') {
	    lex_state = EXPR_BEG;
	    yylval.id = '/';
	    return tOP_ASGN;
	}
	pushback(c);
	if (lex_state == EXPR_ARG && space_seen) {
	    if (!ISSPACE(c)) {
		arg_ambiguous();
		return parse_regx('/', '/');
	    }
	}
	lex_state = EXPR_BEG;
	return '/';

      case '^':
	lex_state = EXPR_BEG;
	if ((c = nextc()) == '=') {
	    yylval.id = '^';
	    return tOP_ASGN;
	}
	pushback(c);
	return '^';

      case ',':
      case ';':
	lex_state = EXPR_BEG;
	return c;

      case '~':
	if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) {
	    if ((c = nextc()) != '@') {
		pushback(c);
	    }
	}
	lex_state = EXPR_BEG;
	return '~';

      case '(':
	if (cond_nest > 0) {
	    cond_stack = (cond_stack<<1)|0;
	}
	if (lex_state == EXPR_BEG || lex_state == EXPR_MID) {
	    c = tLPAREN;
	}
	else if (lex_state == EXPR_ARG && space_seen) {
	    rb_warning("%s (...) interpreted as method call", tok());
	}
	lex_state = EXPR_BEG;
	return c;

      case '[':
	if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) {
	    if ((c = nextc()) == ']') {
		if ((c = nextc()) == '=') {
		    return tASET;
		}
		pushback(c);
		return tAREF;
	    }
	    pushback(c);
	    return '[';
	}
	else if (lex_state == EXPR_BEG || lex_state == EXPR_MID) {
	    c = tLBRACK;
	}
	else if (lex_state == EXPR_ARG && space_seen) {
	    c = tLBRACK;
	}
	lex_state = EXPR_BEG;
	return c;

      case '{':
	if (lex_state != EXPR_END && lex_state != EXPR_ARG)
	    c = tLBRACE;
	lex_state = EXPR_BEG;
	return c;

      case '\\':
	c = nextc();
	if (c == '\n') {
	    space_seen = 1;
	    goto retry; /* skip \\n */
	}
	pushback(c);
	return '\\';

      case '%':
	if (lex_state == EXPR_BEG || lex_state == EXPR_MID) {
	    int term;
	    int paren;

	    c = nextc();
	  quotation:
	    if (!ISALNUM(c)) {
		term = c;
		c = 'Q';
	    }
	    else {
		term = nextc();
	    }
	    if (c == -1 || term == -1) {
		rb_compile_error("unterminated quoted string meets end of file");
		return 0;
	    }
	    paren = term;
	    if (term == '(') term = ')';
	    else if (term == '[') term = ']';
	    else if (term == '{') term = '}';
	    else if (term == '<') term = '>';
	    else paren = 0;

	    switch (c) {
	      case 'Q':
		return parse_string('"', term, paren);

	      case 'q':
		return parse_qstring(term, paren);

	      case 'w':
		return parse_quotedwords(term, paren);

	      case 'x':
		return parse_string('`', term, paren);

	      case 'r':
		return parse_regx(term, paren);

	      default:
		yyerror("unknown type of %string");
		return 0;
	    }
	}
	if ((c = nextc()) == '=') {
	    yylval.id = '%';
	    return tOP_ASGN;
	}
	if (lex_state == EXPR_ARG && space_seen && !ISSPACE(c)) {
	    goto quotation;
	}
	lex_state = EXPR_BEG;
	pushback(c);
	return '%';

      case '$':
	lex_state = EXPR_END;
	newtok();
	c = nextc();
	switch (c) {
	  case '_':		/* $_: last read line string */
	    c = nextc();
	    if (is_identchar(c)) {
		tokadd('$');
		tokadd('_');
		break;
	    }
	    pushback(c);
	    c = '_';
	    /* fall through */
	  case '~':		/* $~: match-data */
	    local_cnt(c);
	    /* fall through */
	  case '*':		/* $*: argv */
	  case '$':		/* $$: pid */
	  case '?':		/* $?: last status */
	  case '!':		/* $!: error string */
	  case '@':		/* $@: error position */
	  case '/':		/* $/: input record separator */
	  case '\\':		/* $\: output record separator */
	  case ';':		/* $;: field separator */
	  case ',':		/* $,: output field separator */
	  case '.':		/* $.: last read line number */
	  case '=':		/* $=: ignorecase */
	  case ':':		/* $:: load path */
	  case '<':		/* $<: reading filename */
	  case '>':		/* $>: default output handle */
	  case '\"':		/* $": already loaded files */
	    tokadd('$');
	    tokadd(c);
	    tokfix();
	    yylval.id = rb_intern(tok());
	    return tGVAR;

	  case '-':
	    tokadd('$');
	    tokadd(c);
	    c = nextc();
	    tokadd(c);
	    tokfix();
	    yylval.id = rb_intern(tok());
	    /* xxx shouldn't check if valid option variable */
	    return tGVAR;

	  case '&':		/* $&: last match */
	  case '`':		/* $`: string before last match */
	  case '\'':		/* $': string after last match */
	  case '+':		/* $+: string matches last paren. */
	    yylval.node = NEW_BACK_REF(c);
	    return tBACK_REF;

	  case '1': case '2': case '3':
	  case '4': case '5': case '6':
	  case '7': case '8': case '9':
	    tokadd('$');
	    while (ISDIGIT(c)) {
		tokadd(c);
		c = nextc();
	    }
	    if (is_identchar(c))
		break;
	    pushback(c);
	    tokfix();
	    yylval.node = NEW_NTH_REF(atoi(tok()+1));
	    return tNTH_REF;

	  default:
	    if (!is_identchar(c)) {
		pushback(c);
		return '$';
	    }
	  case '0':
	    tokadd('$');
	}
	break;

      case '@':
	c = nextc();
	newtok();
	tokadd('@');
	if (c == '@') {
	    tokadd('@');
	    c = nextc();
	}
	if (ISDIGIT(c)) {
	    rb_compile_error("`@%c' is not a valid instance variable name", c);
	}
	if (!is_identchar(c)) {
	    pushback(c);
	    return '@';
	}
	break;

      default:
	if (!is_identchar(c) || ISDIGIT(c)) {
	    rb_compile_error("Invalid char `\\%03o' in expression", c);
	    goto retry;
	}

	newtok();
	break;
    }

    while (is_identchar(c)) {
	tokadd(c);
	if (ismbchar(c)) {
	    int i, len = mbclen(c)-1;

	    for (i = 0; i < len; i++) {
		c = nextc();
		tokadd(c);
	    }
	}
	c = nextc();
    }
    if ((c == '!' || c == '?') && is_identchar(tok()[0]) && !peek('=')) {
	tokadd(c);
    }
    else {
	pushback(c);
    }
    tokfix();

    {
	int result = 0;

	switch (tok()[0]) {
	  case '$':
	    lex_state = EXPR_END;
	    result = tGVAR;
	    break;
	  case '@':
	    lex_state = EXPR_END;
	    if (tok()[1] == '@')
		result = tCVAR;
	    else
		result = tIVAR;
	    break;
	  default:
	    if (lex_state != EXPR_DOT) {
		/* See if it is a reserved word.  */
		kw = rb_reserved_word(tok(), toklen());
		if (kw) {
		    enum lex_state state = lex_state;
		    lex_state = kw->state;
		    if (state == EXPR_FNAME) {
			yylval.id = rb_intern(kw->name);
		    }
		    if (kw->id[0] == kDO) {
			if (COND_P()) return kDO_COND;
			if (CMDARG_P()) return kDO_BLOCK;
			return kDO;
		    }
		    if (state == EXPR_BEG)
			return kw->id[0];
		    else {
			if (kw->id[0] != kw->id[1])
			    lex_state = EXPR_BEG;
			return kw->id[1];
		    }
		}
	    }

	    if (toklast() == '!' || toklast() == '?') {
		result = tFID;
	    }
	    else {
		if (lex_state == EXPR_FNAME) {
#if 0
		    if ((c = nextc()) == '=' && !peek('=') && !peek('~') && !peek('>')) {
#else
		    if ((c = nextc()) == '=' && !peek('~') && !peek('>') &&
			(!peek('=') || lex_p + 1 < lex_pend && lex_p[1] == '>')) {
#endif
			result = tIDENTIFIER;
			tokadd(c);
		    }
		    else {
			pushback(c);
		    }
		}
		if (result == 0 && ISUPPER(tok()[0])) {
		    result = tCONSTANT;
		}
		else {
		    result = tIDENTIFIER;
		}
	    }
	    if (lex_state == EXPR_BEG ||
		lex_state == EXPR_DOT ||
		lex_state == EXPR_ARG) {
		lex_state = EXPR_ARG;
	    }
	    else {
		lex_state = EXPR_END;
	    }
	}
	tokfix();
	yylval.id = rb_intern(tok());
	return result;
    }
}

static NODE*
str_extend(list, term)
    NODE *list;
    char term;
{
    int c;
    int brace = -1;
    VALUE ss;
    NODE *node;
    int nest;

    c = nextc();
    switch (c) {
      case '$':
      case '@':
      case '{':
	break;
      default:
	tokadd('#');
	pushback(c);
	return list;
    }

    ss = rb_str_new(tok(), toklen());
    if (list == 0) {
	list = NEW_DSTR(ss);
    }
    else if (toklen() > 0) {
	list_append(list, NEW_STR(ss));
    }
    newtok();

    switch (c) {
      case '$':
	tokadd('$');
	c = nextc();
	if (c == -1) return (NODE*)-1;
	switch (c) {
	  case '1': case '2': case '3':
	  case '4': case '5': case '6':
	  case '7': case '8': case '9':
	    while (ISDIGIT(c)) {
		tokadd(c);
		c = nextc();
	    }
	    pushback(c);
	    goto fetch_id;

	  case '&': case '+':
	  case '_': case '~':
	  case '*': case '$': case '?':
	  case '!': case '@': case ',':
	  case '.': case '=': case ':':
	  case '<': case '>': case '\\':
	  refetch:
	    tokadd(c);
	    goto fetch_id;

          default:
	    if (c == term) {
		list_append(list, NEW_STR(rb_str_new2("#$")));
		pushback(c);
		newtok();
		return list;
	    }
	    switch (c) {
	      case '\"':
	      case '/':
	      case '\'':
	      case '`':
		goto refetch;
	    }
	    if (!is_identchar(c)) {
		yyerror("bad global variable in string");
		newtok();
		return list;
	    }
	}

	while (is_identchar(c)) {
	    tokadd(c);
	    if (ismbchar(c)) {
		int i, len = mbclen(c)-1;

		for (i = 0; i < len; i++) {
		    c = nextc();
		    tokadd(c);
		}
	    }
	    c = nextc();
	}
	pushback(c);
	break;

      case '@':
	tokadd(c);
	c = nextc();
        if (c == '@') {
	    tokadd(c);
	    c = nextc();
        }
	while (is_identchar(c)) {
	    tokadd(c);
	    if (ismbchar(c)) {
		int i, len = mbclen(c)-1;

		for (i = 0; i < len; i++) {
		    c = nextc();
		    tokadd(c);
		}
	    }
	    c = nextc();
	}
	pushback(c);
	break;

      case '{':
	if (c == '{') brace = '}';
	nest = 0;
	do {
	  loop_again:
	    c = nextc();
	    switch (c) {
	      case -1:
		if (nest > 0) {
		    yyerror("bad substitution in string");
		    newtok();
		    return list;
		}
		return (NODE*)-1;
	      case '}':
		if (c == brace) {
		    if (nest == 0) break;
		    nest--;
		}
		tokadd(c);
		goto loop_again;
	      case '\\':
		c = nextc();
		if (c == -1) return (NODE*)-1;
		if (c == term) {
		    tokadd(c);
		}
		else {
		    tokadd('\\');
		    tokadd(c);
		}
		break;
	      case '{':
		if (brace != -1) nest++;
	      case '\"':
	      case '/':
	      case '`':
		if (c == term) {
		    pushback(c);
		    list_append(list, NEW_STR(rb_str_new2("#")));
		    rb_warning("bad substitution in string");
		    tokfix();
		    list_append(list, NEW_STR(rb_str_new(tok(), toklen())));
		    newtok();
		    return list;
		}
	      default:
		tokadd(c);
		break;
	    }
	} while (c != brace);
    }

  fetch_id:
    tokfix();
    node = NEW_EVSTR(tok(),toklen());
    list_append(list, node);
    newtok();

    return list;
}

NODE*
rb_node_newnode(type, a0, a1, a2)
    enum node_type type;
    NODE *a0, *a1, *a2;
{
    NODE *n = (NODE*)rb_newobj();

    n->flags |= T_NODE;
    nd_set_type(n, type);
    nd_set_line(n, ruby_sourceline);
    n->nd_file = ruby_sourcefile;

    n->u1.node = a0;
    n->u2.node = a1;
    n->u3.node = a2;

    return n;
}

static enum node_type
nodetype(node)			/* for debug */
    NODE *node;
{
    return (enum node_type)nd_type(node);
}

static int
nodeline(node)
    NODE *node;
{
    return nd_line(node);
}

static NODE*
newline_node(node)
    NODE *node;
{
    NODE *nl = 0;
    if (node) {
        nl = NEW_NEWLINE(node);
        fixpos(nl, node);
        nl->nd_nth = nd_line(node);
    }
    return nl;
}

static void
fixpos(node, orig)
    NODE *node, *orig;
{
    if (!node) return;
    if (!orig) return;
    node->nd_file = orig->nd_file;
    nd_set_line(node, nd_line(orig));
}

static NODE*
block_append(head, tail)
    NODE *head, *tail;
{
    NODE *end;

    if (tail == 0) return head;
    if (head == 0) return tail;

    if (nd_type(head) != NODE_BLOCK) {
	end = NEW_BLOCK(head);
	end->nd_end = end;
	fixpos(end, head);
	head = end;
    }
    else {
	end = head->nd_end;
    }

    if (RTEST(ruby_verbose)) {
	NODE *nd = end->nd_head;
      newline:
	switch (nd_type(nd)) {
	  case NODE_RETURN:
	  case NODE_BREAK:
	  case NODE_NEXT:
	  case NODE_REDO:
	  case NODE_RETRY:
	    rb_warning("statement not reached");
	    break;

	case NODE_NEWLINE:
	    nd = nd->nd_next;
	    goto newline;

	  default:
	    break;
	}
    }

    if (nd_type(tail) != NODE_BLOCK) {
	tail = NEW_BLOCK(tail);
	tail->nd_end = tail;
    }
    end->nd_next = tail;
    head->nd_end = tail->nd_end;
    return head;
}

static NODE*
list_append(head, tail)
    NODE *head, *tail;
{
    NODE *last;

    if (head == 0) return NEW_LIST(tail);

    last = head;
    while (last->nd_next) {
	last = last->nd_next;
    }

    last->nd_next = NEW_LIST(tail);
    head->nd_alen += 1;
    return head;
}

static NODE*
list_concat(head, tail)
    NODE *head, *tail;
{
    NODE *last;

    last = head;
    while (last->nd_next) {
	last = last->nd_next;
    }

    last->nd_next = tail;
    head->nd_alen += tail->nd_alen;

    return head;
}

static NODE *
call_op(recv, id, narg, arg1)
    NODE *recv;
    ID id;
    int narg;
    NODE *arg1;
{
    value_expr(recv);
    if (narg == 1) {
	value_expr(arg1);
    }

    return NEW_CALL(recv, id, narg==1?NEW_LIST(arg1):0);
}

static NODE*
match_gen(node1, node2)
    NODE *node1;
    NODE *node2;
{
    local_cnt('~');

    switch (nd_type(node1)) {
      case NODE_DREGX:
      case NODE_DREGX_ONCE:
	return NEW_MATCH2(node1, node2);

      case NODE_LIT:
	if (TYPE(node1->nd_lit) == T_REGEXP) {
	    return NEW_MATCH2(node1, node2);
	}
    }

    switch (nd_type(node2)) {
      case NODE_DREGX:
      case NODE_DREGX_ONCE:
	return NEW_MATCH3(node2, node1);

      case NODE_LIT:
	if (TYPE(node2->nd_lit) == T_REGEXP) {
	    return NEW_MATCH3(node2, node1);
	}
    }

    return NEW_CALL(node1, tMATCH, NEW_LIST(node2));
}

static NODE*
gettable(id)
    ID id;
{
    if (id == kSELF) {
	return NEW_SELF();
    }
    else if (id == kNIL) {
	return NEW_NIL();
    }
    else if (id == kTRUE) {
	return NEW_TRUE();
    }
    else if (id == kFALSE) {
	return NEW_FALSE();
    }
    else if (id == k__FILE__) {
	return NEW_STR(rb_str_new2(ruby_sourcefile));
    }
    else if (id == k__LINE__) {
	return NEW_LIT(INT2FIX(ruby_sourceline));
    }
    else if (is_local_id(id)) {
	if (dyna_in_block() && rb_dvar_defined(id)) return NEW_DVAR(id);
	if (local_id(id)) return NEW_LVAR(id);
	/* method call without arguments */
	return NEW_VCALL(id);
    }
    else if (is_global_id(id)) {
	return NEW_GVAR(id);
    }
    else if (is_instance_id(id)) {
	return NEW_IVAR(id);
    }
    else if (is_const_id(id)) {
	return NEW_CONST(id);
    }
    else if (is_class_id(id)) {
	if (in_single) return NEW_CVAR2(id);
	return NEW_CVAR(id);
    }
    rb_bug("invalid id for gettable");
    return 0;
}

static NODE*
assignable(id, val)
    ID id;
    NODE *val;
{
    value_expr(val);
    if (id == kSELF) {
	yyerror("Can't change the value of self");
    }
    else if (id == kNIL) {
	yyerror("Can't assign to nil");
    }
    else if (id == kTRUE) {
	yyerror("Can't assign to true");
    }
    else if (id == kFALSE) {
	yyerror("Can't assign to false");
    }
    else if (id == k__FILE__) {
	yyerror("Can't assign to __FILE__");
    }
    else if (id == k__LINE__) {
	yyerror("Can't assign to __LINE__");
    }
    else if (is_local_id(id)) {
	if (rb_dvar_curr(id)) {
	    return NEW_DASGN_CURR(id, val);
	}
	else if (rb_dvar_defined(id)) {
	    return NEW_DASGN(id, val);
	}
	else if (local_id(id) || !dyna_in_block()) {
	    return NEW_LASGN(id, val);
	}
	else{
	    rb_dvar_push(id, Qnil);
	    return NEW_DASGN_CURR(id, val);
	}
    }
    else if (is_global_id(id)) {
	return NEW_GASGN(id, val);
    }
    else if (is_instance_id(id)) {
	return NEW_IASGN(id, val);
    }
    else if (is_const_id(id)) {
	if (in_def || in_single)
	    yyerror("dynamic constant assignment");
	return NEW_CDECL(id, val);
    }
    else if (is_class_id(id)) {
	if (in_single) return NEW_CVASGN(id, val);
	return NEW_CVDECL(id, val);
    }
    else {
	rb_bug("bad id for variable");
    }
    return 0;
}

static NODE *
aryset(recv, idx)
    NODE *recv, *idx;
{
    value_expr(recv);

    return NEW_CALL(recv, tASET, idx);
}

ID
rb_id_attrset(id)
    ID id;
{
    id &= ~ID_SCOPE_MASK;
    id |= ID_ATTRSET;
    return id;
}

static NODE *
attrset(recv, id)
    NODE *recv;
    ID id;
{
    value_expr(recv);

    return NEW_CALL(recv, rb_id_attrset(id), 0);
}

static void
rb_backref_error(node)
    NODE *node;
{
    switch (nd_type(node)) {
      case NODE_NTH_REF:
	rb_compile_error("Can't set variable $%d", node->nd_nth);
	break;
      case NODE_BACK_REF:
	rb_compile_error("Can't set variable $%c", node->nd_nth);
	break;
    }
}

static NODE *
arg_concat(node1, node2)
    NODE *node1;
    NODE *node2;
{
    if (!node2) return node1;
    return NEW_ARGSCAT(node1, node2);
}

static NODE *
arg_add(node1, node2)
    NODE *node1;
    NODE *node2;
{
    if (!node1) return NEW_LIST(node2);
    if (nd_type(node1) == NODE_ARRAY) {
	return list_append(node1, node2);
    }
    else {
	return NEW_ARGSPUSH(node1, node2);
    }
}

static NODE*
node_assign(lhs, rhs)
    NODE *lhs, *rhs;
{
    if (!lhs) return 0;

    value_expr(rhs);
    switch (nd_type(lhs)) {
      case NODE_GASGN:
      case NODE_IASGN:
      case NODE_LASGN:
      case NODE_DASGN:
      case NODE_DASGN_CURR:
      case NODE_MASGN:
      case NODE_CDECL:
      case NODE_CVDECL:
      case NODE_CVASGN:
	lhs->nd_value = rhs;
	break;

      case NODE_CALL:
	lhs->nd_args = arg_add(lhs->nd_args, rhs);
	break;

      default:
	/* should not happen */
	break;
    }

    if (rhs) fixpos(lhs, rhs);
    return lhs;
}

static int
value_expr(node)
    NODE *node;
{
    if (node == 0) return Qtrue;

    switch (nd_type(node)) {
      case NODE_RETURN:
      case NODE_BREAK:
      case NODE_NEXT:
      case NODE_REDO:
      case NODE_RETRY:
      case NODE_WHILE:
      case NODE_UNTIL:
      case NODE_CLASS:
      case NODE_MODULE:
      case NODE_DEFN:
      case NODE_DEFS:
	yyerror("void value expression");
	return Qfalse;
	break;

      case NODE_BLOCK:
	while (node->nd_next) {
	    node = node->nd_next;
	}
	return value_expr(node->nd_head);

      case NODE_BEGIN:
	return value_expr(node->nd_body);

      case NODE_IF:
	return value_expr(node->nd_body) && value_expr(node->nd_else);

      case NODE_NEWLINE:
	return value_expr(node->nd_next);

      default:
	return Qtrue;
    }
}

static void
void_expr(node)
    NODE *node;
{
    char *useless = 0;

    if (!ruby_verbose) return;
    if (!node) return;

  again:
    switch (nd_type(node)) {
      case NODE_NEWLINE:
	node = node->nd_next;
	goto again;

      case NODE_CALL:
	switch (node->nd_mid) {
	  case '+':
	  case '-':
	  case '*':
	  case '/':
	  case '%':
	  case tPOW:
	  case tUPLUS:
	  case tUMINUS:
	  case '|':
	  case '^':
	  case '&':
	  case tCMP:
	  case '>':
	  case tGEQ:
	  case '<':
	  case tLEQ:
	  case tEQ:
	  case tNEQ:
	  case tAREF:
	  case tRSHFT:
	  case tCOLON2:
	  case tCOLON3:
	    useless = rb_id2name(node->nd_mid);
	    break;
	}
	break;

      case NODE_LVAR:
      case NODE_DVAR:
      case NODE_GVAR:
      case NODE_IVAR:
      case NODE_CVAR:
      case NODE_NTH_REF:
      case NODE_BACK_REF:
	useless = "a variable";
	break;
      case NODE_CONST:
      case NODE_CREF:
	useless = "a constant";
	break;
      case NODE_LIT:
      case NODE_STR:
      case NODE_DSTR:
      case NODE_DREGX:
      case NODE_DREGX_ONCE:
	useless = "a literal";
	break;
      case NODE_COLON2:
      case NODE_COLON3:
	useless = "::";
	break;
      case NODE_DOT2:
	useless = "..";
	break;
      case NODE_DOT3:
	useless = "...";
	break;
      case NODE_SELF:
	useless = "self";
	break;
      case NODE_NIL:
	useless = "nil";
	break;
      case NODE_TRUE:
	useless = "true";
	break;
      case NODE_FALSE:
	useless = "false";
	break;
      case NODE_DEFINED:
	useless = "defined?";
	break;
    }

    if (useless) {
	int line = ruby_sourceline;

	ruby_sourceline = nd_line(node);
	rb_warn("useless use of %s in void context", useless);
	ruby_sourceline = line;
    }
}


static NODE *cond2 _((NODE*));

static void
void_stmts(node)
    NODE *node;
{
    if (!ruby_verbose) return;
    if (!node) return;
    if (nd_type(node) != NODE_BLOCK) return;

    for (;;) {
	if (!node->nd_next) return;
	void_expr(node->nd_head);
	node = node->nd_next;
    }
}

static int
assign_in_cond(node)
    NODE *node;
{
    switch (nd_type(node)) {
      case NODE_MASGN:
	yyerror("multiple assignment in conditional");
	return 1;

      case NODE_LASGN:
      case NODE_DASGN:
      case NODE_GASGN:
      case NODE_IASGN:
	break;

      case NODE_NEWLINE:
      default:
	return 0;
    }

    switch (nd_type(node->nd_value)) {
      case NODE_LIT:
      case NODE_STR:
      case NODE_NIL:
      case NODE_TRUE:
      case NODE_FALSE:
	/* reports always */
	rb_warn("found = in conditional, should be ==");
	return 1;

      case NODE_DSTR:
      case NODE_XSTR:
      case NODE_DXSTR:
      case NODE_EVSTR:
      case NODE_DREGX:
      default:
	break;
    }
#if 0
    if (assign_in_cond(node->nd_value) == 0) {
	rb_warning("assignment in condition");
    }
#endif
    return 1;
}

static NODE*
cond0(node)
    NODE *node;
{
    enum node_type type = nd_type(node);

    assign_in_cond(node);
    switch (type) {
      case NODE_DREGX:
      case NODE_DREGX_ONCE:
	local_cnt('_');
	local_cnt('~');
	return NEW_MATCH2(node, NEW_GVAR(rb_intern("$_")));

      case NODE_DOT2:
      case NODE_DOT3:
	node->nd_beg = cond2(node->nd_beg);
	node->nd_end = cond2(node->nd_end);
	if (type == NODE_DOT2) nd_set_type(node,NODE_FLIP2);
	else if (type == NODE_DOT3) nd_set_type(node, NODE_FLIP3);
	node->nd_cnt = local_append(0);
	return node;

      case NODE_LIT:
	if (TYPE(node->nd_lit) == T_REGEXP) {
	    local_cnt('_');
	    local_cnt('~');
	    return NEW_MATCH(node);
	}
	if (TYPE(node->nd_lit) == T_STRING) {
	    local_cnt('_');
	    local_cnt('~');
	    return NEW_MATCH(rb_reg_new(RSTRING(node)->ptr,RSTRING(node)->len,0));
	}
      default:
	return node;
    }
}

static NODE*
cond(node)
    NODE *node;
{
    if (node == 0) return 0;
    if (nd_type(node) == NODE_NEWLINE){
	node->nd_next = cond0(node->nd_next);
	return node;
    }
    return cond0(node);
}

static NODE*
cond2(node)
    NODE *node;
{
    enum node_type type;

    node = cond(node);
    type = nd_type(node);
    if (type == NODE_NEWLINE) node = node->nd_next;
    if (type == NODE_LIT && FIXNUM_P(node->nd_lit)) {
	return call_op(node,tEQ,1,NEW_GVAR(rb_intern("$.")));
    }
    return node;
}

static NODE*
logop(type, left, right)
    enum node_type type;
    NODE *left, *right;
{
    value_expr(left);
    return rb_node_newnode(type, cond(left), cond(right), 0);
}

static NODE *
arg_blk_pass(node1, node2)
    NODE *node1;
    NODE *node2;
{
    if (node2) {
	node2->nd_head = node1;
	return node2;
    }
    return node1;
}

static NODE*
new_call(r,m,a)
    NODE *r;
    ID m;
    NODE *a;
{
    if (a && nd_type(a) == NODE_BLOCK_PASS) {
	a->nd_iter = NEW_CALL(r,m,a->nd_head);
	return a;
    }
    return NEW_CALL(r,m,a);
}

static NODE*
new_fcall(m,a)
    ID m;
    NODE *a;
{
    if (a && nd_type(a) == NODE_BLOCK_PASS) {
	a->nd_iter = NEW_FCALL(m,a->nd_head);
	return a;
    }
    return NEW_FCALL(m,a);
}

static NODE*
new_super(a)
    NODE *a;
{
    if (a && nd_type(a) == NODE_BLOCK_PASS) {
	a->nd_iter = NEW_SUPER(a->nd_head);
	return a;
    }
    return NEW_SUPER(a);
}

static struct local_vars {
    ID *tbl;
    int nofree;
    int cnt;
    int dlev;
    struct local_vars *prev;
} *lvtbl;

static void
local_push()
{
    struct local_vars *local;

    local = ALLOC(struct local_vars);
    local->prev = lvtbl;
    local->nofree = 0;
    local->cnt = 0;
    local->tbl = 0;
    local->dlev = 0;
    lvtbl = local;
}

static void
local_pop()
{
    struct local_vars *local = lvtbl->prev;

    if (lvtbl->tbl) {
	if (!lvtbl->nofree) free(lvtbl->tbl);
	else lvtbl->tbl[0] = lvtbl->cnt;
    }
    free(lvtbl);
    lvtbl = local;
}

static ID*
local_tbl()
{
    lvtbl->nofree = 1;
    return lvtbl->tbl;
}

static int
local_append(id)
    ID id;
{
    if (lvtbl->tbl == 0) {
	lvtbl->tbl = ALLOC_N(ID, 4);
	lvtbl->tbl[0] = 0;
	lvtbl->tbl[1] = '_';
	lvtbl->tbl[2] = '~';
	lvtbl->cnt = 2;
	if (id == '_') return 0;
	if (id == '~') return 1;
    }
    else {
	REALLOC_N(lvtbl->tbl, ID, lvtbl->cnt+2);
    }

    lvtbl->tbl[lvtbl->cnt+1] = id;
    return lvtbl->cnt++;
}

static int
local_cnt(id)
    ID id;
{
    int cnt, max;

    if (id == 0) return lvtbl->cnt;

    for (cnt=1, max=lvtbl->cnt+1; cnt<max;cnt++) {
	if (lvtbl->tbl[cnt] == id) return cnt-1;
    }
    return local_append(id);
}

static int
local_id(id)
    ID id;
{
    int i, max;

    if (lvtbl == 0) return Qfalse;
    for (i=3, max=lvtbl->cnt+1; i<max; i++) {
	if (lvtbl->tbl[i] == id) return Qtrue;
    }
    return Qfalse;
}

static void
top_local_init()
{
    local_push();
    lvtbl->cnt = ruby_scope->local_tbl?ruby_scope->local_tbl[0]:0;
    if (lvtbl->cnt > 0) {
	lvtbl->tbl = ALLOC_N(ID, lvtbl->cnt+3);
	MEMCPY(lvtbl->tbl, ruby_scope->local_tbl, ID, lvtbl->cnt+1);
    }
    else {
	lvtbl->tbl = 0;
    }
    if (ruby_dyna_vars)
	lvtbl->dlev = 1;
    else
	lvtbl->dlev = 0;
}

static void
top_local_setup()
{
    int len = lvtbl->cnt;
    int i;

    if (len > 0) {
	i = ruby_scope->local_tbl?ruby_scope->local_tbl[0]:0;

	if (i < len) {
	    if (i == 0 || (ruby_scope->flag & SCOPE_MALLOC) == 0) {
		VALUE *vars = ALLOC_N(VALUE, len+1);
		if (ruby_scope->local_vars) {
		    *vars++ = ruby_scope->local_vars[-1];
		    MEMCPY(vars, ruby_scope->local_vars, VALUE, i);
		    rb_mem_clear(vars+i, len-i);
		}
		else {
		    *vars++ = 0;
		    rb_mem_clear(vars, len);
		}
		ruby_scope->local_vars = vars;
		ruby_scope->flag |= SCOPE_MALLOC;
	    }
	    else {
		VALUE *vars = ruby_scope->local_vars-1;
		REALLOC_N(vars, VALUE, len+1);
		ruby_scope->local_vars = vars+1;
		rb_mem_clear(ruby_scope->local_vars+i, len-i);
	    }
	    if (ruby_scope->local_tbl && ruby_scope->local_vars[-1] == 0) {
		free(ruby_scope->local_tbl);
	    }
	    ruby_scope->local_vars[-1] = 0;
	    ruby_scope->local_tbl = local_tbl();
	}
    }
    local_pop();
}

static struct RVarmap*
dyna_push()
{
    struct RVarmap* vars = ruby_dyna_vars;

    rb_dvar_push(0, 0);
    lvtbl->dlev++;
    return vars;
}

static void
dyna_pop(vars)
    struct RVarmap* vars;
{
    lvtbl->dlev--;
    ruby_dyna_vars = vars;
}

static int
dyna_in_block()
{
    return (lvtbl->dlev > 0);
}

void
rb_parser_append_print()
{
    ruby_eval_tree =
	block_append(ruby_eval_tree,
		     NEW_FCALL(rb_intern("print"),
			       NEW_ARRAY(NEW_GVAR(rb_intern("$_")))));
}

void
rb_parser_while_loop(chop, split)
    int chop, split;
{
    if (split) {
	ruby_eval_tree =
	    block_append(NEW_GASGN(rb_intern("$F"),
				   NEW_CALL(NEW_GVAR(rb_intern("$_")),
					    rb_intern("split"), 0)),
				   ruby_eval_tree);
    }
    if (chop) {
	ruby_eval_tree =
	    block_append(NEW_CALL(NEW_GVAR(rb_intern("$_")),
				  rb_intern("chop!"), 0), ruby_eval_tree);
    }
    ruby_eval_tree = NEW_OPT_N(ruby_eval_tree);
}

static struct {
    ID token;
    char *name;
} op_tbl[] = {
    tDOT2,	"..",
    tDOT3,	"...",
    '+',	"+",
    '-',	"-",
    '+',	"+(binary)",
    '-',	"-(binary)",
    '*',	"*",
    '/',	"/",
    '%',	"%",
    tPOW,	"**",
    tUPLUS,	"+@",
    tUMINUS,	"-@",
    tUPLUS,	"+(unary)",
    tUMINUS,	"-(unary)",
    '|',	"|",
    '^',	"^",
    '&',	"&",
    tCMP,	"<=>",
    '>',	">",
    tGEQ,	">=",
    '<',	"<",
    tLEQ,	"<=",
    tEQ,	"==",
    tEQQ,	"===",
    tNEQ,	"!=",
    tMATCH,	"=~",
    tNMATCH,	"!~",
    '!',	"!",
    '~',	"~",
    '!',	"!(unary)",
    '~',	"~(unary)",
    '!',	"!@",
    '~',	"~@",
    tAREF,	"[]",
    tASET,	"[]=",
    tLSHFT,	"<<",
    tRSHFT,	">>",
    tCOLON2,	"::",
    tCOLON3,	"::",
    '`',	"`",
    0,		0,
};

static st_table *sym_tbl;
static st_table *sym_rev_tbl;

void
Init_sym()
{
    sym_tbl = st_init_strtable_with_size(200);
    sym_rev_tbl = st_init_numtable_with_size(200);
    rb_global_variable((VALUE*)&lex_lastline);
}

ID
rb_intern(name)
    const char *name;
{
    static ID last_id = LAST_TOKEN;
    ID id;
    int last;

    if (st_lookup(sym_tbl, name, &id))
	return id;

    id = 0;
    switch (name[0]) {
      case '$':
	id |= ID_GLOBAL;
	break;
      case '@':
	if (name[1] == '@')
	    id |= ID_CLASS;
	else
	    id |= ID_INSTANCE;
	break;
      default:
	if (name[0] != '_' && !ISALPHA(name[0]) && !ismbchar(name[0])) {
	    /* operator */
	    int i;

	    for (i=0; op_tbl[i].token; i++) {
		if (*op_tbl[i].name == *name &&
		    strcmp(op_tbl[i].name, name) == 0) {
		    id = op_tbl[i].token;
		    goto id_regist;
		}
	    }
	}

	last = strlen(name)-1;
	if (name[last] == '=') {
	    /* attribute assignment */
	    char *buf = ALLOCA_N(char,last+1);

	    strncpy(buf, name, last);
	    buf[last] = '\0';
	    id = rb_intern(buf);
	    if (id > LAST_TOKEN && !is_attrset_id(id)) {
		id = rb_id_attrset(id);
		goto id_regist;
	    }
	    id = ID_ATTRSET;
	}
	else if (ISUPPER(name[0])) {
	    id = ID_CONST;
        }
	else {
	    id = ID_LOCAL;
	}
	break;
    }
    id |= ++last_id << ID_SCOPE_SHIFT;
  id_regist:
    name = strdup(name);
    st_add_direct(sym_tbl, name, id);
    st_add_direct(sym_rev_tbl, id, name);
    return id;
}

char *
rb_id2name(id)
    ID id;
{
    char *name;

    if (id < LAST_TOKEN) {
	int i = 0;

	for (i=0; op_tbl[i].token; i++) {
	    if (op_tbl[i].token == id)
		return op_tbl[i].name;
	}
    }

    if (st_lookup(sym_rev_tbl, id, &name))
	return name;

    if (is_attrset_id(id)) {
	ID id2 = (id & ~ID_SCOPE_MASK) | ID_LOCAL;

      again:
	name = rb_id2name(id2);
	if (name) {
	    char *buf = ALLOCA_N(char, strlen(name)+2);

	    strcpy(buf, name);
	    strcat(buf, "=");
	    rb_intern(buf);
	    return rb_id2name(id);
	}
	if (is_local_id(id2)) {
	    id2 = (id & ~ID_SCOPE_MASK) | ID_CONST;
	    goto again;
	}
    }
    return 0;
}

int
rb_is_const_id(id)
    ID id;
{
    if (is_const_id(id)) return Qtrue;
    return Qfalse;
}

int
rb_is_class_id(id)
    ID id;
{
    if (is_class_id(id)) return Qtrue;
    return Qfalse;
}

int
rb_is_instance_id(id)
    ID id;
{
    if (is_instance_id(id)) return Qtrue;
    return Qfalse;
}

static void
special_local_set(c, val)
    char c;
    VALUE val;
{
    int cnt;

    top_local_init();
    cnt = local_cnt(c);
    top_local_setup();
    ruby_scope->local_vars[cnt] = val;
}

VALUE
rb_backref_get()
{
    if (ruby_scope->local_vars) {
	return ruby_scope->local_vars[1];
    }
    return Qnil;
}

void
rb_backref_set(val)
    VALUE val;
{
    if (ruby_scope->local_vars) {
	ruby_scope->local_vars[1] = val;
    }
    else {
	special_local_set('~', val);
    }
}

VALUE
rb_lastline_get()
{
    if (ruby_scope->local_vars) {
	return ruby_scope->local_vars[0];
    }
    return Qnil;
}

void
rb_lastline_set(val)
    VALUE val;
{
    if (ruby_scope->local_vars) {
	ruby_scope->local_vars[0] = val;
    }
    else {
	special_local_set('_', val);
    }
}
