/* A Bison parser, made by GNU Bison 1.875d. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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. */ /* Written by Richard Stallman by simplifying the original so called ``semantic'' parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 1 /* Using locations. */ #define YYLSP_NEEDED 0 /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { kCLASS = 258, kMODULE = 259, kDEF = 260, kUNDEF = 261, kBEGIN = 262, kRESCUE = 263, kENSURE = 264, kEND = 265, kIF = 266, kUNLESS = 267, kTHEN = 268, kELSIF = 269, kELSE = 270, kCASE = 271, kWHEN = 272, kWHILE = 273, kUNTIL = 274, kFOR = 275, kBREAK = 276, kNEXT = 277, kREDO = 278, kRETRY = 279, kIN = 280, kDO = 281, kDO_COND = 282, kDO_BLOCK = 283, kRETURN = 284, kYIELD = 285, kSUPER = 286, kSELF = 287, kNIL = 288, kTRUE = 289, kFALSE = 290, kAND = 291, kOR = 292, kNOT = 293, kIF_MOD = 294, kUNLESS_MOD = 295, kWHILE_MOD = 296, kUNTIL_MOD = 297, kRESCUE_MOD = 298, kALIAS = 299, kDEFINED = 300, klBEGIN = 301, klEND = 302, k__LINE__ = 303, k__FILE__ = 304, tIDENTIFIER = 305, tFID = 306, tGVAR = 307, tIVAR = 308, tCONSTANT = 309, tCVAR = 310, tINTEGER = 311, tFLOAT = 312, tSTRING = 313, tXSTRING = 314, tREGEXP = 315, tDSTRING = 316, tDXSTRING = 317, tDREGEXP = 318, tNTH_REF = 319, tBACK_REF = 320, tUPLUS = 321, tUMINUS = 322, tPOW = 323, tCMP = 324, tEQ = 325, tEQQ = 326, tNEQ = 327, tGEQ = 328, tLEQ = 329, tANDOP = 330, tOROP = 331, tMATCH = 332, tNMATCH = 333, tDOT2 = 334, tDOT3 = 335, tAREF = 336, tASET = 337, tLSHFT = 338, tRSHFT = 339, tCOLON2 = 340, tCOLON3 = 341, tOP_ASGN = 342, tASSOC = 343, tLPAREN = 344, tLPAREN_ARG = 345, tRPAREN = 346, tLBRACK = 347, tLBRACE = 348, tLBRACE_ARG = 349, tSTAR = 350, tAMPER = 351, tSYMBEG = 352, LAST_TOKEN = 353 }; #endif #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 tLPAREN_ARG 345 #define tRPAREN 346 #define tLBRACK 347 #define tLBRACE 348 #define tLBRACE_ARG 349 #define tSTAR 350 #define tAMPER 351 #define tSYMBEG 352 #define LAST_TOKEN 353 /* Copy the first part of user declarations. */ #line 19 "ripper.y" #define RIPPER_VERSION "0.0.5" #define YYDEBUG 1 #include "ruby.h" #include "version.h" #include "env.h" #include "node.h" #include "st.h" #include #include #include #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 ID_JUNK 0x07 #define ID_INTERNAL ID_JUNK #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) #ifndef RIPPER NODE *ruby_eval_tree_begin = 0; NODE *ruby_eval_tree = 0; #endif #ifndef RIPPER char *ruby_sourcefile; /* current source file */ int ruby_sourceline; /* current line no. */ #else # define ruby_sourcefile (parser->source_file) # define ruby_sourceline (parser->source_line) #endif enum lex_state_e { EXPR_BEG, /* ignore newline, +/- is a sign. */ EXPR_END, /* newline significant, +/- is a operator. */ EXPR_ARG, /* newline significant, +/- is a operator. */ EXPR_CMDARG, /* newline significant, +/- is a operator. */ EXPR_ENDARG, /* 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. */ }; #ifndef RIPPER static enum lex_state_e lex_state; #else # define lex_state (parser->state) #endif #ifdef HAVE_LONG_LONG typedef unsigned LONG_LONG stack_type; #else typedef unsigned long stack_type; #endif #ifndef RIPPER static stack_type cond_stack = 0; #else # define cond_stack (parser->condition_stack) #endif #define COND_PUSH(n) do { \ cond_stack = (cond_stack<<1)|((n)&1); \ } while(0) #define COND_POP() do { \ cond_stack >>= 1; \ } while (0) #define COND_LEXPOP() do { \ int last = COND_P(); \ cond_stack >>= 1; \ if (last) cond_stack |= 1; \ } while (0) #define COND_P() (cond_stack&1) #ifndef RIPPER static stack_type cmdarg_stack = 0; #else # define cmdarg_stack (parser->commandarg_stack) #endif #define CMDARG_PUSH(n) do { \ cmdarg_stack = (cmdarg_stack<<1)|((n)&1); \ } while(0) #define CMDARG_POP() do { \ cmdarg_stack >>= 1; \ } while (0) #define CMDARG_LEXPOP() do { \ int last = CMDARG_P(); \ cmdarg_stack >>= 1; \ if (last) cmdarg_stack |= 1; \ } while (0) #define CMDARG_P() (cmdarg_stack&1) #ifndef RIPPER 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; #else # define class_nest (parser->class_nesting) # define in_single (parser->in_singleton) # define in_def (parser->in_method) # define compile_for_eval (parser->compiling_for_eval) # define cur_mid (parser->current_method_id) #endif #ifndef RIPPER static int in_defined = 0; #else # define in_defined (parser->in_defined_arg) #endif #define dispatch0(name) rb_funcall(parser->value, rip_id_ ## name, 0) #define dispatch1(name,a) rb_funcall(parser->value, rip_id_ ## name, 1,a) #define dispatch2(name,a,b) rb_funcall(parser->value, rip_id_ ## name, 2,a,b) #define dispatch3(name,a,b,c) rb_funcall(parser->value, rip_id_ ## name, 3,a,b,c) #define dispatch4(name,a,b,c,d) rb_funcall(parser->value, rip_id_ ## name, 4,a,b,c,d) #define dispatch5(name,a,b,c,d,e) rb_funcall(parser->value, rip_id_ ## name, 5,a,b,c,d,e) #define dispatch6(name,a,b,c,d,e,f) rb_funcall(parser->value, rip_id_ ## name, 6,a,b,c,d,e,f) #define s_dispatch1(name,a) (dispatch1(scan,a), dispatch1(name,a)) #define s_dispatch2(name,a,b) (dispatch1(scan,b), dispatch2(name,a,b)) #define op_dispatch1(name,a) (dispatch1(scan,a), dispatch1(name,a), dispatch1(OP,a)) #include "dispids.h" /* --------------- ripper class struct ------------------- */ struct ruby_parser { VALUE value; VALUE result; /* parser */ int parsing; int source_line; VALUE source_file; stack_type condition_stack; stack_type commandarg_stack; int rip_command_start; int heredocument_end; int __end__seen; int compiling_for_eval; /* dummy */ int class_nesting; int in_method; int in_singleton; int in_defined_arg; VALUE current_method_id; VALUE last_token_id; /* scanner */ enum lex_state_e state; char *token_buffer; int token_index; int token_size; VALUE src; VALUE last_line; char *ptr_beg; char *ptr; char *ptr_end; VALUE (*gets)(); int gets_ptr; /* lval */ void *tmp_yylval; }; /* --------------------- yacc related -------------------- */ #define YYPARSE_PARAM parser_v #define YYLEX_PARAM parser_v #define parser ((struct ruby_parser *)parser_v) #undef yyparse #undef yylex #undef yyerror #define yyparse rip_yyparse #define yylex(a,b) rip_yylex(a,b) #define yyerror(s) rip_yyerror(parser, s) #undef yylval #undef yydebug #define yydebug rip_yydebug static int rip_yylex(); static int rip_yyerror _((struct ruby_parser *, char *)); /* --------------------- function prototypes -------------------- */ #ifdef RIPPER static VALUE rip_tok2sym _((char*)); static VALUE rip_id2sym _((ID)); #endif #ifndef RIPPER static NODE *cond(); static NODE *logop(); #else # define cond(n) n #endif #ifndef RIPPER static NODE *newline_node(); static void fixpos(); #else # define fixpos(a,b) #endif #ifndef RIPPER static int value_expr(); static void void_expr(); static void void_stmts(); #else # define value_expr(n) # define void_expr(n) # define void_stmts(n) #endif #ifndef RIPPER static NODE *block_append(); static NODE *list_append(); static NODE *list_concat(); static NODE *arg_concat(); static NODE *arg_prepend(); static NODE *call_op(); #endif #ifndef RIPPER static NODE *ret_args(); static NODE *arg_blk_pass(); static NODE *new_call(); static NODE *new_fcall(); static NODE *new_super(); #endif #ifndef RIPPER static NODE *gettable(); static NODE *assignable(); static NODE *aryset(); static NODE *attrset(); static void rb_backref_error(); static NODE *node_assign(); #else # define assignable(l,r) dispatch2(assignable,l,r) # define rb_backref_error(s) dispatch1(backref_error, s) #endif #ifndef RIPPER 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 ID internal_id(); #else # define local_cnt(node) dispatch1(local_count, node) # define local_push() dispatch0(local_push) # define local_pop() dispatch0(local_pop) # define local_id(n) 0 #endif #ifndef RIPPER static struct RVarmap *dyna_push(); static void dyna_pop(); static int dyna_in_block(); #endif #ifndef RIPPER static void top_local_init(); static void top_local_setup(); #endif #ifdef RIPPER # define lex_get_str(str) rip_lex_get_str(parser,str) # define lex_getline() rip_lex_getline(parser) # define nextc() rip_nextc(parser) # define pushback(c) rip_pushback(parser,c) # define newtok() rip_newtok(parser) # define tokadd(c) rip_tokadd(parser,c) # define read_escape() rip_read_escape(parser) # define tokadd_escape(t) rip_tokadd_escape(parser,t) # define parse_regx(c,t,p) rip_parse_regx(parser,c,t,p) # define parse_string(c,f,t,p) rip_parse_string(parser,c,f,t,p) # define parse_qstring(c,t,p) rip_parse_qstring(parser,c,t,p) # define parse_quotedwords(c,t,p) rip_parse_quotedwords(parser,c,t,p) # define parse_here_document(t,i) rip_parse_here_document(parser,t,i) static int rip_parse_regx _((struct ruby_parser*,VALUE,int,int)); static int rip_parse_string _((struct ruby_parser*,VALUE,int,int,int)); static int rip_parse_qstring _((struct ruby_parser*,VALUE,int,int)); static int rip_parse_quotedwords _((struct ruby_parser*,VALUE,int,int)); static int rip_parse_here_document _((struct ruby_parser*,int,int)); #endif /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) #line 346 "ripper.y" typedef union YYSTYPE { NODE *node; VALUE val; ID id; int num; struct RVarmap *vars; } YYSTYPE; /* Line 191 of yacc.c. */ #line 605 "ripper.c" # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif /* Copy the second part of user declarations. */ /* Line 214 of yacc.c. */ #line 617 "ripper.c" #if ! defined (yyoverflow) || YYERROR_VERBOSE # ifndef YYFREE # define YYFREE free # endif # ifndef YYMALLOC # define YYMALLOC malloc # endif /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca # endif # else # if defined (alloca) || defined (_ALLOCA_H) # define YYSTACK_ALLOC alloca # else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # else # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # endif #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ #if (! defined (yyoverflow) \ && (! defined (__cplusplus) \ || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { short int yyss; YYSTYPE yyvs; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined (__GNUC__) && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ register YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (0) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if defined (__STDC__) || defined (__cplusplus) typedef signed char yysigned_char; #else typedef short int yysigned_char; #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 3 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 8502 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 125 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 115 /* YYNRULES -- Number of rules. */ #define YYNRULES 433 /* YYNRULES -- Number of states. */ #define YYNSTATES 781 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 353 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const unsigned char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 123, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 111, 2, 2, 2, 110, 105, 2, 122, 117, 108, 106, 118, 107, 116, 109, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 100, 124, 102, 98, 101, 99, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 119, 2, 120, 104, 2, 121, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 114, 103, 115, 112, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 113 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const unsigned short int yyprhs[] = { 0, 0, 3, 4, 7, 10, 12, 14, 18, 21, 22, 27, 31, 35, 39, 42, 46, 50, 54, 58, 62, 63, 69, 74, 78, 82, 86, 90, 92, 95, 98, 101, 103, 107, 111, 114, 117, 119, 121, 123, 125, 130, 135, 138, 143, 148, 151, 154, 156, 160, 162, 166, 168, 171, 175, 178, 181, 183, 185, 189, 192, 196, 198, 203, 207, 211, 215, 217, 219, 224, 228, 232, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 259, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 402, 403, 408, 415, 421, 427, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 472, 475, 479, 483, 487, 491, 495, 499, 503, 507, 511, 515, 519, 523, 527, 530, 533, 537, 541, 545, 549, 550, 555, 561, 563, 565, 568, 571, 577, 580, 584, 588, 593, 598, 605, 607, 609, 611, 614, 620, 623, 629, 634, 642, 646, 648, 653, 659, 667, 670, 676, 681, 688, 696, 706, 710, 712, 713, 716, 718, 719, 723, 724, 729, 732, 735, 737, 739, 743, 745, 747, 751, 756, 759, 761, 763, 765, 767, 769, 771, 773, 775, 782, 783, 788, 792, 796, 799, 804, 808, 812, 814, 819, 823, 825, 826, 833, 836, 838, 841, 848, 855, 856, 857, 865, 866, 867, 875, 881, 886, 887, 888, 898, 899, 906, 907, 908, 917, 918, 924, 925, 935, 936, 937, 950, 952, 954, 956, 958, 960, 962, 965, 967, 969, 971, 977, 979, 982, 984, 986, 988, 991, 993, 997, 998, 1004, 1005, 1011, 1014, 1019, 1024, 1027, 1032, 1037, 1041, 1044, 1046, 1047, 1053, 1054, 1060, 1066, 1068, 1073, 1076, 1078, 1080, 1082, 1084, 1087, 1089, 1096, 1098, 1100, 1103, 1105, 1107, 1109, 1111, 1113, 1116, 1119, 1122, 1124, 1126, 1128, 1130, 1132, 1134, 1136, 1138, 1140, 1142, 1144, 1146, 1148, 1150, 1152, 1154, 1156, 1158, 1160, 1162, 1164, 1165, 1170, 1173, 1178, 1181, 1188, 1193, 1198, 1201, 1206, 1209, 1212, 1214, 1215, 1217, 1219, 1221, 1223, 1225, 1227, 1231, 1235, 1237, 1241, 1244, 1246, 1249, 1252, 1254, 1256, 1257, 1263, 1265, 1268, 1271, 1273, 1277, 1281, 1283, 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299, 1301, 1303, 1305, 1307, 1309, 1311, 1313, 1314, 1316, 1318, 1320, 1322, 1324, 1327 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const short int yyrhs[] = { 126, 0, -1, -1, 127, 128, -1, 129, 234, -1, 239, -1, 130, -1, 129, 238, 130, -1, 1, 130, -1, -1, 44, 146, 131, 146, -1, 44, 52, 52, -1, 44, 52, 65, -1, 44, 52, 64, -1, 6, 147, -1, 130, 39, 133, -1, 130, 40, 133, -1, 130, 41, 133, -1, 130, 42, 133, -1, 130, 43, 130, -1, -1, 46, 132, 114, 128, 115, -1, 47, 114, 128, 115, -1, 143, 98, 134, -1, 137, 98, 134, -1, 143, 98, 168, -1, 137, 98, 167, -1, 133, -1, 29, 157, -1, 21, 157, -1, 22, 157, -1, 134, -1, 133, 36, 133, -1, 133, 37, 133, -1, 38, 133, -1, 111, 134, -1, 151, -1, 136, -1, 135, -1, 194, -1, 194, 116, 231, 159, -1, 194, 85, 231, 159, -1, 230, 159, -1, 169, 116, 231, 159, -1, 169, 85, 231, 159, -1, 31, 159, -1, 30, 157, -1, 139, -1, 89, 138, 117, -1, 139, -1, 89, 138, 117, -1, 141, -1, 141, 140, -1, 141, 95, 142, -1, 141, 95, -1, 95, 142, -1, 95, -1, 142, -1, 89, 138, 117, -1, 140, 118, -1, 141, 140, 118, -1, 211, -1, 169, 119, 154, 120, -1, 169, 116, 50, -1, 169, 85, 50, -1, 169, 116, 54, -1, 213, -1, 211, -1, 169, 119, 154, 120, -1, 169, 116, 50, -1, 169, 85, 50, -1, 169, 116, 54, -1, 213, -1, 50, -1, 54, -1, 50, -1, 54, -1, 51, -1, 149, -1, 150, -1, 145, -1, 208, -1, 146, -1, -1, 147, 118, 148, 146, -1, 103, -1, 104, -1, 105, -1, 69, -1, 70, -1, 71, -1, 77, -1, 101, -1, 73, -1, 102, -1, 74, -1, 83, -1, 84, -1, 106, -1, 107, -1, 108, -1, 95, -1, 109, -1, 110, -1, 68, -1, 112, -1, 66, -1, 67, -1, 81, -1, 82, -1, 121, -1, 48, -1, 49, -1, 46, -1, 47, -1, 44, -1, 36, -1, 7, -1, 21, -1, 16, -1, 3, -1, 5, -1, 45, -1, 26, -1, 15, -1, 14, -1, 10, -1, 9, -1, 35, -1, 20, -1, 39, -1, 25, -1, 4, -1, 22, -1, 33, -1, 38, -1, 37, -1, 23, -1, 8, -1, 24, -1, 29, -1, 32, -1, 31, -1, 13, -1, 34, -1, 6, -1, 40, -1, 42, -1, 17, -1, 41, -1, 30, -1, 43, -1, 143, 98, 151, -1, -1, 211, 87, 152, 151, -1, 169, 119, 154, 120, 87, 151, -1, 169, 116, 50, 87, 151, -1, 169, 116, 54, 87, 151, -1, 169, 85, 50, 87, 151, -1, 213, 87, 151, -1, 151, 79, 151, -1, 151, 80, 151, -1, 151, 106, 151, -1, 151, 107, 151, -1, 151, 108, 151, -1, 151, 109, 151, -1, 151, 110, 151, -1, 151, 68, 151, -1, 66, 151, -1, 67, 151, -1, 151, 103, 151, -1, 151, 104, 151, -1, 151, 105, 151, -1, 151, 69, 151, -1, 151, 101, 151, -1, 151, 73, 151, -1, 151, 102, 151, -1, 151, 74, 151, -1, 151, 70, 151, -1, 151, 71, 151, -1, 151, 72, 151, -1, 151, 77, 151, -1, 151, 78, 151, -1, 111, 151, -1, 112, 151, -1, 151, 83, 151, -1, 151, 84, 151, -1, 151, 75, 151, -1, 151, 76, 151, -1, -1, 45, 235, 153, 151, -1, 151, 99, 151, 100, 151, -1, 169, -1, 239, -1, 136, 235, -1, 166, 236, -1, 166, 118, 95, 151, 235, -1, 228, 236, -1, 95, 151, 235, -1, 122, 239, 117, -1, 122, 157, 235, 117, -1, 122, 194, 235, 117, -1, 122, 166, 118, 194, 235, 117, -1, 239, -1, 155, -1, 136, -1, 166, 165, -1, 166, 118, 95, 151, 165, -1, 228, 165, -1, 228, 118, 95, 151, 165, -1, 166, 118, 228, 165, -1, 166, 118, 228, 118, 95, 151, 165, -1, 95, 151, 165, -1, 164, -1, 151, 118, 166, 165, -1, 151, 118, 95, 151, 165, -1, 151, 118, 166, 118, 95, 151, 165, -1, 228, 165, -1, 228, 118, 95, 151, 165, -1, 151, 118, 228, 165, -1, 151, 118, 166, 118, 228, 165, -1, 151, 118, 228, 118, 95, 151, 165, -1, 151, 118, 166, 118, 228, 118, 95, 151, 165, -1, 95, 151, 165, -1, 164, -1, -1, 160, 161, -1, 157, -1, -1, 90, 162, 117, -1, -1, 90, 158, 163, 117, -1, 96, 151, -1, 118, 164, -1, 239, -1, 151, -1, 166, 118, 151, -1, 151, -1, 168, -1, 166, 118, 151, -1, 166, 118, 95, 151, -1, 95, 151, -1, 206, -1, 207, -1, 59, -1, 62, -1, 63, -1, 212, -1, 213, -1, 51, -1, 7, 128, 204, 188, 205, 10, -1, -1, 90, 133, 170, 117, -1, 89, 128, 117, -1, 169, 85, 54, -1, 86, 144, -1, 169, 119, 154, 120, -1, 92, 154, 120, -1, 93, 227, 115, -1, 29, -1, 30, 122, 157, 117, -1, 30, 122, 117, -1, 30, -1, -1, 45, 235, 122, 171, 133, 117, -1, 230, 196, -1, 195, -1, 195, 196, -1, 11, 133, 185, 128, 187, 10, -1, 12, 133, 185, 128, 188, 10, -1, -1, -1, 18, 172, 133, 186, 173, 128, 10, -1, -1, -1, 19, 174, 133, 186, 175, 128, 10, -1, 16, 133, 234, 199, 10, -1, 16, 234, 199, 10, -1, -1, -1, 20, 189, 25, 176, 133, 186, 177, 128, 10, -1, -1, 3, 144, 214, 178, 128, 10, -1, -1, -1, 3, 83, 133, 179, 237, 180, 128, 10, -1, -1, 4, 144, 181, 128, 10, -1, -1, 5, 145, 182, 216, 128, 204, 188, 205, 10, -1, -1, -1, 5, 225, 233, 183, 145, 184, 216, 128, 204, 188, 205, 10, -1, 21, -1, 22, -1, 23, -1, 24, -1, 237, -1, 13, -1, 237, 13, -1, 237, -1, 27, -1, 188, -1, 14, 133, 185, 128, 187, -1, 239, -1, 15, 128, -1, 143, -1, 137, -1, 239, -1, 103, 103, -1, 76, -1, 103, 189, 103, -1, -1, 28, 192, 190, 128, 10, -1, -1, 94, 193, 190, 128, 115, -1, 136, 191, -1, 194, 116, 231, 156, -1, 194, 85, 231, 156, -1, 230, 155, -1, 169, 116, 231, 156, -1, 169, 85, 231, 155, -1, 169, 85, 232, -1, 31, 155, -1, 31, -1, -1, 114, 197, 190, 128, 115, -1, -1, 26, 198, 190, 128, 10, -1, 17, 200, 185, 128, 201, -1, 166, -1, 166, 118, 95, 151, -1, 95, 151, -1, 188, -1, 199, -1, 239, -1, 166, -1, 88, 143, -1, 239, -1, 8, 202, 203, 185, 128, 204, -1, 239, -1, 239, -1, 9, 128, -1, 210, -1, 208, -1, 60, -1, 58, -1, 61, -1, 207, 58, -1, 207, 61, -1, 97, 209, -1, 145, -1, 53, -1, 52, -1, 55, -1, 56, -1, 57, -1, 50, -1, 53, -1, 52, -1, 54, -1, 55, -1, 33, -1, 32, -1, 34, -1, 35, -1, 49, -1, 48, -1, 211, -1, 64, -1, 65, -1, 237, -1, -1, 102, 215, 133, 237, -1, 1, 237, -1, 122, 217, 235, 117, -1, 217, 237, -1, 219, 118, 221, 118, 222, 224, -1, 219, 118, 221, 224, -1, 219, 118, 222, 224, -1, 219, 224, -1, 221, 118, 222, 224, -1, 221, 224, -1, 222, 224, -1, 223, -1, -1, 54, -1, 53, -1, 52, -1, 55, -1, 50, -1, 218, -1, 219, 118, 218, -1, 50, 98, 151, -1, 220, -1, 221, 118, 220, -1, 95, 50, -1, 95, -1, 96, 50, -1, 118, 223, -1, 239, -1, 212, -1, -1, 122, 226, 133, 235, 117, -1, 239, -1, 228, 236, -1, 166, 236, -1, 229, -1, 228, 118, 229, -1, 151, 88, 151, -1, 50, -1, 54, -1, 51, -1, 50, -1, 54, -1, 51, -1, 149, -1, 50, -1, 51, -1, 149, -1, 116, -1, 85, -1, 239, -1, 238, -1, 239, -1, 123, -1, -1, 123, -1, 118, -1, 124, -1, 123, -1, 237, -1, 238, 124, -1, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const unsigned short int yyrline[] = { 0, 475, 475, 475, 489, 494, 495, 496, 497, 502, 502, 508, 514, 520, 525, 531, 535, 539, 543, 547, 552, 551, 561, 569, 573, 578, 583, 587, 589, 595, 599, 603, 604, 608, 612, 616, 620, 622, 623, 625, 626, 630, 635, 639, 643, 647, 653, 658, 659, 664, 665, 670, 671, 675, 679, 683, 687, 692, 693, 699, 703, 708, 712, 716, 720, 724, 728, 733, 737, 741, 745, 749, 753, 758, 762, 764, 765, 766, 767, 772, 778, 779, 781, 785, 785, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 817, 817, 817, 817, 818, 818, 818, 818, 818, 818, 818, 819, 819, 819, 819, 819, 819, 819, 820, 820, 820, 820, 820, 820, 820, 821, 821, 821, 821, 821, 821, 821, 822, 822, 822, 822, 822, 822, 823, 823, 823, 825, 829, 829, 833, 837, 841, 845, 849, 853, 857, 861, 865, 869, 873, 877, 881, 885, 889, 893, 897, 901, 905, 909, 913, 917, 921, 925, 929, 933, 937, 941, 945, 949, 953, 957, 961, 965, 969, 969, 974, 978, 980, 981, 985, 989, 994, 998, 1005, 1009, 1013, 1017, 1022, 1023, 1025, 1029, 1033, 1039, 1044, 1051, 1056, 1063, 1069, 1074, 1081, 1088, 1096, 1102, 1109, 1116, 1124, 1132, 1141, 1147, 1153, 1153, 1164, 1165, 1165, 1171, 1171, 1179, 1185, 1189, 1191, 1197, 1203, 1208, 1210, 1215, 1220, 1226, 1227, 1228, 1234, 1235, 1236, 1237, 1238, 1242, 1262, 1262, 1268, 1272, 1277, 1281, 1286, 1290, 1294, 1301, 1306, 1311, 1315, 1315, 1320, 1325, 1326, 1336, 1345, 1354, 1354, 1354, 1362, 1362, 1362, 1370, 1378, 1382, 1382, 1382, 1391, 1390, 1408, 1413, 1407, 1430, 1429, 1447, 1446, 1485, 1486, 1485, 1516, 1520, 1524, 1528, 1533, 1534, 1535, 1537, 1538, 1540, 1541, 1550, 1551, 1556, 1557, 1559, 1560, 1564, 1568, 1574, 1573, 1585, 1585, 1595, 1607, 1612, 1618, 1623, 1629, 1635, 1639, 1646, 1655, 1654, 1666, 1665, 1677, 1684, 1685, 1690, 1697, 1698, 1700, 1701, 1703, 1707, 1709, 1723, 1725, 1726, 1738, 1739, 1740, 1742, 1749, 1750, 1763, 1779, 1785, 1786, 1787, 1788, 1790, 1791, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1801, 1802, 1803, 1805, 1813, 1814, 1816, 1821, 1820, 1828, 1830, 1835, 1840, 1847, 1853, 1859, 1864, 1871, 1877, 1883, 1889, 1893, 1897, 1901, 1905, 1909, 1921, 1926, 1931, 1942, 1947, 1952, 1962, 1967, 1978, 1982, 1984, 1995, 1995, 2016, 2020, 2024, 2035, 2039, 2044, 2049, 2050, 2051, 2053, 2054, 2055, 2056, 2058, 2059, 2060, 2062, 2063, 2065, 2066, 2068, 2069, 2075, 2078, 2082, 2087, 2088, 2093, 2094, 2097 }; #endif #if YYDEBUG || YYERROR_VERBOSE /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "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", "tLPAREN_ARG", "tRPAREN", "tLBRACK", "tLBRACE", "tLBRACE_ARG", "tSTAR", "tAMPER", "tSYMBEG", "'='", "'?'", "':'", "'>'", "'<'", "'|'", "'^'", "'&'", "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "'~'", "LAST_TOKEN", "'{'", "'}'", "'.'", "')'", "','", "'['", "']'", "'`'", "'('", "'\\n'", "';'", "$accept", "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", "call_args2", "command_args", "@7", "open_args", "@8", "@9", "block_arg", "opt_block_arg", "args", "mrhs", "mrhs_basic", "primary", "@10", "@11", "@12", "@13", "@14", "@15", "@16", "@17", "@18", "@19", "@20", "@21", "@22", "@23", "@24", "then", "do", "if_tail", "opt_else", "block_var", "opt_block_var", "do_block", "@25", "@26", "block_call", "method_call", "brace_block", "@27", "@28", "case_body", "when_args", "cases", "exc_list", "exc_var", "rescue", "ensure", "literal", "string", "symbol", "sym", "numeric", "variable", "var_ref", "backref", "superclass", "@29", "f_arglist", "f_args", "f_norm_arg", "f_arg", "f_opt", "f_optarg", "f_rest_arg", "f_block_arg", "opt_f_block_arg", "singleton", "@30", "assoc_list", "assocs", "assoc", "operation", "operation2", "operation3", "dot_or_colon", "opt_terms", "opt_nl", "trailer", "term", "terms", "none", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const unsigned short int yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 61, 63, 58, 62, 60, 124, 94, 38, 43, 45, 42, 47, 37, 33, 126, 353, 123, 125, 46, 41, 44, 91, 93, 96, 40, 10, 59 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const unsigned char yyr1[] = { 0, 125, 127, 126, 128, 129, 129, 129, 129, 131, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 132, 130, 130, 130, 130, 130, 130, 130, 133, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 135, 135, 135, 136, 136, 136, 136, 136, 137, 137, 138, 138, 139, 139, 139, 139, 139, 139, 140, 140, 141, 141, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 144, 144, 145, 145, 145, 145, 145, 146, 146, 147, 148, 147, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 152, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 153, 151, 151, 151, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 160, 159, 161, 162, 161, 163, 161, 164, 165, 165, 166, 166, 167, 167, 168, 168, 168, 169, 169, 169, 169, 169, 169, 169, 169, 169, 170, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 171, 169, 169, 169, 169, 169, 169, 172, 173, 169, 174, 175, 169, 169, 169, 176, 177, 169, 178, 169, 179, 180, 169, 181, 169, 182, 169, 183, 184, 169, 169, 169, 169, 169, 185, 185, 185, 186, 186, 187, 187, 188, 188, 189, 189, 190, 190, 190, 190, 192, 191, 193, 191, 194, 194, 194, 195, 195, 195, 195, 195, 195, 197, 196, 198, 196, 199, 200, 200, 200, 201, 201, 202, 202, 203, 203, 204, 204, 205, 205, 206, 206, 206, 207, 207, 207, 207, 208, 209, 209, 209, 209, 210, 210, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 212, 213, 213, 214, 215, 214, 214, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 219, 219, 220, 221, 221, 222, 222, 223, 224, 224, 225, 226, 225, 227, 227, 227, 228, 228, 229, 230, 230, 230, 231, 231, 231, 231, 232, 232, 232, 233, 233, 234, 234, 235, 235, 236, 236, 236, 237, 237, 238, 238, 239 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const unsigned char yyr2[] = { 0, 2, 0, 2, 2, 1, 1, 3, 2, 0, 4, 3, 3, 3, 2, 3, 3, 3, 3, 3, 0, 5, 4, 3, 3, 3, 3, 1, 2, 2, 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, 2, 5, 2, 3, 3, 4, 4, 6, 1, 1, 1, 2, 5, 2, 5, 4, 7, 3, 1, 4, 5, 7, 2, 5, 4, 6, 7, 9, 3, 1, 0, 2, 1, 0, 3, 0, 4, 2, 2, 1, 1, 3, 1, 1, 3, 4, 2, 1, 1, 1, 1, 1, 1, 1, 1, 6, 0, 4, 3, 3, 2, 4, 3, 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, 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, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 2, 0 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const unsigned short int yydefact[] = { 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 433, 270, 273, 0, 293, 294, 295, 296, 259, 262, 324, 363, 362, 364, 365, 0, 0, 433, 20, 0, 367, 366, 357, 249, 359, 358, 360, 361, 355, 356, 346, 244, 345, 347, 245, 246, 369, 370, 0, 0, 0, 0, 0, 433, 433, 56, 0, 0, 0, 3, 433, 6, 27, 31, 38, 37, 0, 47, 0, 51, 57, 0, 36, 192, 39, 266, 242, 243, 344, 343, 368, 247, 248, 225, 5, 8, 73, 74, 0, 0, 286, 120, 132, 121, 145, 117, 138, 127, 126, 143, 125, 124, 119, 148, 129, 118, 133, 137, 139, 131, 123, 140, 150, 142, 141, 134, 144, 128, 116, 136, 135, 130, 146, 149, 147, 151, 115, 122, 113, 114, 111, 112, 75, 77, 76, 106, 107, 104, 88, 89, 90, 93, 95, 91, 108, 109, 96, 97, 101, 92, 94, 85, 86, 87, 98, 99, 100, 102, 103, 105, 110, 402, 288, 78, 79, 368, 401, 0, 141, 134, 144, 128, 111, 112, 75, 76, 80, 82, 14, 81, 433, 0, 0, 0, 192, 368, 248, 0, 430, 429, 433, 0, 431, 423, 422, 0, 0, 293, 294, 259, 262, 324, 433, 307, 306, 0, 0, 368, 248, 0, 0, 0, 0, 205, 235, 29, 213, 433, 433, 407, 30, 28, 0, 46, 433, 323, 45, 0, 34, 0, 9, 425, 189, 424, 0, 0, 168, 192, 169, 255, 0, 0, 0, 47, 251, 0, 433, 0, 426, 426, 193, 426, 0, 426, 404, 55, 0, 61, 66, 353, 352, 354, 351, 350, 35, 183, 184, 4, 423, 0, 0, 0, 0, 0, 0, 0, 312, 314, 316, 0, 59, 0, 54, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 433, 0, 0, 327, 325, 267, 348, 349, 153, 0, 319, 42, 265, 283, 0, 372, 281, 371, 0, 0, 385, 421, 420, 290, 83, 433, 433, 340, 298, 0, 297, 0, 0, 0, 433, 0, 0, 0, 0, 432, 0, 0, 0, 0, 0, 433, 278, 433, 232, 0, 0, 206, 234, 0, 208, 261, 0, 205, 433, 433, 433, 0, 228, 227, 226, 11, 13, 12, 0, 263, 0, 0, 0, 0, 0, 0, 253, 48, 0, 433, 194, 257, 428, 427, 195, 428, 197, 428, 406, 258, 405, 0, 0, 433, 7, 15, 16, 17, 18, 19, 32, 33, 433, 433, 0, 24, 237, 0, 26, 238, 0, 53, 60, 23, 152, 25, 167, 173, 178, 179, 180, 175, 177, 187, 188, 181, 182, 160, 161, 185, 186, 0, 174, 176, 170, 171, 172, 162, 163, 164, 165, 166, 413, 418, 254, 419, 225, 322, 413, 415, 414, 416, 433, 0, 413, 414, 225, 225, 433, 433, 0, 159, 0, 374, 0, 0, 0, 433, 390, 388, 387, 386, 389, 397, 0, 385, 0, 0, 391, 433, 394, 433, 433, 384, 0, 0, 235, 336, 433, 335, 0, 433, 304, 433, 299, 152, 417, 413, 414, 0, 433, 0, 0, 330, 0, 277, 301, 271, 300, 274, 417, 0, 413, 414, 433, 0, 0, 0, 212, 409, 0, 236, 233, 433, 0, 0, 408, 260, 0, 0, 0, 0, 0, 199, 0, 36, 230, 0, 224, 433, 10, 0, 190, 0, 22, 48, 252, 198, 0, 236, 64, 413, 414, 0, 310, 0, 0, 308, 0, 241, 0, 58, 0, 0, 321, 44, 0, 0, 204, 320, 43, 203, 256, 318, 41, 317, 40, 0, 0, 154, 284, 0, 0, 287, 0, 0, 396, 398, 433, 433, 376, 0, 380, 400, 0, 382, 0, 383, 291, 84, 0, 0, 0, 338, 305, 0, 0, 341, 0, 0, 302, 256, 0, 276, 332, 0, 0, 0, 0, 256, 0, 433, 0, 210, 433, 200, 0, 433, 433, 433, 201, 433, 0, 0, 229, 0, 217, 0, 21, 433, 62, 309, 0, 0, 0, 0, 239, 191, 158, 156, 157, 0, 0, 0, 0, 373, 282, 403, 393, 0, 433, 392, 433, 433, 399, 0, 395, 433, 385, 337, 0, 67, 72, 0, 342, 250, 0, 268, 269, 0, 433, 0, 0, 279, 207, 0, 209, 0, 223, 0, 433, 433, 231, 0, 264, 196, 311, 313, 315, 240, 155, 328, 326, 0, 375, 433, 0, 378, 379, 381, 0, 0, 0, 433, 433, 0, 331, 333, 334, 329, 272, 275, 0, 433, 202, 433, 0, 214, 0, 219, 433, 285, 0, 433, 433, 417, 413, 414, 0, 339, 433, 0, 211, 215, 0, 433, 0, 218, 289, 377, 433, 68, 303, 280, 433, 0, 220, 433, 433, 216, 0, 221, 0, 433, 292, 222 }; /* YYDEFGOTO[NTERM-NUM]. */ static const short int yydefgoto[] = { -1, 1, 2, 243, 62, 63, 383, 236, 64, 65, 66, 67, 68, 244, 69, 70, 71, 72, 185, 91, 178, 179, 180, 500, 466, 166, 74, 475, 385, 249, 583, 584, 217, 551, 228, 229, 379, 552, 648, 537, 366, 219, 423, 424, 239, 393, 556, 197, 632, 198, 633, 531, 737, 480, 477, 669, 333, 335, 499, 683, 344, 522, 624, 625, 208, 571, 280, 417, 418, 76, 77, 327, 474, 473, 353, 519, 734, 503, 617, 341, 621, 78, 79, 80, 265, 81, 187, 83, 188, 331, 479, 491, 492, 493, 494, 495, 496, 497, 679, 607, 169, 334, 254, 220, 221, 211, 526, 462, 338, 193, 234, 399, 345, 195, 86 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -652 static const short int yypact[] = { -652, 63, 2118, -652, 5013, 51, 330, 3472, 4690, 2333, 6177, 6177, 3360, -652, -652, 7242, 5207, 5207, -652, -652, 5207, 3972, 4069, -652, -652, -652, -652, 6177, 4580, -44, -652, -29, -652, -652, 3584, 3681, -652, -652, 3778, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, 6953, 6953, 330, 2838, 6177, 6274, 6953, 7432, 4470, 7050, 6953, -652, -25, 646, 356, -652, -652, 31, 45, -652, 43, 7337, -652, 71, 8263, 8, 59, 35, -652, 327, -652, -652, 64, -652, 168, 57, -652, 646, -652, -652, 6177, 24, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, 116, 158, 180, 224, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, 231, 238, 254, -652, 293, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, 294, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, 73, -652, 113, 2953, 40, 101, 17, 19, 146, 40, -652, -652, 79, 136, -652, 53, -652, 6177, 6177, -652, -652, -652, 109, 123, -44, -652, -652, 137, 213, 70, 75, 57, 6953, 6953, 6953, -652, 2001, -652, -652, 150, 192, -652, -652, -652, 4911, -652, 5207, -652, -652, 5304, -652, 187, -652, -652, 183, -652, 201, 3068, 262, 141, 262, -652, 2838, 234, 266, 273, 356, 6953, -44, 279, 22, 23, -652, 189, 229, 23, -652, -652, 157, 165, 226, -652, -652, -652, -652, -652, -652, 262, 262, -652, 3263, 6177, 6177, 6177, 6177, 5013, 6177, 6177, -652, -652, -652, 6371, -652, 2838, 7432, 283, 6371, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 6953, 1292, 1857, 6274, 1939, 1939, -652, -652, -652, -652, -652, -652, 6953, -652, -652, -652, 356, -25, -652, -652, -652, 3166, 6177, 486, -652, -652, -652, -652, 6953, 393, -652, -652, 2448, 398, 6953, 7465, 7528, 6274, 2644, 136, 6468, 406, -652, 60, 60, 183, 7591, 7654, 6274, -652, 8067, 8263, 6953, 5401, -652, -652, 5498, -652, -652, 300, 31, -44, 302, -5, 301, 5110, -652, -652, -652, -652, -652, 4690, -652, 6953, 3068, 306, 7465, 7528, 308, -652, 305, 309, 7960, -652, -652, 6565, -652, -652, 6953, -652, 6953, -652, -652, -652, 7717, 7780, 6274, 646, 356, 356, 356, 356, -652, -652, -652, 47, 47, 6953, -652, 8118, 310, -652, -652, 312, -652, -652, -652, 8118, -652, 262, 8349, 8349, 8349, 8349, 545, 545, 8392, 1811, 8349, 8349, 8306, 8306, 508, 508, 8220, 545, 545, 478, 478, 552, 20, 20, 262, 262, 262, 2209, 4166, 4263, 4360, 123, -652, 174, -652, 237, -652, 4069, 315, -652, -652, 1754, 1754, 47, 47, 6953, 8263, -25, -652, 6177, 3166, 420, 102, 341, -652, -652, -652, -652, 382, 390, 470, 2333, -25, -652, 323, -652, 324, 328, -652, 4800, 4690, 8263, 331, 360, -652, 2741, 436, -652, 352, -652, 8263, 3875, 160, 227, 333, 393, 440, 6953, 338, 33, -652, -652, -652, -652, -652, 78, 123, 87, 95, 123, 337, 6177, 355, -652, 8263, 6953, 2001, -652, 340, 6953, 2001, -652, -652, 346, 5595, 1939, 1939, 348, -652, 6953, 8016, -652, 350, -652, 351, -652, 6177, 8263, 349, -652, 296, -652, -652, 6953, 8263, 163, 106, 203, 358, -652, 7147, 3166, -652, 3068, 8263, 6662, -652, 6953, 6953, -652, -652, 6953, 6953, -652, -652, -652, -652, 289, -652, -652, -652, -652, 3166, 3068, 8263, -652, 79, 458, -652, 362, 6953, -652, -652, -44, 113, -652, 470, -652, -652, 12, -652, 379, -652, -652, -652, 6953, 7432, 33, -652, -652, 3166, 471, -652, 6177, 473, -652, 235, 476, -652, 8263, 6759, 2546, 3166, 3166, 112, 60, 8067, 5692, -652, 8067, -652, 31, -5, 123, 123, -652, 8067, 6856, 370, -652, 5789, -652, 55, -652, 7960, 233, -652, 385, 479, 377, 6953, 8169, 8263, 8263, 8263, 8263, 6953, 483, 386, 3166, -652, -652, -652, 8263, 383, 393, -652, 389, 328, -652, 341, -652, 328, 486, -652, 249, 165, 226, 2333, -652, -652, 40, -652, -652, 6953, 357, 494, 501, -652, -652, 6953, -652, 391, -652, 6953, 394, 395, -652, 6953, -652, -652, -652, -652, -652, 8263, 8263, -652, -652, 506, -652, 436, 12, -652, -652, -652, 2333, 7843, 7906, 6274, 113, 2448, 8263, -652, -652, -652, -652, -652, 3166, 8067, -652, 8067, 5886, -652, 5983, -652, 8067, -652, 511, 328, 113, 36, 42, 44, 407, -652, 352, 518, -652, -652, 6953, 411, 6953, -652, -652, -652, 393, 233, -652, -652, 8067, 6080, -652, 8067, 436, -652, 6953, -652, 521, 8067, -652, -652 }; /* YYPGOTO[NTERM-NUM]. */ static const short int yypgoto[] = { -652, -652, -652, 334, -652, 29, -652, -652, 200, -40, -652, 11, -14, -164, -24, 461, -652, -35, 1466, 61, 0, -10, -652, -652, 6, -652, 498, -652, -652, -304, -17, -424, 69, -652, -34, -652, -652, -652, -652, 54, 347, -52, -652, 247, 941, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -652, -181, -344, -218, -318, -23, -364, -652, -652, -652, -217, -652, 468, -652, -652, -349, -652, -652, -652, -652, -594, -651, -652, -652, -2, -652, -652, 260, 543, 1097, -652, -652, -132, 62, -47, -652, -579, -46, -569, -314, -461, -652, -652, -652, 26, -348, 1267, -275, -652, -652, -38, -188, 149, 3, 502, -12 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -434 static const short int yytable[] = { 196, 205, 516, 250, 253, 227, 181, 164, 350, 375, 675, 468, 524, 165, 165, 194, 357, 235, 232, 266, 541, 498, 257, 506, 269, 329, 181, 215, 215, 245, 681, 215, 215, 87, 165, 610, 612, 678, 461, 467, 682, 471, 472, 252, 256, 514, 343, 588, 590, -70, 196, 326, 541, 343, 573, -69, 530, -71, 264, 278, 395, 318, 680, 3, 165, 194, 248, 92, 325, 747, 218, 218, 461, 467, 218, 218, 276, 277, 390, 233, 545, 251, 255, 318, 529, 237, 222, 521, 287, 223, 225, 276, 277, 313, 332, -67, 276, 277, 190, 191, -72, 88, 347, -70, 568, 89, 323, 488, 489, 592, 593, 546, -69, 241, 529, 276, 277, -67, 233, 425, -71, 340, 777, 569, 314, 279, 330, 315, 310, 311, 312, -63, 529, 348, 90, 754, 349, -68, 276, 277, 397, 400, 681, 281, 316, 398, 398, 190, 191, 319, 570, 323, 748, 352, 351, 765, 190, 191, -413, -70, -70, 282, -67, 190, 191, -69, -69, -71, -71, 286, 342, 319, 709, -67, 374, 317, 498, 354, -72, 226, 196, -70, -61, 190, 191, 543, 227, 547, -61, -417, -69, 339, 235, -66, 325, 194, -64, 627, -71, 346, -413, -363, 190, 191, -63, -63, 562, 367, 367, -63, 184, 189, 192, -65, 376, -68, 722, 723, 245, 588, 590, 724, 358, -63, -63, 233, 388, 230, -65, 422, -62, 224, -363, 324, 422, 215, 235, 372, 361, 380, 215, 420, 406, -362, -72, 226, 428, 581, -417, 426, -368, 381, 382, 359, 246, 324, 360, 389, -69, 245, 349, 581, 82, 250, 82, -364, -72, 167, 365, 82, 643, 644, -69, 407, -362, 209, 408, -417, 218, -417, 218, -368, -417, 218, -368, -413, -66, 764, 502, 541, 328, 698, -63, 371, 599, 373, -364, 250, 378, 409, 518, -65, 541, 252, 414, 384, -65, 402, 250, -365, 368, -248, 398, 82, 582, 386, -367, 259, -256, 460, -65, -65, 666, -366, 582, -71, 248, 642, 504, 507, 287, 259, 478, -68, 726, -71, 61, 252, 631, -357, -365, 251, -248, 182, 404, -248, 733, -367, 252, -256, 367, 391, -256, 460, -366, -65, 250, 720, 523, 523, 248, 235, 367, 235, 460, 727, 623, 505, 728, 498, -357, 248, 505, 555, 352, 251, 666, 732, -360, 336, 88, 181, 235, 392, 89, 321, 251, -68, 322, 165, -49, 538, 276, 277, 460, 541, 252, 355, 356, 396, 401, 427, 403, 554, 405, 572, 572, -62, 505, -360, 337, 509, 460, -50, -58, 674, 520, 542, 548, 248, 544, 559, 541, -58, 753, 560, 561, 580, 575, 576, 598, 553, 601, 585, 251, 587, 688, 589, 591, 600, 602, 606, 609, 82, 579, 620, 611, 773, 616, 615, 628, 213, 529, 626, 702, 586, 630, 634, 637, 586, 586, 572, 572, 640, 653, 645, 710, 649, 671, 650, 235, 410, 411, 412, 413, 489, 415, 416, 655, 672, 595, 690, 608, 692, 608, 608, 693, 707, 711, 712, 614, 618, 713, 716, 622, 605, 507, 82, 181, 613, 719, 717, 82, 507, 735, 165, 165, 721, 739, 579, 730, 736, 741, 743, 216, 216, 746, 586, 216, 216, 483, 763, 484, 485, 486, 487, 367, 766, 768, 770, 82, 779, 285, 430, 482, 82, 483, 767, 484, 485, 486, 487, 367, 82, 259, 320, 287, 657, 238, 240, 168, 725, 603, 216, 216, 641, 205, 267, 268, 676, 677, 300, 301, 0, 270, 488, 489, 369, 0, 0, 538, 387, 0, 0, 0, 0, 287, 246, 0, 0, 0, 488, 489, 307, 308, 309, 310, 311, 312, 0, 0, 235, 342, 82, 0, 705, 0, 0, 0, 670, 0, 0, 0, 0, 82, 0, 0, 0, 490, 0, 82, 0, 0, 287, 308, 309, 310, 311, 312, 0, 287, 0, 0, 0, 367, 0, 0, 367, 300, 301, 235, 586, 586, 0, 367, 300, 301, 0, 523, 0, 0, 0, 235, 0, 0, 0, 82, 0, 305, 306, 307, 308, 309, 310, 311, 312, 0, 0, 308, 309, 310, 311, 312, 507, 0, 608, 608, 481, 0, 0, 608, 0, 0, 706, 0, 0, 250, 0, 508, 596, 0, 0, 0, 507, 515, 271, 272, 273, 274, 275, 0, 0, 0, 367, 367, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 622, 533, 362, 363, 267, 0, 0, 0, 252, 342, 0, 0, 558, 0, 216, 0, 216, 0, 367, 216, 367, 0, 0, 635, 460, 367, 0, 0, 608, 342, 0, 248, 82, 0, 0, 507, 0, 394, 0, 0, 367, 0, 0, 82, 0, 507, 251, 0, 652, 367, 0, 0, 367, 622, 0, 0, 0, 82, 367, 760, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 421, 0, 0, 0, 0, 429, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 0, 0, 216, 597, 0, 0, 0, 0, 0, 0, 0, 476, 691, 0, 604, 0, 0, 0, 0, 209, 82, 0, 82, 0, 0, 0, 0, 501, 619, 0, 0, 0, 0, 510, 0, 0, 216, 0, 0, 501, 0, 82, 82, 0, 0, 0, 0, 216, 0, 0, 0, 534, 536, 0, 0, 540, 0, 0, 0, 0, 0, 0, 0, 0, 550, 686, 0, 0, 0, 82, 0, 0, 557, 0, 638, 0, 0, 0, 0, 0, 82, 82, 82, 0, 564, 0, 0, 540, 0, 564, 651, 0, 0, 0, 658, 216, 659, 0, 0, 0, 0, 0, 0, 0, 0, 0, 574, 0, 0, 0, 0, 0, 0, 0, 0, 667, 668, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 0, 75, 0, 0, 82, 0, 75, 186, 186, 186, 689, 0, 207, 186, 186, 0, 0, 186, 186, 0, 0, 695, 696, 697, 186, 0, 0, 0, 0, 594, 0, 0, 0, 0, 0, 0, 0, 0, 0, 699, 0, 82, 701, 0, 0, 0, 82, 0, 0, 703, 75, 186, 186, 82, 258, 0, 186, 0, 0, 718, 0, 0, 0, 0, 0, 0, 0, 0, 258, 0, 0, 629, 0, 0, 0, 0, 0, 0, 729, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 636, 0, 0, 0, 639, 0, 0, 0, 0, 536, 0, 0, 0, 0, 646, 0, 0, 0, 0, 742, 744, 0, 0, 0, 0, 0, 749, 0, 654, 0, 0, 755, 0, 0, 0, 0, 0, 0, 756, 0, 661, 0, 662, 663, 0, 0, 664, 665, 0, 0, 0, 0, 757, 0, 758, 0, 0, 0, 0, 762, 0, 0, 0, 0, 0, 673, 84, 0, 84, 0, 0, 0, 0, 84, 771, 0, 0, 0, 0, 210, 564, 0, 0, 774, 0, 0, 776, 0, 0, 0, 0, 75, 780, 0, 0, 564, 0, 0, 0, 0, 0, 0, 540, 0, 0, 186, 186, 0, 0, 0, 0, 0, 216, 0, 0, 540, 0, 84, 0, 0, 0, 260, 0, 0, 0, 714, 0, 0, 0, 0, 0, 715, 186, 0, 186, 260, 0, 186, 0, 0, 0, 0, 0, 0, 0, 75, 0, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 731, 0, 0, 0, 0, 0, 738, 0, 0, 0, 740, 0, 0, 0, 745, 0, 0, 0, 0, 75, 186, 186, 186, 186, 75, 186, 186, 0, 0, 0, 186, 0, 75, 258, 216, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 536, 0, 540, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 769, 0, 772, 0, 0, 0, 0, 0, 0, 0, 0, 540, 85, 0, 85, 0, 778, 75, 186, 85, 85, 85, 85, 84, 0, 0, 85, 85, 75, 0, 85, 85, 0, 186, 75, 0, 0, 85, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 85, 85, 85, 0, 0, 0, 85, 75, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 84, 0, 0, 457, 458, 0, 0, 459, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 85, 137, 138, 139, 140, 141, 142, 0, 143, 144, 84, 0, 145, 0, 0, 84, 146, 147, 148, 149, 0, 0, 0, 84, 260, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 0, 0, 0, 0, 0, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 186, 75, 0, 0, 0, 0, 0, 0, 0, 0, 84, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 75, 84, 0, 0, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 73, 0, 73, 0, 186, 0, 0, 73, 0, 0, 0, 0, 0, 206, 0, 84, 0, 186, 0, 0, 0, 0, 0, 85, 0, 85, 0, 0, 85, 186, 0, 0, 0, 0, 0, 0, 85, 0, 0, 0, 0, 85, 0, 207, 75, 0, 75, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 75, 0, 0, 85, 85, 85, 85, 85, 85, 85, 85, 0, 0, 0, 85, 0, 85, 0, 0, 85, 0, 0, 0, 685, 0, 0, 0, 75, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 75, 75, 75, 0, 0, 84, 0, 0, 0, 0, 85, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 84, 0, 0, 0, 0, 0, 0, 0, 75, 85, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 0, 0, 0, 0, 73, 0, 0, 0, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 210, 84, 186, 84, 75, 0, 0, 0, 85, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 73, 0, 0, 0, 0, 687, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 84, 84, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 73, 0, 0, 0, 0, 85, 85, 0, 73, 0, 0, 0, 0, -433, 0, 0, 0, 85, 0, 0, 0, -433, -433, -433, 0, 84, -433, -433, -433, 0, -433, 85, 0, 0, 0, 0, 0, 0, 0, 0, -433, 0, 0, 0, 84, 0, 0, 0, 0, -433, -433, 0, -433, -433, -433, -433, -433, 85, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 85, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 84, 85, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 85, -433, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, -433, -433, -433, 0, 0, 0, 0, 226, -433, -433, 287, 288, 289, 290, 291, 292, 293, 294, 85, 296, 297, 85, 0, 0, 0, 300, 301, 0, 0, 85, 85, 85, 0, 0, 0, 0, 0, 0, 463, 464, 0, 0, 465, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 85, 0, 146, 147, 148, 149, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 150, 0, 0, 85, 0, 73, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 0, 73, 0, 0, 0, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 469, 464, 0, 85, 470, 0, 85, 0, 85, 0, 0, 0, 0, 0, 0, 85, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 206, 73, 0, 73, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 0, 0, 0, 0, 0, 0, 73, 73, 162, 0, 0, 0, 0, 0, 0, 0, 0, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 684, 0, 300, 301, 73, 0, 0, 364, 0, 0, 0, 0, 0, 0, 0, 73, 73, 73, 302, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 0, 0, 0, 0, 0, -433, 4, 0, 5, 6, 7, 8, 9, 0, 0, 0, 10, 11, 0, 0, 0, 12, 73, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 73, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 73, 52, 0, 0, 53, 54, -417, 55, 56, 0, 57, 0, 58, 0, -417, -417, -417, 0, 0, 0, -417, -417, 0, -417, 0, 0, 59, 60, 0, 0, 0, 0, -417, 0, 0, 0, 0, 0, -433, -433, 0, 0, -417, -417, 0, -417, -417, -417, -417, -417, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -417, -417, -417, -417, -417, -417, -417, -417, -417, -417, -417, -417, -417, 0, 0, -417, -417, -417, 0, 578, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -70, -417, 0, -417, -417, -417, -417, -417, -417, -417, -417, -417, -417, 0, 0, 0, -417, -417, -417, -417, -64, -417, 0, 0, 0, -417, -417, 4, 0, 5, 6, 7, 8, 9, -433, -433, -433, 10, 11, 0, 0, -433, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 60, 0, 0, 0, 4, 0, 5, 6, 7, 8, 9, -433, -433, -433, 10, 11, 0, -433, -433, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 4, 0, 5, 6, 7, 8, 9, 0, 0, -433, 10, 11, 59, 60, -433, 12, -433, 13, 14, 15, 16, 17, 18, 19, -433, -433, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 4, 0, 5, 6, 7, 8, 9, 0, 0, -433, 10, 11, 59, 60, -433, 12, 0, 13, 14, 15, 16, 17, 18, 19, -433, -433, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 4, 0, 5, 6, 7, 8, 9, 0, -433, -433, 10, 11, 0, 59, 60, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, -433, -433, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 4, 0, 5, 6, 7, 8, 9, 0, 0, 0, 10, 11, 0, 59, 60, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, -433, -433, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 242, 54, 0, 55, 56, 0, 57, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 60, 0, 0, 0, 4, -433, 5, 6, 7, 8, 9, -433, -433, 0, 10, 11, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 60, 0, 0, 0, 4, -433, 5, 6, 7, 8, 9, -433, -433, 0, 10, 11, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 4, 0, 5, 6, 7, 8, 9, 0, 0, -433, 10, 11, 59, 60, 0, 12, -433, 13, 14, 15, 16, 17, 18, 19, -433, -433, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 0, 5, 6, 7, 8, 9, 0, 0, 0, 10, 11, 0, 59, 60, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, -433, -433, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 59, 60, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 354, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 60, 0, 0, 93, 94, 95, 96, 97, 98, 99, 100, 190, 191, 101, 102, 103, 104, 105, 0, 0, 106, 107, 108, 109, 110, 111, 112, 0, 0, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 36, 37, 136, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 0, 0, -410, -410, -410, 0, -410, 0, 162, 163, -410, -410, 0, 0, 0, -410, 0, -410, -410, -410, -410, -410, -410, -410, 0, -410, 0, 0, -410, -410, -410, -410, -410, -410, -410, 0, 0, 0, 0, 0, 0, 0, 0, 0, -410, 0, 0, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, -410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -410, 0, 0, -410, -410, 0, -410, -410, 0, -410, -410, -410, 0, 0, -412, -412, -412, 0, -412, 0, 0, 0, -412, -412, 0, -410, -410, -412, -410, -412, -412, -412, -412, -412, -412, -412, -410, -412, 0, 0, -412, -412, -412, -412, -412, -412, -412, 0, 0, 0, 0, 0, 0, 0, 0, 0, -412, 0, 0, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, -412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -412, 0, 0, -412, -412, 0, -412, -412, 0, -412, -412, -412, 0, 0, -411, -411, -411, 0, -411, 0, 0, 0, -411, -411, 0, -412, -412, -411, -412, -411, -411, -411, -411, -411, -411, -411, -412, -411, 0, 0, -411, -411, -411, -411, -411, -411, -411, 0, 0, 0, 0, 0, 0, 0, 0, 0, -411, 0, 0, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, -411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -411, 0, 0, -411, -411, 0, -411, -411, 0, -411, -411, -411, 0, 0, -413, -413, -413, 0, -413, 0, 0, 0, -413, -413, 0, -411, -411, -413, -411, -413, -413, -413, -413, -413, -413, -413, -411, 0, 0, 0, -413, -413, -413, -413, -413, -413, -413, 0, 0, 0, 0, 0, 0, 0, 0, 0, -413, 0, 0, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, -413, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -413, 578, 0, -413, -413, 0, -413, -413, 0, -413, -413, -413, -70, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, -413, -413, 12, 0, 13, 14, 15, 199, 200, 18, 19, -413, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 212, 213, 58, 0, 0, -225, -225, -225, 0, -225, 0, 0, 0, -225, -225, 0, 214, 60, -225, 0, -225, -225, -225, -225, -225, -225, -225, 224, 0, 0, 0, -225, -225, -225, -225, -225, -225, -225, 0, 0, 0, 0, 0, 0, 0, 0, 0, -225, 0, 0, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, -225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -225, 0, 0, -225, -225, 0, -225, -225, 0, -225, -225, -225, 0, 0, -415, -415, -415, 0, -415, 0, 0, 0, -415, -415, 0, -225, -225, -415, 0, -415, -415, -415, -415, -415, -415, -415, 226, 0, 0, 0, -415, -415, -415, -415, -415, -415, -415, 0, 0, 0, 0, 0, 0, 0, 0, 0, -415, 0, 0, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, -415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -415, 0, 0, -415, -415, 0, -415, -415, 0, -415, -415, -415, 0, 0, -414, -414, -414, 0, -414, 0, 0, 0, -414, -414, 0, -415, -415, -414, 0, -414, -414, -414, -414, -414, -414, -414, -415, 0, 0, 0, -414, -414, -414, -414, -414, -414, -414, 0, 0, 0, 0, 0, 0, 0, 0, 0, -414, 0, 0, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, -414, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -414, 0, 0, -414, -414, 0, -414, -414, 0, -414, -414, -414, 0, 0, -416, -416, -416, 0, -416, 0, 0, 0, -416, -416, 0, -414, -414, -416, 0, -416, -416, -416, -416, -416, -416, -416, -414, 0, 0, 0, -416, -416, -416, -416, -416, -416, -416, 0, 0, 0, 0, 0, 0, 0, 0, 0, -416, 0, 0, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, -416, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -416, 0, 0, -416, -416, 0, -416, -416, 0, -416, -416, -416, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -416, -416, 93, 94, 95, 96, 97, 98, 99, 100, 0, -416, 101, 102, 103, 104, 105, 0, 0, 106, 107, 108, 109, 110, 111, 112, 0, 0, 113, 114, 115, 170, 171, 172, 173, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 174, 175, 176, 135, 261, 262, 177, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 93, 94, 95, 96, 97, 98, 99, 100, 162, 0, 101, 102, 103, 104, 105, 0, 0, 106, 107, 108, 109, 110, 111, 112, 0, 0, 113, 114, 115, 170, 171, 172, 173, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 174, 175, 176, 135, 231, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 58, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 93, 94, 95, 96, 97, 98, 99, 100, 162, 0, 101, 102, 103, 104, 105, 0, 0, 106, 107, 108, 109, 110, 111, 112, 0, 0, 113, 114, 115, 170, 171, 172, 173, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 174, 175, 176, 135, 0, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 58, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 93, 94, 95, 96, 97, 98, 99, 100, 162, 0, 101, 102, 103, 104, 105, 0, 0, 106, 107, 108, 109, 110, 111, 112, 0, 0, 113, 114, 115, 170, 171, 172, 173, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 174, 175, 176, 135, 0, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 0, 5, 6, 7, 0, 9, 0, 0, 162, 10, 11, 0, 0, 0, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 212, 213, 58, 0, 0, 0, 0, 0, 0, 0, 5, 6, 7, 8, 9, 0, 214, 60, 10, 11, 0, 0, 370, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 59, 60, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 549, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 59, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 212, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 377, 0, 55, 56, 0, 212, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 535, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 539, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 535, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 700, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 708, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 759, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 761, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 775, 213, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, 0, 0, 20, 21, 22, 23, 24, 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 0, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 59, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 247, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 419, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 517, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 563, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 660, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 694, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 704, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 0, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 183, 54, 0, 55, 56, 0, 0, 0, 58, 0, 0, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 214, 60, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 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, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 5, 6, 7, 0, 9, 656, 0, 0, 10, 11, 0, 0, 0, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 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, 0, 0, 52, 0, 0, 53, 54, 0, 55, 56, 0, 57, 0, 58, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 0, 0, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 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, 0, 0, 52, 0, 0, 283, 54, 0, 55, 56, 0, 284, 0, 58, 5, 6, 7, 0, 9, 0, 0, 0, 10, 11, 0, 0, 0, 12, 0, 13, 14, 15, 199, 200, 18, 19, 0, 0, 0, 0, 201, 202, 203, 23, 24, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 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, 511, 458, 0, 52, 459, 0, 183, 54, 0, 55, 56, 0, 0, 0, 58, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 512, 464, 0, 0, 513, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 525, 458, 0, 0, 459, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 527, 464, 0, 0, 528, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 565, 458, 0, 0, 459, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 566, 464, 0, 0, 567, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 750, 458, 0, 0, 459, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 751, 464, 0, 0, 752, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 140, 141, 142, 0, 143, 144, 0, 0, 145, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 0, 161, 0, 0, 0, 0, 0, 0, 0, 0, 162, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 233, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, 0, 300, 301, 0, 0, 0, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 0, 0, 0, 0, 0, 0, 647, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 0, 0, 0, 0, 0, 0, 532, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 0, 0, 0, 0, 0, 0, -235, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 0, 0, 0, 0, 0, 0, -236, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 577, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, -434, -434, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 287, -434, -434, -434, -434, 292, 293, 0, 0, -434, -434, 0, 0, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 287, 288, 289, 290, 291, 292, 293, 0, 0, 296, 297, 0, 0, 0, 0, 300, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312 }; static const short int yycheck[] = { 12, 15, 351, 55, 56, 22, 8, 7, 189, 226, 604, 315, 356, 7, 8, 12, 204, 29, 28, 59, 368, 335, 57, 341, 62, 1, 28, 16, 17, 53, 609, 20, 21, 4, 28, 496, 497, 606, 313, 314, 609, 316, 317, 55, 56, 349, 13, 471, 472, 13, 62, 85, 400, 13, 418, 13, 360, 13, 58, 28, 248, 26, 50, 0, 58, 62, 55, 6, 85, 720, 16, 17, 347, 348, 20, 21, 36, 37, 242, 123, 85, 55, 56, 26, 359, 114, 17, 27, 68, 20, 21, 36, 37, 85, 91, 25, 36, 37, 123, 124, 25, 50, 85, 25, 408, 54, 87, 95, 96, 473, 474, 116, 25, 52, 389, 36, 37, 98, 123, 283, 25, 8, 773, 76, 116, 94, 102, 119, 108, 109, 110, 25, 407, 116, 83, 729, 119, 25, 36, 37, 118, 118, 721, 98, 85, 123, 123, 123, 124, 114, 103, 87, 721, 17, 192, 749, 123, 124, 122, 123, 124, 118, 98, 123, 124, 123, 124, 123, 124, 98, 182, 114, 117, 103, 226, 116, 490, 124, 103, 122, 192, 103, 118, 123, 124, 373, 203, 375, 118, 26, 103, 118, 204, 118, 211, 192, 118, 515, 103, 98, 122, 85, 123, 124, 98, 118, 394, 219, 220, 103, 10, 11, 12, 118, 226, 103, 677, 678, 242, 643, 644, 682, 85, 117, 118, 123, 85, 27, 25, 281, 118, 122, 116, 87, 286, 224, 248, 226, 25, 52, 229, 281, 85, 85, 98, 122, 286, 87, 85, 284, 85, 64, 65, 116, 54, 87, 119, 116, 98, 283, 119, 87, 2, 315, 4, 85, 98, 7, 118, 9, 545, 546, 98, 116, 116, 15, 119, 114, 224, 116, 226, 116, 119, 229, 119, 122, 118, 748, 340, 637, 90, 635, 118, 224, 482, 226, 116, 349, 229, 270, 352, 98, 650, 315, 275, 122, 103, 118, 360, 85, 118, 85, 123, 53, 87, 114, 85, 57, 85, 313, 117, 118, 87, 85, 87, 98, 315, 544, 340, 341, 68, 71, 329, 98, 85, 98, 2, 349, 519, 85, 116, 315, 116, 9, 115, 119, 695, 116, 360, 116, 362, 117, 119, 347, 116, 118, 408, 675, 355, 356, 349, 373, 374, 375, 358, 116, 14, 15, 119, 683, 116, 360, 15, 383, 17, 349, 87, 695, 85, 85, 50, 383, 394, 117, 54, 58, 360, 98, 61, 383, 117, 365, 36, 37, 388, 743, 408, 197, 198, 120, 251, 118, 253, 377, 255, 417, 418, 118, 15, 116, 116, 13, 406, 117, 118, 603, 10, 117, 117, 408, 118, 115, 770, 118, 728, 117, 117, 461, 118, 117, 10, 377, 50, 467, 408, 120, 617, 471, 472, 98, 50, 118, 118, 183, 461, 9, 118, 765, 88, 118, 10, 96, 727, 120, 642, 467, 118, 120, 118, 471, 472, 473, 474, 117, 115, 117, 654, 117, 10, 118, 482, 271, 272, 273, 274, 96, 276, 277, 120, 117, 477, 10, 494, 10, 496, 497, 10, 117, 103, 10, 500, 503, 115, 10, 506, 492, 508, 237, 500, 499, 117, 115, 242, 515, 10, 499, 500, 118, 117, 526, 691, 10, 118, 118, 16, 17, 10, 529, 20, 21, 50, 10, 52, 53, 54, 55, 538, 120, 10, 118, 270, 10, 71, 286, 334, 275, 50, 755, 52, 53, 54, 55, 554, 283, 284, 77, 68, 570, 50, 51, 7, 683, 490, 55, 56, 544, 570, 59, 60, 606, 606, 83, 84, -1, 62, 95, 96, 220, -1, -1, 544, 237, -1, -1, -1, -1, 68, 377, -1, -1, -1, 95, 96, 105, 106, 107, 108, 109, 110, -1, -1, 603, 604, 333, -1, 647, -1, -1, -1, 596, -1, -1, -1, -1, 344, -1, -1, -1, 122, -1, 350, -1, -1, 68, 106, 107, 108, 109, 110, -1, 68, -1, -1, -1, 636, -1, -1, 639, 83, 84, 642, 643, 644, -1, 646, 83, 84, -1, 635, -1, -1, -1, 654, -1, -1, -1, 386, -1, 103, 104, 105, 106, 107, 108, 109, 110, -1, -1, 106, 107, 108, 109, 110, 675, -1, 677, 678, 333, -1, -1, 682, -1, -1, 647, -1, -1, 728, -1, 344, 479, -1, -1, -1, 695, 350, 39, 40, 41, 42, 43, -1, -1, -1, 705, 706, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 720, 362, 212, 213, 214, -1, -1, -1, 728, 729, -1, -1, 386, -1, 224, -1, 226, -1, 738, 229, 740, -1, -1, 531, 726, 745, -1, -1, 748, 749, -1, 728, 480, -1, -1, 755, -1, 247, -1, -1, 760, -1, -1, 491, -1, 765, 728, -1, 556, 769, -1, -1, 772, 773, -1, -1, -1, 505, 778, 741, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, -1, -1, 315, 480, -1, -1, -1, -1, -1, -1, -1, 324, 623, -1, 491, -1, -1, -1, -1, 570, 571, -1, 573, -1, -1, -1, -1, 340, 505, -1, -1, -1, -1, 346, -1, -1, 349, -1, -1, 352, -1, 592, 593, -1, -1, -1, -1, 360, -1, -1, -1, 364, 365, -1, -1, 368, -1, -1, -1, -1, -1, -1, -1, -1, 377, 616, -1, -1, -1, 620, -1, -1, 385, -1, 538, -1, -1, -1, -1, -1, 631, 632, 633, -1, 397, -1, -1, 400, -1, 402, 554, -1, -1, -1, 571, 408, 573, -1, -1, -1, -1, -1, -1, -1, -1, -1, 419, -1, -1, -1, -1, -1, -1, -1, -1, 592, 593, -1, 669, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2, -1, 4, -1, -1, 688, -1, 9, 10, 11, 12, 620, -1, 15, 16, 17, -1, -1, 20, 21, -1, -1, 631, 632, 633, 27, -1, -1, -1, -1, 475, -1, -1, -1, -1, -1, -1, -1, -1, -1, 636, -1, 725, 639, -1, -1, -1, 730, -1, -1, 646, 53, 54, 55, 737, 57, -1, 59, -1, -1, 669, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, 517, -1, -1, -1, -1, -1, -1, 688, -1, -1, -1, -1, -1, -1, -1, -1, 90, -1, 535, -1, -1, -1, 539, -1, -1, -1, -1, 544, -1, -1, -1, -1, 549, -1, -1, -1, -1, 705, 706, -1, -1, -1, -1, -1, 725, -1, 563, -1, -1, 730, -1, -1, -1, -1, -1, -1, 737, -1, 575, -1, 577, 578, -1, -1, 581, 582, -1, -1, -1, -1, 738, -1, 740, -1, -1, -1, -1, 745, -1, -1, -1, -1, -1, 600, 2, -1, 4, -1, -1, -1, -1, 9, 760, -1, -1, -1, -1, 15, 615, -1, -1, 769, -1, -1, 772, -1, -1, -1, -1, 183, 778, -1, -1, 630, -1, -1, -1, -1, -1, -1, 637, -1, -1, 197, 198, -1, -1, -1, -1, -1, 647, -1, -1, 650, -1, 53, -1, -1, -1, 57, -1, -1, -1, 660, -1, -1, -1, -1, -1, 666, 224, -1, 226, 71, -1, 229, -1, -1, -1, -1, -1, -1, -1, 237, -1, -1, -1, -1, 242, -1, -1, -1, -1, -1, -1, -1, -1, 694, -1, -1, -1, -1, -1, 700, -1, -1, -1, 704, -1, -1, -1, 708, -1, -1, -1, -1, 270, 271, 272, 273, 274, 275, 276, 277, -1, -1, -1, 281, -1, 283, 284, 728, 286, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 741, -1, 743, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 315, 759, -1, 761, -1, -1, -1, -1, -1, -1, -1, -1, 770, 2, -1, 4, -1, 775, 333, 334, 9, 10, 11, 12, 183, -1, -1, 16, 17, 344, -1, 20, 21, -1, 349, 350, -1, -1, 27, -1, -1, -1, -1, -1, -1, 360, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 377, -1, 53, 54, 55, -1, -1, -1, 59, 386, -1, -1, -1, -1, -1, -1, 237, -1, -1, -1, -1, 242, -1, -1, 50, 51, -1, -1, 54, -1, -1, 408, -1, -1, -1, -1, -1, -1, -1, 90, 66, 67, 68, 69, 70, 71, -1, 73, 74, 270, -1, 77, -1, -1, 275, 81, 82, 83, 84, -1, -1, -1, 283, 284, -1, -1, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, -1, -1, -1, -1, -1, -1, -1, -1, 121, -1, -1, -1, -1, -1, -1, 479, 480, -1, -1, -1, -1, -1, -1, -1, -1, 333, -1, 491, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 505, 350, -1, -1, 183, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 197, 198, -1, -1, 2, -1, 4, -1, 531, -1, -1, 9, -1, -1, -1, -1, -1, 15, -1, 386, -1, 544, -1, -1, -1, -1, -1, 224, -1, 226, -1, -1, 229, 556, -1, -1, -1, -1, -1, -1, 237, -1, -1, -1, -1, 242, -1, 570, 571, -1, 573, -1, -1, -1, -1, 53, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 592, 593, -1, -1, 270, 271, 272, 273, 274, 275, 276, 277, -1, -1, -1, 281, -1, 283, -1, -1, 286, -1, -1, -1, 616, -1, -1, -1, 620, -1, -1, 623, -1, -1, -1, -1, -1, -1, -1, 631, 632, 633, -1, -1, 480, -1, -1, -1, -1, 315, -1, -1, -1, -1, -1, 491, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 333, 334, 505, -1, -1, -1, -1, -1, -1, -1, 669, 344, -1, -1, -1, -1, 349, 350, -1, -1, -1, -1, -1, -1, -1, -1, -1, 360, -1, 688, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 377, -1, -1, -1, -1, 183, -1, -1, -1, 386, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 725, 570, 571, 728, 573, 730, -1, -1, -1, 408, -1, -1, 737, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 592, 593, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 237, -1, -1, -1, -1, 242, -1, -1, -1, -1, 616, -1, -1, -1, 620, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 631, 632, 633, -1, -1, -1, -1, -1, 270, -1, -1, -1, -1, 275, -1, -1, -1, -1, 479, 480, -1, 283, -1, -1, -1, -1, 0, -1, -1, -1, 491, -1, -1, -1, 8, 9, 10, -1, 669, 13, 14, 15, -1, 17, 505, -1, -1, -1, -1, -1, -1, -1, -1, 27, -1, -1, -1, 688, -1, -1, -1, -1, 36, 37, -1, 39, 40, 41, 42, 43, 531, 333, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 544, -1, -1, -1, -1, 350, -1, -1, -1, -1, -1, 725, 556, -1, -1, -1, 730, -1, -1, -1, -1, -1, -1, 737, -1, -1, -1, 571, 85, 573, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 386, -1, -1, -1, -1, -1, -1, 592, 593, -1, -1, -1, -1, -1, -1, -1, -1, 115, 116, 117, -1, -1, -1, -1, 122, 123, 124, 68, 69, 70, 71, 72, 73, 74, 75, 620, 77, 78, 623, -1, -1, -1, 83, 84, -1, -1, 631, 632, 633, -1, -1, -1, -1, -1, -1, 50, 51, -1, -1, 54, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 66, 67, 68, 69, 70, 71, -1, 73, 74, -1, -1, 77, -1, 669, -1, 81, 82, 83, 84, -1, -1, -1, -1, 480, -1, -1, -1, -1, -1, 95, -1, -1, 688, -1, 491, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, -1, 505, -1, -1, -1, -1, -1, -1, 121, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 50, 51, -1, 725, 54, -1, 728, -1, 730, -1, -1, -1, -1, -1, -1, 737, 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, -1, -1, -1, 95, -1, 570, 571, -1, 573, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, -1, -1, -1, -1, -1, -1, 592, 593, 121, -1, -1, -1, -1, -1, -1, -1, -1, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 616, -1, 83, 84, 620, -1, -1, 88, -1, -1, -1, -1, -1, -1, -1, 631, 632, 633, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, 0, 1, -1, 3, 4, 5, 6, 7, -1, -1, -1, 11, 12, -1, -1, -1, 16, 669, 18, 19, 20, 21, 22, 23, 24, -1, -1, -1, -1, 29, 30, 31, 32, 33, 34, 35, 688, -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, 725, -1, -1, -1, -1, 730, -1, -1, -1, -1, -1, -1, 737, 86, -1, -1, 89, 90, 0, 92, 93, -1, 95, -1, 97, -1, 8, 9, 10, -1, -1, -1, 14, 15, -1, 17, -1, -1, 111, 112, -1, -1, -1, -1, 26, -1, -1, -1, -1, -1, 123, 124, -1, -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, -1, -1, -1, 98, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, -1, -1, 114, 115, 116, 117, 118, 119, -1, -1, -1, 123, 124, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 111, 112, -1, -1, -1, 1, -1, 3, 4, 5, 6, 7, 123, 124, 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, -1, 92, 93, -1, 95, -1, 97, -1, 1, -1, 3, 4, 5, 6, 7, -1, -1, 10, 11, 12, 111, 112, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, -1, 1, -1, 3, 4, 5, 6, 7, -1, -1, 10, 11, 12, 111, 112, 15, 16, -1, 18, 19, 20, 21, 22, 23, 24, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, 1, -1, 3, 4, 5, 6, 7, -1, 9, 10, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, -1, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, 1, -1, 3, 4, 5, 6, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, -1, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 111, 112, -1, -1, -1, 1, 117, 3, 4, 5, 6, 7, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 111, 112, -1, -1, -1, 1, 117, 3, 4, 5, 6, 7, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, -1, 1, -1, 3, 4, 5, 6, 7, -1, -1, 10, 11, 12, 111, 112, -1, 16, 115, 18, 19, 20, 21, 22, 23, 24, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, 6, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, -1, 123, 124, -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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, -1, -1, 124, -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, -1, 92, 93, -1, -1, -1, 97, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 111, 112, -1, -1, 3, 4, 5, 6, 7, 8, 9, 10, 123, 124, 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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, -1, -1, 3, 4, 5, -1, 7, -1, 121, 122, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, 114, 18, 19, 20, 21, 22, 23, 24, 122, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, 114, 18, 19, 20, 21, 22, 23, 24, 122, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, 114, 18, 19, 20, 21, 22, 23, 24, 122, -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, -1, 92, 93, -1, 95, 96, 97, 98, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, 122, -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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, 122, -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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, 122, -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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, 122, -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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 16, -1, 18, 19, 20, 21, 22, 23, 24, 122, -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, -1, 92, 93, -1, 95, 96, 97, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 111, 112, 3, 4, 5, 6, 7, 8, 9, 10, -1, 122, 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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 3, 4, 5, 6, 7, 8, 9, 10, 121, -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, -1, -1, -1, 95, -1, 97, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 3, 4, 5, 6, 7, 8, 9, 10, 121, -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, -1, -1, -1, 95, -1, 97, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 3, 4, 5, 6, 7, 8, 9, 10, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, -1, 3, 4, 5, -1, 7, -1, -1, 121, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, -1, -1, -1, -1, -1, 3, 4, 5, 6, 7, -1, 111, 112, 11, 12, -1, -1, 117, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, 96, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, -1, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, -1, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, -1, -1, 97, -1, -1, 3, 4, 5, -1, 7, -1, -1, -1, 11, 12, -1, 111, 112, 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, -1, 92, 93, -1, 95, -1, 97, 3, 4, 5, -1, 7, 103, -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, -1, 92, 93, -1, 95, -1, 97, 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, -1, 92, 93, -1, 95, -1, 97, 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, 50, 51, -1, 86, 54, -1, 89, 90, -1, 92, 93, -1, -1, -1, 97, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 50, 51, -1, -1, 54, -1, -1, -1, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 50, 51, -1, -1, 54, -1, -1, -1, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 50, 51, -1, -1, 54, -1, -1, -1, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 50, 51, -1, -1, 54, -1, -1, -1, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 50, 51, -1, -1, 54, -1, -1, -1, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 50, 51, -1, -1, 54, -1, -1, -1, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, 50, 51, -1, -1, 54, -1, -1, -1, 121, -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, -1, -1, -1, 95, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, 112, -1, -1, -1, -1, -1, -1, -1, -1, 121, 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, -1, -1, -1, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 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, -1, -1, -1, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -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, -1, -1, -1, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -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, -1, -1, -1, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -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, -1, -1, -1, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, -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, -1, -1, -1, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 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, -1, -1, -1, 99, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 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, -1, -1, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 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, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 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, -1, -1, -1, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const unsigned char yystos[] = { 0, 126, 127, 0, 1, 3, 4, 5, 6, 7, 11, 12, 16, 18, 19, 20, 21, 22, 23, 24, 29, 30, 31, 32, 33, 34, 35, 38, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 86, 89, 90, 92, 93, 95, 97, 111, 112, 128, 129, 130, 133, 134, 135, 136, 137, 139, 140, 141, 142, 143, 151, 169, 194, 195, 206, 207, 208, 210, 211, 212, 213, 230, 239, 130, 50, 54, 83, 144, 144, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 20, 21, 22, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 66, 67, 68, 69, 70, 71, 73, 74, 77, 81, 82, 83, 84, 95, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 112, 121, 122, 145, 149, 150, 211, 212, 225, 32, 33, 34, 35, 48, 49, 50, 54, 145, 146, 147, 208, 128, 89, 133, 143, 169, 211, 213, 133, 123, 124, 133, 234, 237, 238, 239, 172, 174, 21, 22, 29, 30, 31, 45, 137, 143, 169, 189, 211, 213, 230, 95, 96, 111, 136, 151, 157, 164, 166, 228, 229, 157, 157, 122, 157, 122, 155, 159, 160, 133, 52, 146, 123, 235, 239, 132, 114, 151, 169, 151, 144, 89, 128, 138, 139, 133, 95, 136, 154, 166, 228, 239, 166, 227, 228, 239, 142, 169, 211, 213, 52, 53, 55, 145, 209, 134, 151, 151, 234, 238, 39, 40, 41, 42, 43, 36, 37, 28, 94, 191, 98, 118, 89, 95, 140, 98, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 83, 84, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 85, 116, 119, 85, 116, 26, 114, 196, 58, 61, 87, 87, 155, 159, 196, 133, 1, 102, 214, 237, 181, 226, 182, 85, 116, 233, 118, 8, 204, 239, 13, 185, 237, 98, 85, 116, 119, 185, 234, 17, 199, 124, 133, 133, 235, 85, 116, 119, 25, 151, 151, 88, 118, 165, 239, 118, 165, 117, 157, 136, 157, 166, 194, 239, 90, 157, 161, 52, 64, 65, 131, 122, 153, 114, 128, 85, 116, 138, 117, 117, 170, 151, 235, 120, 118, 123, 236, 118, 236, 118, 236, 115, 236, 85, 116, 119, 130, 133, 133, 133, 133, 130, 133, 133, 192, 193, 95, 134, 151, 166, 167, 168, 138, 142, 118, 134, 151, 168, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 50, 51, 54, 149, 231, 232, 50, 51, 54, 149, 231, 154, 50, 54, 231, 231, 198, 197, 152, 151, 179, 237, 215, 178, 128, 133, 50, 52, 53, 54, 55, 95, 96, 122, 216, 217, 218, 219, 220, 221, 222, 223, 183, 148, 151, 166, 202, 239, 15, 188, 239, 128, 13, 151, 50, 50, 54, 154, 128, 199, 95, 166, 200, 10, 27, 186, 237, 186, 50, 231, 50, 54, 231, 154, 176, 118, 165, 151, 95, 151, 164, 228, 95, 151, 229, 117, 235, 118, 85, 116, 235, 117, 95, 151, 158, 162, 164, 228, 146, 171, 151, 128, 115, 117, 117, 235, 95, 151, 50, 50, 54, 154, 76, 103, 190, 239, 190, 151, 118, 117, 100, 87, 155, 159, 87, 87, 155, 156, 159, 239, 120, 156, 159, 156, 159, 190, 190, 151, 237, 133, 128, 10, 235, 98, 50, 50, 217, 128, 237, 118, 224, 239, 118, 224, 118, 224, 145, 146, 118, 88, 203, 239, 128, 9, 205, 239, 14, 187, 188, 120, 188, 10, 151, 118, 185, 173, 175, 120, 133, 151, 118, 165, 151, 117, 136, 194, 231, 231, 117, 151, 118, 163, 117, 118, 165, 133, 115, 151, 120, 103, 189, 128, 128, 95, 151, 151, 151, 151, 151, 87, 128, 128, 180, 237, 10, 117, 151, 235, 204, 218, 221, 222, 223, 50, 220, 222, 184, 143, 169, 211, 213, 185, 128, 10, 133, 10, 10, 95, 128, 128, 128, 186, 165, 95, 165, 235, 165, 95, 166, 228, 117, 95, 117, 235, 103, 10, 115, 151, 151, 10, 115, 128, 117, 188, 118, 224, 224, 224, 216, 85, 116, 119, 128, 185, 151, 188, 199, 201, 10, 10, 177, 151, 117, 151, 118, 165, 118, 165, 151, 10, 205, 222, 128, 50, 50, 54, 154, 204, 128, 128, 165, 165, 95, 228, 95, 165, 10, 224, 204, 120, 187, 10, 151, 118, 165, 151, 188, 165, 95, 165, 205, 151, 10, 165 }; #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) # define YYSIZE_T __SIZE_TYPE__ #endif #if ! defined (YYSIZE_T) && defined (size_t) # define YYSIZE_T size_t #endif #if ! defined (YYSIZE_T) # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif #endif #if ! defined (YYSIZE_T) # define YYSIZE_T unsigned int #endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up");\ YYERROR; \ } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Compute the default location (before the actions are run). */ #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ ((Current).first_line = (Rhs)[1].first_line, \ (Current).first_column = (Rhs)[1].first_column, \ (Current).last_line = (Rhs)[N].last_line, \ (Current).last_column = (Rhs)[N].last_column) #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (&yylval, YYLEX_PARAM) #else # define YYLEX yylex (&yylval) #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) # define YYDSYMPRINT(Args) \ do { \ if (yydebug) \ yysymprint Args; \ } while (0) # define YYDSYMPRINTF(Title, Token, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yysymprint (stderr, \ Token, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yy_stack_print (short int *bottom, short int *top) #else static void yy_stack_print (bottom, top) short int *bottom; short int *top; #endif { YYFPRINTF (stderr, "Stack now"); for (/* Nothing. */; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yy_reduce_print (int yyrule) #else static void yy_reduce_print (yyrule) int yyrule; #endif { int yyi; unsigned int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", yyrule - 1, yylno); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (Rule); \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YYDSYMPRINT(Args) # define YYDSYMPRINTF(Title, Token, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #if defined (YYMAXDEPTH) && YYMAXDEPTH == 0 # undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined (__GLIBC__) && defined (_STRING_H) # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T # if defined (__STDC__) || defined (__cplusplus) yystrlen (const char *yystr) # else yystrlen (yystr) const char *yystr; # endif { register const char *yys = yystr; while (*yys++ != '\0') continue; return yys - yystr - 1; } # endif # endif # ifndef yystpcpy # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * # if defined (__STDC__) || defined (__cplusplus) yystpcpy (char *yydest, const char *yysrc) # else yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; # endif { register char *yyd = yydest; register const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif #endif /* !YYERROR_VERBOSE */ #if YYDEBUG /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) #else static void yysymprint (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE *yyvaluep; #endif { /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; if (yytype < YYNTOKENS) { YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); # ifdef YYPRINT YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # endif } else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); switch (yytype) { default: break; } YYFPRINTF (yyoutput, ")"); } #endif /* ! YYDEBUG */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yydestruct (int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yytype, yyvaluep) int yytype; YYSTYPE *yyvaluep; #endif { /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) int yyparse (void *YYPARSE_PARAM); # else int yyparse (); # endif #else /* ! YYPARSE_PARAM */ #if defined (__STDC__) || defined (__cplusplus) int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) int yyparse (void *YYPARSE_PARAM) # else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; # endif #else /* ! YYPARSE_PARAM */ #if defined (__STDC__) || defined (__cplusplus) int yyparse (void) #else int yyparse () #endif #endif { /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; register int yystate; register int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ short int yyssa[YYINITDEPTH]; short int *yyss = yyssa; register short int *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; #define YYPOPSTACK (yyvsp--, yyssp--) YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; /* When reducing, the number of symbols on the RHS of the reduced rule. */ int yylen; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; short int *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyoverflowlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyoverflowlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { short int *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyoverflowlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. */ /* Read a 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 == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: #line 475 "ripper.y" { VALUE tmp; lex_state = EXPR_BEG; tmp = rb_ivar_get(parser->value, rb_intern("@_topclass")); if (tmp == rb_cObject) class_nest = 0; else class_nest = 1; ;} break; case 3: #line 485 "ripper.y" { parser->result = yyvsp[0].val; ;} break; case 4: #line 490 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 8: #line 498 "ripper.y" { yyval.val = yyvsp[0].val; ;} break; case 9: #line 502 "ripper.y" {lex_state = EXPR_FNAME;;} break; case 10: #line 503 "ripper.y" { if (in_def || in_single) yyerror("alias within method"); yyval.val = dispatch2(alias, yyvsp[-2].val, yyvsp[0].val); ;} break; case 11: #line 509 "ripper.y" { if (in_def || in_single) yyerror("alias within method"); yyval.val = dispatch2(alias, yyvsp[-1].val, yyvsp[0].val); ;} break; case 12: #line 515 "ripper.y" { if (in_def || in_single) yyerror("alias within method"); yyval.val = dispatch2(alias, yyvsp[-1].val, yyvsp[0].val); ;} break; case 13: #line 521 "ripper.y" { yyerror("can't make alias for the number variables"); yyval.val = Qnil; ;} break; case 14: #line 526 "ripper.y" { if (in_def || in_single) yyerror("undef within method"); yyval.val = dispatch1(undef, yyvsp[0].val); ;} break; case 15: #line 532 "ripper.y" { yyval.val = dispatch2(if_mod, yyvsp[-2].val, yyvsp[0].val); ;} break; case 16: #line 536 "ripper.y" { yyval.val = dispatch2(unless_mod, yyvsp[-2].val, yyvsp[0].val); ;} break; case 17: #line 540 "ripper.y" { yyval.val = dispatch2(while_mod, yyvsp[-2].val, yyvsp[0].val); ;} break; case 18: #line 544 "ripper.y" { yyval.val = dispatch2(until_mod, yyvsp[-2].val, yyvsp[0].val); ;} break; case 19: #line 548 "ripper.y" { yyval.val = dispatch2(rescue_mod, yyvsp[-2].val, yyvsp[0].val); ;} break; case 20: #line 552 "ripper.y" { if (in_def || in_single) { yyerror("BEGIN in method"); } ;} break; case 21: #line 558 "ripper.y" { yyval.val = dispatch1(BEGIN, yyvsp[-1].val); ;} break; case 22: #line 562 "ripper.y" { if (compile_for_eval && (in_def || in_single)) { yyerror("END in method; use at_exit"); } yyval.val = dispatch1(END, yyvsp[-1].val); ;} break; case 23: #line 570 "ripper.y" { yyval.val = dispatch2(assign, yyvsp[-2].val, yyvsp[0].val); ;} break; case 24: #line 574 "ripper.y" { yyvsp[0].val = dispatch2(argadd_value, Qnil, yyvsp[0].val); yyval.val = dispatch2(massign, yyvsp[-2].val, yyvsp[0].val); ;} break; case 25: #line 579 "ripper.y" { yyvsp[-2].val = dispatch2(lhsadd_value, Qnil, yyvsp[-2].val); yyval.val = dispatch2(massign, yyvsp[-2].val, yyvsp[0].val); ;} break; case 26: #line 584 "ripper.y" { yyval.val = dispatch2(massign, yyvsp[-2].val, yyvsp[0].val); ;} break; case 28: #line 590 "ripper.y" { if (!compile_for_eval && !in_def && !in_single) yyerror("return appeared outside of method"); yyval.val = dispatch1(return, yyvsp[0].val); ;} break; case 29: #line 596 "ripper.y" { yyval.val = dispatch1(break, yyvsp[0].val); ;} break; case 30: #line 600 "ripper.y" { yyval.val = dispatch1(next, yyvsp[0].val); ;} break; case 32: #line 605 "ripper.y" { yyval.val = dispatch2(and, yyvsp[-2].val, yyvsp[0].val); ;} break; case 33: #line 609 "ripper.y" { yyval.val = dispatch2(or, yyvsp[-2].val, yyvsp[0].val); ;} break; case 34: #line 613 "ripper.y" { yyval.val = dispatch1(not, yyvsp[0].val); ;} break; case 35: #line 617 "ripper.y" { yyval.val = dispatch1(notop, yyvsp[0].val); ;} break; case 40: #line 627 "ripper.y" { yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 41: #line 631 "ripper.y" { yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 42: #line 636 "ripper.y" { yyval.val = dispatch2(fcall, yyvsp[-1].val, yyvsp[0].val); ;} break; case 43: #line 640 "ripper.y" { yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 44: #line 644 "ripper.y" { yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 45: #line 648 "ripper.y" { if (!compile_for_eval && !in_def && !in_single) yyerror("super called outside of method"); yyval.val = dispatch1(super, yyvsp[0].val); ;} break; case 46: #line 654 "ripper.y" { yyval.val = dispatch1(yield, yyvsp[0].val); ;} break; case 48: #line 660 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 50: #line 666 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 52: #line 672 "ripper.y" { yyval.val = dispatch2(mlhs_add, yyvsp[-1].val, yyvsp[0].val); ;} break; case 53: #line 676 "ripper.y" { yyval.val = dispatch2(mlhs_add_star, yyvsp[-2].val, yyvsp[0].val); ;} break; case 54: #line 680 "ripper.y" { yyval.val = dispatch1(mlhs_star, yyvsp[-1].val); ;} break; case 55: #line 684 "ripper.y" { yyval.val = dispatch1(mlhs_add_star, yyvsp[0].val); ;} break; case 56: #line 688 "ripper.y" { yyval.val = dispatch0(mlhs_star); ;} break; case 58: #line 694 "ripper.y" { yyval.val = dispatch1(mlhs_paren, yyvsp[-1].val); /* $$ = $2; */ ;} break; case 59: #line 700 "ripper.y" { yyval.val = dispatch1(mlhs_start, yyvsp[-1].val); ;} break; case 60: #line 704 "ripper.y" { yyval.val = dispatch2(mlhs_add, yyvsp[-2].val, yyvsp[-1].val); ;} break; case 61: #line 709 "ripper.y" { yyval.val = assignable(yyvsp[0].val, Qnil); ;} break; case 62: #line 713 "ripper.y" { yyval.val = dispatch2(mlhs_aset, yyvsp[-3].val, yyvsp[-1].val); ;} break; case 63: #line 717 "ripper.y" { yyval.val = dispatch2(mlhs_attrset_dot, yyvsp[-2].val, yyvsp[0].val); ;} break; case 64: #line 721 "ripper.y" { yyval.val = dispatch2(mlhs_attrset_colon, yyvsp[-2].val, yyvsp[0].val); ;} break; case 65: #line 725 "ripper.y" { yyval.val = dispatch2(mlhs_attrset_dot, yyvsp[-2].val, yyvsp[0].val); ;} break; case 66: #line 729 "ripper.y" { yyval.val = rb_backref_error(yyvsp[0].val); ;} break; case 67: #line 734 "ripper.y" { yyval.val = assignable(yyvsp[0].val, Qnil); ;} break; case 68: #line 738 "ripper.y" { yyval.val = dispatch2(lhs_aset, yyvsp[-3].val, yyvsp[-1].val); ;} break; case 69: #line 742 "ripper.y" { yyval.val = dispatch2(lhs_attrset_dot, yyvsp[-2].val, yyvsp[0].val); ;} break; case 70: #line 746 "ripper.y" { yyval.val = dispatch2(lhs_attrset_colon, yyvsp[-2].val, yyvsp[0].val); ;} break; case 71: #line 750 "ripper.y" { yyval.val = dispatch2(lhs_attrset_dot, yyvsp[-2].val, yyvsp[0].val); ;} break; case 72: #line 754 "ripper.y" { yyval.val = rb_backref_error(yyvsp[0].val); ;} break; case 73: #line 759 "ripper.y" { yyerror("class/module name must be CONSTANT"); ;} break; case 78: #line 768 "ripper.y" { lex_state = EXPR_END; yyval.val = yyvsp[0].val; ;} break; case 79: #line 773 "ripper.y" { lex_state = EXPR_END; yyval.val = yyvsp[0].id; ;} break; case 82: #line 782 "ripper.y" { yyval.val = dispatch1(list_start, yyvsp[0].val); ;} break; case 83: #line 785 "ripper.y" {lex_state = EXPR_FNAME;;} break; case 84: #line 786 "ripper.y" { yyval.val = dispatch2(list_add, yyvsp[-3].val, yyvsp[0].val); ;} break; case 85: #line 790 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 86: #line 791 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 87: #line 792 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 88: #line 793 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 89: #line 794 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 90: #line 795 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 91: #line 796 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 92: #line 797 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 93: #line 798 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 94: #line 799 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 95: #line 800 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 96: #line 801 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 97: #line 802 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 98: #line 803 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 99: #line 804 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 100: #line 805 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 101: #line 806 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 102: #line 807 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 103: #line 808 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 104: #line 809 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 105: #line 810 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 106: #line 811 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 107: #line 812 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 108: #line 813 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 109: #line 814 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 110: #line 815 "ripper.y" { yyval.val = yyvsp[0].val ;} break; case 152: #line 826 "ripper.y" { yyval.val = dispatch2(assign, yyvsp[-2].val, yyvsp[0].val); ;} break; case 153: #line 829 "ripper.y" {yyval.val = assignable(yyvsp[-1].val, Qnil);;} break; case 154: #line 830 "ripper.y" { yyval.val = dispatch3(opassign, yyvsp[-3].val, yyvsp[-2].val, yyvsp[0].val) ;} break; case 155: #line 834 "ripper.y" { yyval.val = dispatch4(opaset, yyvsp[-5].val, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 156: #line 838 "ripper.y" { yyval.val = dispatch4(opcallassign, yyvsp[-4].val, yyvsp[-2].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 157: #line 842 "ripper.y" { yyval.val = dispatch4(opcallassign, yyvsp[-4].val, yyvsp[-2].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 158: #line 846 "ripper.y" { yyval.val = dispatch4(opcallassign, yyvsp[-4].val, yyvsp[-2].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 159: #line 850 "ripper.y" { yyval.val = rb_backref_error(yyvsp[-2].val); ;} break; case 160: #line 854 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym(".."), yyvsp[0].val); ;} break; case 161: #line 858 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("..."), yyvsp[0].val); ;} break; case 162: #line 862 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('+'), yyvsp[0].val); ;} break; case 163: #line 866 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('-'), yyvsp[0].val); ;} break; case 164: #line 870 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('*'), yyvsp[0].val); ;} break; case 165: #line 874 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('/'), yyvsp[0].val); ;} break; case 166: #line 878 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('%'), yyvsp[0].val); ;} break; case 167: #line 882 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("**"), yyvsp[0].val); ;} break; case 168: #line 886 "ripper.y" { yyval.val = dispatch2(unary, rip_tok2sym("+@"), yyvsp[0].val); ;} break; case 169: #line 890 "ripper.y" { yyval.val = dispatch2(unary, rip_tok2sym("-@"), yyvsp[0].val); ;} break; case 170: #line 894 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('|'), yyvsp[0].val); ;} break; case 171: #line 898 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('^'), yyvsp[0].val); ;} break; case 172: #line 902 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('&'), yyvsp[0].val); ;} break; case 173: #line 906 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("<=>"), yyvsp[0].val); ;} break; case 174: #line 910 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('>'), yyvsp[0].val); ;} break; case 175: #line 914 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym(">="), yyvsp[0].val); ;} break; case 176: #line 918 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, ID2SYM('<'), yyvsp[0].val); ;} break; case 177: #line 922 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("<="), yyvsp[0].val); ;} break; case 178: #line 926 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("=="), yyvsp[0].val); ;} break; case 179: #line 930 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("==="), yyvsp[0].val); ;} break; case 180: #line 934 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("!="), yyvsp[0].val); ;} break; case 181: #line 938 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("=~"), yyvsp[0].val); ;} break; case 182: #line 942 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("!~"), yyvsp[0].val); ;} break; case 183: #line 946 "ripper.y" { yyval.val = dispatch2(unary, ID2SYM('!'), yyvsp[0].val); ;} break; case 184: #line 950 "ripper.y" { yyval.val = dispatch2(unary, ID2SYM('~'), yyvsp[0].val); ;} break; case 185: #line 954 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("<<"), yyvsp[0].val); ;} break; case 186: #line 958 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym(">>"), yyvsp[0].val); ;} break; case 187: #line 962 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("&&"), yyvsp[0].val); ;} break; case 188: #line 966 "ripper.y" { yyval.val = dispatch3(infix, yyvsp[-2].val, rip_tok2sym("||"), yyvsp[0].val); ;} break; case 189: #line 969 "ripper.y" {in_defined = 1;;} break; case 190: #line 970 "ripper.y" { in_defined = 0; yyval.val = dispatch1(defined, yyvsp[0].val); ;} break; case 191: #line 975 "ripper.y" { yyval.val = dispatch3(condexpr, yyvsp[-4].val, yyvsp[-2].val, yyvsp[0].val); ;} break; case 194: #line 982 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 195: #line 986 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 196: #line 990 "ripper.y" { value_expr(yyvsp[-1].val); yyval.val = dispatch2(argadd, yyvsp[-4].val, yyvsp[-1].val); ;} break; case 197: #line 995 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 198: #line 999 "ripper.y" { yyval.val = dispatch0(argvoid); yyval.val = dispatch1(argadd_star, yyvsp[-1].val); value_expr(yyvsp[-1].val); ;} break; case 199: #line 1006 "ripper.y" { yyval.val = Qnil ;} break; case 200: #line 1010 "ripper.y" { yyval.val = yyvsp[-2].val; ;} break; case 201: #line 1014 "ripper.y" { yyval.val = yyvsp[-2].val; ;} break; case 202: #line 1018 "ripper.y" { yyval.val = dispatch2(argadd, yyvsp[-4].val, yyvsp[-2].val); ;} break; case 205: #line 1026 "ripper.y" { yyval.val = dispatch2(argadd_value, Qnil, yyvsp[0].val); ;} break; case 206: #line 1030 "ripper.y" { if (!NIL_P(yyvsp[0].val)) yyval.val = dispatch2(argadd_block, yyvsp[-1].val, yyvsp[0].val); ;} break; case 207: #line 1034 "ripper.y" { value_expr(yyvsp[-1].val); yyval.val = dispatch2(argadd_star, yyvsp[-4].val, yyvsp[-1].val); if (!NIL_P(yyvsp[0].val)) yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 208: #line 1040 "ripper.y" { yyval.val = dispatch2(argadd_assocs, Qnil, yyvsp[-1].val); if (!NIL_P(yyvsp[0].val)) yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 209: #line 1045 "ripper.y" { value_expr(yyvsp[-1].val); yyval.val = dispatch2(argadd_assocs, Qnil, yyvsp[-4].val); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); if (!NIL_P(yyvsp[0].val)) yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 210: #line 1052 "ripper.y" { yyval.val = dispatch2(argadd_assocs, yyvsp[-3].val, yyvsp[-1].val); if (!NIL_P(yyvsp[0].val)) yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 211: #line 1057 "ripper.y" { value_expr(yyvsp[-1].val); yyval.val = dispatch2(argadd_assocs, yyvsp[-6].val, yyvsp[-4].val); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); if (!NIL_P(yyvsp[0].val)) yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 212: #line 1064 "ripper.y" { value_expr(yyvsp[-1].val); yyval.val = dispatch2(argadd_star, Qnil, yyvsp[-1].val); if (!NIL_P(yyvsp[0].val)) yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 213: #line 1070 "ripper.y" { yyval.val = dispatch2(argadd_block, Qnil, yyvsp[0].val); ;} break; case 214: #line 1075 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[-3].val); yyval.val = dispatch2(argadd_args, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 215: #line 1082 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[-4].val); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 216: #line 1089 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[-6].val); yyval.val = dispatch2(argadd_args, yyval.val, yyvsp[-4].val); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 217: #line 1097 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd_assocs, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 218: #line 1103 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd_assocs, yyval.val, yyvsp[-4].val); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 219: #line 1110 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[-3].val); yyval.val = dispatch2(argadd_assocs, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 220: #line 1117 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[-5].val); yyval.val = dispatch2(argadd_args, yyval.val, yyvsp[-3].val); yyval.val = dispatch2(argadd_assocs, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 221: #line 1125 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[-6].val); yyval.val = dispatch2(argadd_assocs, yyval.val, yyvsp[-4].val); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 222: #line 1133 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[-8].val); yyval.val = dispatch2(argadd_args, yyval.val, yyvsp[-6].val); yyval.val = dispatch2(argadd_assocs, yyval.val, yyvsp[-4].val); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 223: #line 1142 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 224: #line 1148 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 225: #line 1153 "ripper.y" { yyval.num = cmdarg_stack; CMDARG_PUSH(1); ;} break; case 226: #line 1158 "ripper.y" { /* CMDARG_POP() */ cmdarg_stack = yyvsp[-1].num; yyval.val = yyvsp[0].val; ;} break; case 228: #line 1165 "ripper.y" {lex_state = EXPR_ENDARG;;} break; case 229: #line 1166 "ripper.y" { rb_warning("%s (...) interpreted as method call", rb_id2name(SYM2ID(yyvsp[-2].val))); yyval.val = Qnil; ;} break; case 230: #line 1171 "ripper.y" {lex_state = EXPR_ENDARG;;} break; case 231: #line 1172 "ripper.y" { CMDARG_POP(); rb_warning("%s (...) interpreted as method call", rb_id2name(SYM2ID(yyvsp[-3].val))); yyval.val = yyvsp[-2].val; ;} break; case 232: #line 1180 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = yyvsp[0].val; ;} break; case 233: #line 1186 "ripper.y" { yyval.val = yyvsp[0].val; ;} break; case 235: #line 1192 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd_value, yyval.val, yyvsp[0].val); ;} break; case 236: #line 1198 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch2(argadd_value, yyvsp[-2].val, yyvsp[0].val); ;} break; case 237: #line 1204 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch2(argadd_value, Qnil, yyvsp[0].val); ;} break; case 239: #line 1211 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch2(argadd_value, yyvsp[-2].val, yyvsp[0].val); ;} break; case 240: #line 1216 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch2(argadd_star, yyvsp[-3].val, yyvsp[0].val); ;} break; case 241: #line 1221 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch2(argadd_star, Qnil, yyvsp[0].val); ;} break; case 249: #line 1239 "ripper.y" { yyval.val = dispatch2(varcall, yyvsp[0].val, Qnil); ;} break; case 250: #line 1248 "ripper.y" { yyval.val = dispatch4(begin_block, yyvsp[-4].val, yyvsp[-3].val, yyvsp[-2].val, yyvsp[-1].val); /* if (NIL_P($3) && NIL_P($4) && NIL_P($5)) { $$ = dispatch1(block, $2); } else { if (NIL_P($3) && !NIL_P($4)) rb_warn("else without rescue is useless"); $$ = dispatch4(begin, $2, $3, $4, $5); } fixpos($$, $2); */ ;} break; case 251: #line 1262 "ripper.y" {lex_state = EXPR_ENDARG;;} break; case 252: #line 1263 "ripper.y" { rb_warning("%s (...) interpreted as grouped expression", rb_id2name(SYM2ID(yyvsp[-3].val))); yyval.val = yyvsp[-2].val; ;} break; case 253: #line 1269 "ripper.y" { yyval.val = dispatch1(paren, yyvsp[-1].val); ;} break; case 254: #line 1273 "ripper.y" { value_expr(yyvsp[-2].val); yyval.val = dispatch2(const_get, yyvsp[-2].val, yyvsp[0].val); ;} break; case 255: #line 1278 "ripper.y" { yyval.val = dispatch1(toplevel_const_get, yyvsp[0].val); ;} break; case 256: #line 1282 "ripper.y" { value_expr(yyvsp[-3].val); yyval.val = dispatch2(aref, yyvsp[-3].val, yyvsp[-1].val); ;} break; case 257: #line 1287 "ripper.y" { yyval.val = dispatch1(new_array, yyvsp[-1].val); ;} break; case 258: #line 1291 "ripper.y" { yyval.val = dispatch1(new_hash, yyvsp[-1].val); ;} break; case 259: #line 1295 "ripper.y" { if (!compile_for_eval && !in_def && !in_single) yyerror("return appeared outside of method"); yyval.val = dispatch0(argstart); yyval.val = dispatch1(return, yyval.val); ;} break; case 260: #line 1302 "ripper.y" { value_expr(yyvsp[-1].val); yyval.val = dispatch1(yield, yyvsp[-1].val); ;} break; case 261: #line 1307 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch1(yield, yyval.val); ;} break; case 262: #line 1312 "ripper.y" { yyval.val = dispatch1(yield, Qnil); ;} break; case 263: #line 1315 "ripper.y" {in_defined = 1;;} break; case 264: #line 1316 "ripper.y" { in_defined = 0; yyval.val = dispatch1(defined, yyvsp[-1].val); ;} break; case 265: #line 1321 "ripper.y" { yyvsp[-1].val = dispatch2(fcall, yyvsp[-1].val, Qnil); yyval.val = dispatch2(blockcall, yyvsp[-1].val, yyvsp[0].val); ;} break; case 267: #line 1327 "ripper.y" { /* if ($1 && nd_type($1) == NODE_BLOCK_PASS) { rb_compile_error("both block arg and actual block given"); } */ yyval.val = dispatch2(blockcall, yyvsp[-1].val, yyvsp[0].val); fixpos(yyval.val, yyvsp[-1].val); ;} break; case 268: #line 1340 "ripper.y" { value_expr(yyvsp[-4].val); yyval.val = dispatch3(if, cond(yyvsp[-4].val), yyvsp[-2].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-4].val); ;} break; case 269: #line 1349 "ripper.y" { value_expr(yyvsp[-4].val); yyval.val = dispatch3(unless, cond(yyvsp[-4].val), yyvsp[-2].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-4].val); ;} break; case 270: #line 1354 "ripper.y" {COND_PUSH(1);;} break; case 271: #line 1354 "ripper.y" {COND_POP();;} break; case 272: #line 1357 "ripper.y" { value_expr(yyvsp[-4].val); yyval.val = dispatch2(while, cond(yyvsp[-4].val), yyvsp[-1].val); fixpos(yyval.val, yyvsp[-4].val); ;} break; case 273: #line 1362 "ripper.y" {COND_PUSH(1);;} break; case 274: #line 1362 "ripper.y" {COND_POP();;} break; case 275: #line 1365 "ripper.y" { value_expr(yyvsp[-4].val); yyval.val = dispatch2(until, cond(yyvsp[-4].val), yyvsp[-1].val); fixpos(yyval.val, yyvsp[-4].val); ;} break; case 276: #line 1373 "ripper.y" { value_expr(yyvsp[-3].val); yyval.val = dispatch2(case, yyvsp[-3].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-3].val); ;} break; case 277: #line 1379 "ripper.y" { yyval.val = dispatch2(case, Qnil, yyvsp[-1].val); ;} break; case 278: #line 1382 "ripper.y" {COND_PUSH(1);;} break; case 279: #line 1382 "ripper.y" {COND_POP();;} break; case 280: #line 1385 "ripper.y" { value_expr(yyvsp[-4].val); yyval.val = dispatch3(for, yyvsp[-7].val, yyvsp[-4].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-7].val); ;} break; case 281: #line 1391 "ripper.y" { if (in_def || in_single) yyerror("class definition in method body"); class_nest++; local_push(); yyval.num = ruby_sourceline; ;} break; case 282: #line 1400 "ripper.y" { yyval.val = dispatch5(class, yyvsp[-5].val, yyvsp[-4].val, yyvsp[-1].val, yyvsp[-3].val, yyvsp[0].val ); /* nd_set_line($$, $4); */ dispatch2(set_line, yyval.val, INT2NUM(yyvsp[-2].num)); local_pop(); class_nest--; ;} break; case 283: #line 1408 "ripper.y" { yyval.num = in_def; in_def = 0; ;} break; case 284: #line 1413 "ripper.y" { yyval.num = in_single; in_single = 0; class_nest++; local_push(); ;} break; case 285: #line 1421 "ripper.y" { yyval.val = dispatch4(sclass, yyvsp[-7].val, yyvsp[-5].val, yyvsp[-1].val, yyvsp[0].val ); fixpos(yyval.val, yyvsp[-5].val); local_pop(); class_nest--; in_def = yyvsp[-4].num; in_single = yyvsp[-2].num; ;} break; case 286: #line 1430 "ripper.y" { if (in_def || in_single) yyerror("module definition in method body"); class_nest++; local_push(); yyval.num = ruby_sourceline; ;} break; case 287: #line 1439 "ripper.y" { yyval.val = dispatch4(module, yyvsp[-4].val, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val ); /* nd_set_line($$, $3); */ dispatch1(set_line, INT2NUM(yyvsp[-2].num)); local_pop(); class_nest--; ;} break; case 288: #line 1447 "ripper.y" { if (in_def || in_single) yyerror("nested method definition"); yyval.id = cur_mid; cur_mid = yyvsp[0].val; in_def++; local_push(); ;} break; case 289: #line 1461 "ripper.y" { yyval.val = dispatch2(rescue, yyvsp[-4].val, yyvsp[-3].val); yyval.val = dispatch2(rescue_else, yyval.val, yyvsp[-2].val); yyval.val = dispatch2(ensure, yyval.val, yyvsp[-1].val); /* if (!NIL_P($6)) $5 = dispatch3(rescue, $5, $6, $7); else if (!NIL_P($7)) { rb_warn("else without rescue is useless"); $5 = block_append($5, $7); } if ($8) $5 = NEW_ENSURE($5, $8); */ yyval.val = dispatch6(def, yyvsp[-8].val, yyvsp[-7].val, yyvsp[-5].val, yyval.val, yyvsp[-3].val, yyvsp[0].val ); /* / * NOEX_PRIVATE for toplevel * / $$ = NEW_DEFN($2, $4, $5, class_nest?NOEX_PUBLIC:NOEX_PRIVATE); if (is_attrset_id($2)) $$->nd_noex = NOEX_PUBLIC; */ fixpos(yyval.val, yyvsp[-5].val); local_pop(); in_def--; cur_mid = yyvsp[-6].id; ;} break; case 290: #line 1485 "ripper.y" {lex_state = EXPR_FNAME;;} break; case 291: #line 1486 "ripper.y" { value_expr(yyvsp[-3].val); in_single++; local_push(); lex_state = EXPR_END; /* force for args */ ;} break; case 292: #line 1498 "ripper.y" { if (!NIL_P(yyvsp[-3].val) || !NIL_P(yyvsp[-2].val) || !NIL_P(yyvsp[-1].val)) { yyvsp[-4].val = dispatch4(rescue, yyvsp[-4].val, yyvsp[-3].val, yyvsp[-2].val, yyvsp[-1].val); } /* if ($9) $8 = NEW_RESCUE($8, $9, $10); else if ($10) { rb_warn("else without rescue is useless"); $8 = block_append($8, $10); } if ($11) $8 = NEW_ENSURE($8, $11); */ yyval.val = dispatch6(sdef, yyvsp[-11].val, yyvsp[-10].val, yyvsp[-7].val, yyvsp[-5].val, yyvsp[-4].val, yyvsp[0].val ); fixpos(yyval.val, yyvsp[-10].val); local_pop(); in_single--; ;} break; case 293: #line 1517 "ripper.y" { yyval.val = dispatch1(break, Qnil); ;} break; case 294: #line 1521 "ripper.y" { yyval.val = dispatch1(next, Qnil); ;} break; case 295: #line 1525 "ripper.y" { yyval.val = dispatch0(redo); ;} break; case 296: #line 1529 "ripper.y" { yyval.val = dispatch0(retry); ;} break; case 303: #line 1544 "ripper.y" { value_expr(yyvsp[-3].val); yyval.val = dispatch3(elsif, cond(yyvsp[-3].val), yyvsp[-1].val, yyvsp[0].val); fixpos(yyval.val, yyvsp[-3].val); ;} break; case 305: #line 1552 "ripper.y" { yyval.val = dispatch1(else, yyvsp[0].val); ;} break; case 309: #line 1561 "ripper.y" { yyval.val = dispatch1(blockvar, Qnil); ;} break; case 310: #line 1565 "ripper.y" { yyval.val = dispatch1(blockvar, Qnil); ;} break; case 311: #line 1569 "ripper.y" { yyval.val = dispatch1(blockvar, yyvsp[-1].val); ;} break; case 312: #line 1574 "ripper.y" { dispatch0(begin_do); ;} break; case 313: #line 1580 "ripper.y" { yyval.val = dispatch2(block, yyvsp[-2].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-2].val?yyvsp[-2].val:yyvsp[-1].val); dispatch0(end_do); ;} break; case 314: #line 1585 "ripper.y" {yyval.val = dispatch0(begin_brace);;} break; case 315: #line 1589 "ripper.y" { yyval.val = dispatch2(block, yyvsp[-2].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-2].val?yyvsp[-2].val:yyvsp[-1].val); dispatch0(end_brace); ;} break; case 316: #line 1596 "ripper.y" { /* if ($1 && nd_type($1) == NODE_BLOCK_PASS) { rb_compile_error("both block arg and actual block given"); } $2->nd_iter = $1; $$ = $2; */ yyval.val = dispatch2(blockcall, yyvsp[-1].val, yyvsp[0].val); fixpos(yyval.val, yyvsp[0].val); ;} break; case 317: #line 1608 "ripper.y" { value_expr(yyvsp[-3].val); yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 318: #line 1613 "ripper.y" { value_expr(yyvsp[-3].val); yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 319: #line 1619 "ripper.y" { yyval.val = dispatch2(fcall, yyvsp[-1].val, yyvsp[0].val); fixpos(yyval.val, yyvsp[0].val); ;} break; case 320: #line 1624 "ripper.y" { value_expr(yyvsp[-3].val); yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); fixpos(yyval.val, yyvsp[-3].val); ;} break; case 321: #line 1630 "ripper.y" { value_expr(yyvsp[-3].val); yyval.val = dispatch3(call, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); fixpos(yyval.val, yyvsp[-3].val); ;} break; case 322: #line 1636 "ripper.y" { dispatch3(call, yyvsp[-2].val, yyvsp[0].val, Qnil); ;} break; case 323: #line 1640 "ripper.y" { if (!compile_for_eval && !in_def && !in_single && !in_defined) yyerror("super called outside of method"); yyval.val = dispatch1(super, yyvsp[0].val); ;} break; case 324: #line 1647 "ripper.y" { if (!compile_for_eval && !in_def && !in_single && !in_defined) yyerror("super called outside of method"); yyval.val = dispatch1(super, Qnil); ;} break; case 325: #line 1655 "ripper.y" { dispatch0(begin_brace); ;} break; case 326: #line 1660 "ripper.y" { yyval.val = dispatch2(block, yyvsp[-2].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-1].val); dispatch0(end_brace); ;} break; case 327: #line 1666 "ripper.y" { dispatch0(begin_do); ;} break; case 328: #line 1671 "ripper.y" { yyval.val = dispatch2(block, yyvsp[-2].val, yyvsp[-1].val); fixpos(yyval.val, yyvsp[-1].val); dispatch0(end_do); ;} break; case 329: #line 1680 "ripper.y" { yyval.val = dispatch3(when, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); ;} break; case 331: #line 1686 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch2(argadd_star, yyvsp[-3].val, yyvsp[0].val); ;} break; case 332: #line 1691 "ripper.y" { value_expr(yyvsp[0].val); yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd_star, yyval.val, yyvsp[0].val) ;} break; case 337: #line 1704 "ripper.y" { yyval.val = yyvsp[0].val; ;} break; case 339: #line 1712 "ripper.y" { /* if ($3) { $3 = node_assign($3, NEW_GVAR(rb_intern("$!"))); $5 = block_append($3, $5); } $$ = NEW_RESBODY($2, $5, $6); */ yyval.val = dispatch4(rescue, yyvsp[-4].val, yyvsp[-3].val, yyvsp[-1].val, yyvsp[0].val); fixpos(yyval.val, yyvsp[-4].val?yyvsp[-4].val:yyvsp[-1].val); ;} break; case 342: #line 1727 "ripper.y" { yyval.val = dispatch1(ensure, yyvsp[0].val); /* if ($2) $$ = $2; else / * place holder * / $$ = NEW_NIL(); */ ;} break; case 346: #line 1743 "ripper.y" { /* $$ = NEW_STR($1); */ yyval.val = yyvsp[0].val; ;} break; case 348: #line 1751 "ripper.y" { yyval.val = dispatch2(string_concat, yyvsp[-1].val, yyvsp[0].val); /* if (nd_type($1) == NODE_DSTR) { list_append($1, NEW_STR($2)); } else { rb_str_concat($1->nd_lit, $2); } $$ = $1; */ ;} break; case 349: #line 1764 "ripper.y" { yyval.val = dispatch2(string_add_dstr, yyvsp[-1].val, yyvsp[0].val); /* if (nd_type($1) == NODE_STR) { $$ = NEW_DSTR($1->nd_lit); } else { $$ = $1; } $2->nd_head = NEW_STR($2->nd_lit); nd_set_type($2, NODE_ARRAY); list_concat($$, $2); */ ;} break; case 350: #line 1780 "ripper.y" { lex_state = EXPR_END; yyval.val = dispatch1(symbol, yyvsp[0].val); ;} break; case 362: #line 1798 "ripper.y" {yyval.val = rip_tok2sym("nil");;} break; case 364: #line 1800 "ripper.y" {yyval.val = rip_tok2sym("true");;} break; case 365: #line 1801 "ripper.y" {yyval.val = rip_tok2sym("false");;} break; case 366: #line 1802 "ripper.y" {yyval.val = rip_tok2sym("__FILE__");;} break; case 367: #line 1803 "ripper.y" {yyval.val = rip_tok2sym("__LINE__");;} break; case 368: #line 1806 "ripper.y" { yyval.val = dispatch1(varref, yyvsp[0].val); /* $$ = gettable($1); */ ;} break; case 371: #line 1817 "ripper.y" { yyval.val = Qnil; ;} break; case 372: #line 1821 "ripper.y" { lex_state = EXPR_BEG; ;} break; case 373: #line 1825 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 374: #line 1828 "ripper.y" {yyerrok; yyval.val = Qnil;;} break; case 375: #line 1831 "ripper.y" { lex_state = EXPR_BEG; yyval.val = yyvsp[-2].val; ;} break; case 376: #line 1836 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 377: #line 1841 "ripper.y" { yyval.val = yyvsp[-5].num; yyval.val = dispatch2(argadd_opt, yyval.val, yyvsp[-3].val); yyval.val = dispatch2(argadd_rest, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 378: #line 1848 "ripper.y" { yyval.val = yyvsp[-3].num; yyval.val = dispatch2(argadd_opt, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 379: #line 1854 "ripper.y" { yyval.val = yyvsp[-3].num; yyval.val = dispatch2(argadd_rest, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 380: #line 1860 "ripper.y" { yyval.val = yyvsp[-1].num; yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 381: #line 1865 "ripper.y" { yyval.val = dispatch0(argvoid); yyval.val = dispatch2(argadd_opt, yyval.val, yyvsp[-3].val); yyval.val = dispatch2(argadd_rest, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 382: #line 1872 "ripper.y" { yyval.val = dispatch0(argvoid); yyval.val = dispatch2(argadd_opt, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 383: #line 1878 "ripper.y" { yyval.val = dispatch0(argvoid); yyval.val = dispatch2(argadd_rest, yyval.val, yyvsp[-1].val); yyval.val = dispatch2(argadd_opt, yyval.val, yyvsp[0].val); ;} break; case 384: #line 1884 "ripper.y" { yyval.val = dispatch0(argvoid); yyval.val = dispatch2(argadd_block, yyval.val, yyvsp[0].val); ;} break; case 385: #line 1889 "ripper.y" { yyval.val = dispatch0(argvoid); ;} break; case 386: #line 1894 "ripper.y" { yyerror("formal argument cannot be a constant"); ;} break; case 387: #line 1898 "ripper.y" { yyerror("formal argument cannot be an instance variable"); ;} break; case 388: #line 1902 "ripper.y" { yyerror("formal argument cannot be a global variable"); ;} break; case 389: #line 1906 "ripper.y" { yyerror("formal argument cannot be a class variable"); ;} break; case 390: #line 1910 "ripper.y" { #ifndef RRB_RIPPER if (!is_local_id(SYM2ID(yyvsp[0].val))) yyerror("formal argument must be local variable"); else if (local_id(yyvsp[0].val)) yyerror("duplicate argument name"); #endif local_cnt(yyvsp[0].val); yyval.num = yyvsp[0].val; ;} break; case 391: #line 1922 "ripper.y" { yyval.num = dispatch0(argstart); yyval.num = dispatch2(argadd, yyval.num, yyvsp[0].num) ;} break; case 392: #line 1927 "ripper.y" { yyval.num = dispatch2(argadd, yyvsp[-2].num, yyvsp[0].num); ;} break; case 393: #line 1932 "ripper.y" { #ifndef RRB_RIPPER if (!is_local_id(SYM2ID(yyvsp[-2].val))) yyerror("formal argument must be local variable"); else if (local_id(yyvsp[-2].val)) yyerror("duplicate optional argument name"); #endif yyval.val = assignable(yyvsp[-2].val, yyvsp[0].val); ;} break; case 394: #line 1943 "ripper.y" { yyval.val = dispatch0(argstart); yyval.val = dispatch2(argadd, yyval.val, yyvsp[0].val); ;} break; case 395: #line 1948 "ripper.y" { yyval.val = dispatch2(argadd, yyvsp[-2].val, yyvsp[0].val); ;} break; case 396: #line 1953 "ripper.y" { #ifndef RRB_RIPPER if (!is_local_id(SYM2ID(yyvsp[0].val))) yyerror("rest argument must be local variable"); else if (local_id(yyvsp[0].val)) yyerror("duplicate rest argument name"); #endif yyval.val = local_cnt(yyvsp[0].val); ;} break; case 397: #line 1963 "ripper.y" { yyval.val = Qnil; ;} break; case 398: #line 1968 "ripper.y" { #ifndef RRB_RIPPER if (!is_local_id(SYM2ID(yyvsp[0].val))) yyerror("block argument must be local variable"); else if (local_id(yyvsp[0].val)) yyerror("duplicate block argument name"); #endif yyval.val = local_cnt(yyvsp[0].val); ;} break; case 399: #line 1979 "ripper.y" { yyval.val = yyvsp[0].val; ;} break; case 402: #line 1995 "ripper.y" {lex_state = EXPR_BEG;;} break; case 403: #line 1996 "ripper.y" { yyval.val = yyvsp[-2].val; /* switch (nd_type($3)) { 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; } $$ = $3; */ ;} break; case 404: #line 2017 "ripper.y" { yyval.val = dispatch1(assoc_list, Qnil); ;} break; case 405: #line 2021 "ripper.y" { yyval.val = yyvsp[-1].val; ;} break; case 406: #line 2025 "ripper.y" { yyval.val = dispatch1(assoc_list, yyvsp[-1].val); /* if ($1->nd_alen%2 != 0) { yyerror("odd number list for Hash"); } $$ = $1; */ ;} break; case 407: #line 2036 "ripper.y" { yyval.val = dispatch2(assoc_add, Qnil, yyvsp[0].val); ;} break; case 408: #line 2040 "ripper.y" { yyval.val = dispatch2(assoc_add, yyvsp[-2].val, yyvsp[0].val); ;} break; case 409: #line 2045 "ripper.y" { yyval.val = dispatch2(assoc, yyvsp[-2].val, yyvsp[0].val); ;} break; case 425: #line 2070 "ripper.y" { yyval.val = Qnil; ;} break; case 426: #line 2075 "ripper.y" { yyval.val = Qnil; ;} break; case 427: #line 2079 "ripper.y" { yyval.val = Qnil; ;} break; case 428: #line 2083 "ripper.y" { yyval.val = Qnil; ;} break; case 429: #line 2087 "ripper.y" {yyerrok; yyval.val = Qnil;;} break; case 430: #line 2089 "ripper.y" { yyval.val = Qnil; ;} break; case 432: #line 2094 "ripper.y" {yyerrok;;} break; case 433: #line 2097 "ripper.y" { yyval.val = Qnil; ;} break; } /* Line 1010 of yacc.c. */ #line 6167 "ripper.c" yyvsp -= yylen; yyssp -= yylen; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if YYERROR_VERBOSE yyn = yypact[yystate]; if (YYPACT_NINF < yyn && yyn < YYLAST) { YYSIZE_T yysize = 0; int yytype = YYTRANSLATE (yychar); const char* yyprefix; char *yymsg; int yyx; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 0; yyprefix = ", expecting "; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); yycount += 1; if (yycount == 5) { yysize = 0; break; } } yysize += (sizeof ("syntax error, unexpected ") + yystrlen (yytname[yytype])); yymsg = (char *) YYSTACK_ALLOC (yysize); if (yymsg != 0) { char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); yyp = yystpcpy (yyp, yytname[yytype]); if (yycount < 5) { yyprefix = ", expecting "; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { yyp = yystpcpy (yyp, yyprefix); yyp = yystpcpy (yyp, yytname[yyx]); yyprefix = " or "; } } yyerror (yymsg); YYSTACK_FREE (yymsg); } else yyerror ("syntax error; also virtual memory exhausted"); } else #endif /* YYERROR_VERBOSE */ yyerror ("syntax error"); } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* If at end of input, pop the error token, then the rest of the stack, then return failure. */ if (yychar == YYEOF) for (;;) { YYPOPSTACK; if (yyssp == yyss) YYABORT; YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); yydestruct (yystos[*yyssp], yyvsp); } } else { YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); yydestruct (yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: #ifdef __GNUC__ /* Pacify GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (0) goto yyerrorlab; #endif yyvsp -= yylen; yyssp -= yylen; yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); yydestruct (yystos[yystate], yyvsp); YYPOPSTACK; yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } if (yyn == YYFINAL) YYACCEPT; YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #ifndef yyoverflow /*----------------------------------------------. | yyoverflowlab -- parser overflow comes here. | `----------------------------------------------*/ yyoverflowlab: yyerror ("parser stack overflow"); yyresult = 2; /* Fall through. */ #endif yyreturn: #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif return yyresult; } #line 2100 "ripper.y" #undef parser /* reset */ #define yylval (*((YYSTYPE*)(parser->tmp_yylval))) #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))) #ifndef RIPPER static char *tokenbuf = NULL; static int tokidx, toksiz = 0; #else # define tokenbuf (parser->token_buffer) # define tokidx (parser->token_index) # define toksiz (parser->token_size) #endif #ifndef RIPPER static NODE *str_extend(); #else static int rip_str_extend _((struct ruby_parser*, VALUE, char)); #define str_extend(l,t) rip_str_extend(parser,l,t) #endif #define LEAVE_BS 1 #ifndef RIPPER 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; #else # define lex_input (parser->src) # define lex_lastline (parser->last_line) # define lex_pbeg (parser->ptr_beg) # define lex_p (parser->ptr) # define lex_pend (parser->ptr_end) # define lex_gets (parser->gets) #endif #ifdef RIPPER static int rip_yyerror(parser, msg) struct ruby_parser *parser; char *msg; { rb_raise(rb_eArgError, "\nRipper::%s:%d: %s", RSTRING(parser->source_file)->ptr, parser->source_line, msg); return 0; } #else 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; } #endif #ifndef RIPPER static int heredoc_end; static int command_start = Qtrue; int ruby_in_compile = 0; int ruby__end__seen; static VALUE ruby_debug_lines; #else # define heredoc_end (parser->heredocument_end) # define command_start (parser->rip_command_start) # define ruby_in_compile (parser->parsing) # define ruby__end__seen (parser->__end__seen) /* we do not use debug_lines */ #endif #ifndef RIPPER static int lex_gets_ptr; #else # define lex_gets_ptr (parser->gets_ptr) #endif static VALUE rip_get_line_String(parser) struct ruby_parser *parser; { VALUE s = parser->src; 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 rip_get_line_File(parser) struct ruby_parser *parser; { return rb_io_gets(parser->src); } static ID rip_id_gets; static VALUE rip_get_line_gets(parser) struct ruby_parser *parser; { return rb_funcall(parser->src, rip_id_gets, 0); } static VALUE rip_lex_getline(parser) struct ruby_parser *parser; { #ifdef DEBUG fprintf(stderr, "@ %d\n", parser->source_line + 1); #endif return (*lex_gets)(parser); } static void ripper_mark(ptr) void *ptr; { struct ruby_parser *p = (struct ruby_parser *)ptr; rb_gc_mark(p->source_file); rb_gc_mark(p->src); rb_gc_mark(p->last_line); } static void ripper_free(ptr) void *ptr; { struct ruby_parser *p = (struct ruby_parser *)ptr; if (p->token_buffer) free(p->token_buffer); free(p); } static VALUE ripper_s_new(argc, argv, klass) int argc; VALUE *argv; VALUE klass; { struct ruby_parser *p; VALUE self; p = ALLOC_N(struct ruby_parser, 1); MEMZERO(p, struct ruby_parser, 1); self = Data_Wrap_Struct(klass, ripper_mark, ripper_free, p); p->value = self; rb_obj_call_init(self, argc, argv); return self; } static VALUE rip_do_parse _((VALUE)); static VALUE rip_ensure _((VALUE)); #if RUBY_VERSION_CODE < 170 extern VALUE rb_thread_pass _((void)); #else extern void rb_thread_schedule _((void)); #endif struct rip_arg { struct ruby_parser *parser; int argc; VALUE *argv; }; static VALUE ripper_parse(argc, argv, self) int argc; VALUE *argv; VALUE self; { struct ruby_parser *parser; struct rip_arg arg; Data_Get_Struct(self, struct ruby_parser, parser); while (parser->parsing) { #if RUBY_VERSION_CODE < 170 rb_thread_pass(); #else rb_thread_schedule(); #endif } parser->parsing = 1; arg.parser = parser; arg.argc = argc; arg.argv = argv; return rb_ensure(rip_do_parse, (VALUE)(&arg), rip_ensure, (VALUE)parser); } static VALUE rip_do_parse(v) VALUE v; { struct rip_arg *arg = (struct rip_arg*)v; struct ruby_parser *parser = arg->parser; VALUE src, fname, lineno; rb_scan_args(arg->argc, arg->argv, "12", &src, &fname, &lineno); switch (TYPE(src)) { case T_STRING: parser->gets = rip_get_line_String; break; case T_FILE: parser->gets = rip_get_line_File; break; default: if (! rb_respond_to(src, rip_id_gets)) { rb_raise(rb_eTypeError, "arg must be a String/File or respond to gets"); } parser->gets = rip_get_line_gets; break; } parser->src = src; parser->source_file = NIL_P(fname) ? rb_str_new2("(ripper)") : fname; parser->source_line = NIL_P(lineno) ? 0 : NUM2INT(lineno) - 1; parser->ptr_beg = 0; parser->ptr = 0; parser->ptr_end = 0; parser->result = Qnil; parser->__end__seen = 0; parser->heredocument_end = 0; parser->condition_stack = 0; parser->commandarg_stack = 0; parser->rip_command_start = 1; parser->class_nesting = 0; parser->in_method = 0; parser->in_singleton = 0; parser->in_defined_arg = 0; parser->current_method_id = Qnil; parser->last_token_id = Qnil; rip_yyparse((void*)parser); return parser->result; } static VALUE rip_ensure(v) VALUE v; { struct ruby_parser *parser = (struct ruby_parser*)v; parser->parsing = 0; return Qnil; } static VALUE ripper_pointer(self) VALUE self; { struct ruby_parser *parser; Data_Get_Struct(self, struct ruby_parser, parser); if (!parser->parsing) { return Qnil; } else { return INT2FIX(parser->ptr - parser->ptr_beg); } } static VALUE rrb_ripper_lineno(self) VALUE self; { struct ruby_parser *parser; Data_Get_Struct(self, struct ruby_parser, parser); if (!parser->parsing) { return Qnil; } else { return INT2FIX(parser->source_line); } } #include "dispids.c" void Init_rrb_ripper() { VALUE Ripper; VALUE rrb; rrb = rb_const_get(rb_cObject, rb_intern("RRB")); Ripper = rb_define_class_under(rrb, "Ripper", rb_cObject); rb_define_const(Ripper, "Version", rb_str_new2(RIPPER_VERSION)); rb_define_singleton_method(Ripper, "new", ripper_s_new, -1); rb_define_method(Ripper, "parse", ripper_parse, -1); rb_define_method(Ripper, "pointer", ripper_pointer, 0); rb_define_method(Ripper, "lineno", rrb_ripper_lineno, 0); rip_id_gets = rb_intern("gets"); rip_init_dispatch_ids(); /* ensure existing in symbol table */ rb_intern("||"); rb_intern("&&"); } static VALUE rip_id2sym(id) ID id; { char *name; char buf[8]; if (id <= 256) { buf[0] = id; buf[1] = '\0'; return ID2SYM(rb_intern(buf)); } switch (id) { case tOROP: name = "||"; break; case tANDOP: name = "&&"; break; default: name = rb_id2name(id); break; } if (!name) { rb_bug("cannot convert system ID to string: %ld", (unsigned long)id); } return ID2SYM(rb_intern(name)); } static VALUE rip_tok2sym(s) char *s; { return ID2SYM(rb_intern(s)); } static inline int rip_nextc(parser) struct ruby_parser *parser; { 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 rip_pushback(parser, c) struct ruby_parser *parser; 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 void rip_newtok(parser) struct ruby_parser *parser; { tokidx = 0; if (!tokenbuf) { toksiz = 60; tokenbuf = ALLOC_N(char, 60); } if (toksiz > 4096) { toksiz = 60; REALLOC_N(tokenbuf, char, 60); } } static void rip_tokadd(parser, c) struct ruby_parser *parser; char c; { tokenbuf[tokidx++] = c; if (tokidx >= toksiz) { toksiz += 60; REALLOC_N(tokenbuf, char, toksiz); } } static int rip_read_escape(parser) struct ruby_parser *parser; { 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 rip_tokadd_escape(parser, term) struct ruby_parser *parser; int term; { 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(term); } else if (c == -1) goto eof; tokadd(c); return 0; eof: case -1: yyerror("Invalid escape character syntax"); return -1; default: if (c != '/' || c != term) tokadd('\\'); tokadd(c); } return 0; } static VALUE rb_str_new_from_char(c) int c; { char buf[8]; buf[0] = (char)c; buf[1] = '\0'; return rb_str_new2(buf); } static int rip_parse_regx(parser, context, term, paren) struct ruby_parser *parser; VALUE context; int term, paren; { register int c; char kcode = 0; int once = 0; int nest = 0; int options = 0; int re_start = ruby_sourceline; newtok(); while ((c = nextc()) != -1) { if (c == term && nest == 0) { goto regx_end; } switch (c) { case '#': if (context == Qundef) { context = dispatch0(new_regexp); } if (! str_extend(context, term)) return 0; continue; case '\\': if (tokadd_escape(term) < 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; #if RUBY_VERSION_CODE < 170 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; #endif 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 (context != Qundef) { dispatch2(set_line, context, INT2NUM(re_start)); if (toklen() > 0) { s_dispatch2(add_string, context, rb_str_new(tok(),toklen())); } if (once) dispatch1(is_once_regexp, context); else dispatch1(is_dyna_regexp, context); dispatch2(regexp_options, context, INT2NUM(options | kcode)); s_dispatch2(regexp_end, context, rb_str_new_from_char(term)); return tDREGEXP; } else { yylval.val = context = s_dispatch1(new_regexp, rb_str_new(tok(), toklen())); dispatch2(regexp_options, context, INT2NUM(options | kcode)); s_dispatch2(regexp_end, context, rb_str_new_from_char(term)); return tREGEXP; } } tokadd(c); } unterminated: ruby_sourceline = re_start; rb_compile_error("unterminated regexp meets end of file"); return 0; } static int rip_parse_string(parser, context, func, term, paren) struct ruby_parser *parser; VALUE context; int func, term, paren; { int c; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(context, 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; } if (context == Qundef) { context = dispatch0(new_string); } 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 == '#') { if (context == Qundef) { context = dispatch0(new_string); } if (! str_extend(context, term)) 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 (context != Qundef) { dispatch2(set_line, context, INT2NUM(strstart)); if (toklen() > 0) { s_dispatch2(add_string, context, rb_str_new(tok(), toklen())); } s_dispatch2(string_end, context, rb_str_new_from_char(term)); yylval.val = context; if (func == '`') { dispatch1(is_xstring, context); return tDXSTRING; } else { return tDSTRING; } } else { yylval.val = context = dispatch0(new_string); s_dispatch2(add_string, context, rb_str_new(tok(), toklen())); s_dispatch2(string_end, context, rb_str_new_from_char(term)); if (func == '`') { dispatch1(is_xstring, context); return tXSTRING; } else { return tSTRING; } } } static int rip_parse_qstring(parser, context, term, paren) struct ruby_parser *parser; VALUE context; 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()); s_dispatch2(add_string, context, yylval.val); s_dispatch2(string_end, context, rb_str_new_from_char(term)); lex_state = EXPR_END; return tSTRING; } static int rip_parse_quotedwords(parser, context, term, paren) struct ruby_parser *parser; VALUE context; int term, paren; { int strstart; int c; int nest = 0; strstart = ruby_sourceline; newtok(); while (c = nextc(),ISSPACE(c)) tokadd(c); /* skip preceding spaces */ pushback(c); tokfix(); if (toklen() > 0) { s_dispatch2(add_space, context, rb_str_new(tok(), toklen())); } newtok(); while ((c = nextc()) != term || nest > 0) { if (c == -1) { ruby_sourceline = strstart; rb_compile_error("unterminated quoted words 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)) { tokfix(); s_dispatch2(add_word, context, rb_str_new(tok(), toklen())); newtok(); tokadd(c); while (c = nextc(),ISSPACE(c)) tokadd(c); /* skip continuous spaces */ pushback(c); tokfix(); s_dispatch2(word_space, context, rb_str_new(tok(), toklen())); newtok(); continue; } if (paren) { if (c == paren) nest++; if (c == term && nest-- == 0) break; } tokadd(c); } tokfix(); if (toklen() > 0) { s_dispatch2(add_word, context, rb_str_new(tok(), toklen())); } s_dispatch2(words_end, context, rb_str_new_from_char(term)); yylval.val = context; lex_state = EXPR_END; return tDSTRING; } static int rip_parse_here_document(parser, term, indent) struct ruby_parser *parser; int term, indent; { int c; volatile VALUE eos; volatile VALUE line = 0; char *p; VALUE context; VALUE str; VALUE save_last_line; int save_line_offset; int save_lineno = ruby_sourceline; char buf[8]; char *bp; int orig_term; /* get context */ switch (term) { case '"': case '\'': case '`': orig_term = term; break; default: orig_term = 0; break; } bp = buf; *bp++ = '<'; *bp++ = '<'; if (indent) *bp++ = '-'; if (orig_term) *bp++ = orig_term; *bp++ = '\0'; context = s_dispatch1(new_here_document, rb_str_new2(buf)); /* get EOS */ 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(); save_last_line = lex_lastline; save_line_offset = lex_p - lex_pbeg; eos = rb_str_new(tok(), toklen()); s_dispatch2(here_document_eos, context, eos); if (orig_term) { s_dispatch2(here_document_eos_term, context, rb_str_new_from_char(term)); } /* search EOS with adding contents */ str = rb_str_new(0,0); for (;;) { /* check if this line is EOS */ lex_lastline = line = lex_getline(); if (NIL_P(line)) { error: ruby_sourceline = save_lineno; rb_compile_error("can't find string \"%s\" anywhere before EOF", RSTRING(eos)->ptr); return 0; } ruby_sourceline++; p = RSTRING(line)->ptr; if (indent) { while (*p && (*p == ' ' || *p == '\t')) { p++; } } if (strncmp(RSTRING(eos)->ptr, p, RSTRING(eos)->len) == 0) { if (p[RSTRING(eos)->len] == '\n' || p[RSTRING(eos)->len] == '\r') break; if (RSTRING(eos)->len == RSTRING(line)->len) break; } /* rewind pointer to the begging of line */ 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: /* add line as content */ if (! parse_string(context, term, '\n', '\n')) goto error; dispatch2(add_string, context, rb_str_new("\n", 1)); if (lex_p != lex_pend) goto retry; } dispatch1(here_document_end, context); lex_state = EXPR_END; /* resume to original (start of here-document) line */ lex_lastline = save_last_line; lex_pbeg = RSTRING(save_last_line)->ptr; lex_pend = lex_pbeg + RSTRING(save_last_line)->len; lex_p = lex_pbeg + save_line_offset; heredoc_end = ruby_sourceline; ruby_sourceline = save_lineno; if (context != Qundef) { /* always true ... is this good? */ dispatch2(set_line, context, INT2NUM(save_lineno + 1)); yylval.val = context; } switch (term) { case '\0': case '\'': case '"': /* still moving ... */ if (context != Qundef) return tDSTRING; yylval.val = context; /* yylval.val = str; */ return tSTRING; case '`': dispatch1(is_xstring, context); if (context != Qundef) return tDXSTRING; yylval.val = context; /* yylval.val = str; */ return tXSTRING; } return 0; } #define BRACE_STR_EXTEND_TYPE 0 #define NO_BRACE_STR_EXTEND_TYPE 1 /* read one #{...} #$gvar #@ivar in string/regexp */ static int rip_str_extend(parser, context, term) struct ruby_parser *parser; VALUE context; char term; { int c; int brace = -1; int nest; int type; c = nextc(); switch (c) { case '$': case '@': case '{': break; default: tokadd('#'); pushback(c); return 1; } /* flush buffer (is normal string/regexp) */ if (toklen() > 0) { s_dispatch2(add_string, context, rb_str_new(tok(), toklen())); newtok(); } switch (c) { case '$': type = NO_BRACE_STR_EXTEND_TYPE; tokadd('$'); c = nextc(); if (c == -1) return 0; switch (c) { case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': /* backref */ 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: /* special gvar */ tokadd(c); goto fetch_id; default: if (c == term) { s_dispatch2(add_string, context, rb_str_new2("#$")); pushback(c); newtok(); return 0; } switch (c) { /* cannot check one switch; might be term */ case '\"': case '/': case '\'': case '`': goto refetch; } if (!is_identchar(c)) { yyerror("bad global variable in string"); newtok(); return 0; } } /* normal gvar */ 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 '@': /* ivar & cvar */ type = NO_BRACE_STR_EXTEND_TYPE; tokadd(c); c = nextc(); if (c == '@') { /* cvar */ 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 = '}'; type = BRACE_STR_EXTEND_TYPE; nest = 0; do { loop_again: c = nextc(); switch (c) { case -1: if (nest > 0) { yyerror("bad substitution in string"); newtok(); return 1; } return 0; case '}': if (c == brace) { if (nest == 0) break; nest--; } tokadd(c); goto loop_again; case '\\': c = nextc(); if (c == -1) return 0; if (c == term) { tokadd(c); } else { tokadd('\\'); tokadd(c); } break; case '{': if (brace != -1) nest++; case '\"': case '/': case '`': if (c == term) { /* unterminated #{...} block: add as string */ pushback(c); s_dispatch2(add_string, context, rb_str_new2("#")); rb_warning("bad substitution in string"); tokfix(); s_dispatch2(add_string, context, rb_str_new(tok(), toklen())); newtok(); return 1; } default: tokadd(c); break; } } while (c != brace); } fetch_id: tokfix(); if( type == BRACE_STR_EXTEND_TYPE ){ s_dispatch2(eval_string_begin, context, rb_str_new2("#{")); s_dispatch2(add_eval_string, context, rb_str_new(tok(), toklen())); s_dispatch2(eval_string_end, context, rb_str_new2("}")); }else{ s_dispatch2(eval_string_begin, context, rb_str_new2("#")); s_dispatch2(add_eval_string, context, rb_str_new(tok(), toklen())); s_dispatch2(eval_string_end, context, rb_str_new2("")); } newtok(); return 1; } #include "resword.c" #define rb_reserved_word rip_reserved_word #define arg_ambiguous() dispatch0(ambiguous_argument); #if !defined(strtod) && !defined(HAVE_STDLIB_H) double strtod (); #endif #define IS_ARG() (lex_state == EXPR_ARG || lex_state == EXPR_CMDARG) static int rip_yylex0 _((struct ruby_parser *)); static int rip_yylex(lval, parser_v) YYSTYPE *lval; void *parser_v; { int t; struct ruby_parser *parser = (struct ruby_parser*)parser_v; parser->tmp_yylval = (void*)lval; t = rip_yylex0(parser); return t; } static int rip_yylex0(parser) struct ruby_parser *parser; { #define last_id (parser->last_token_id) register int c; int space_seen = 0; int cmd_state; VALUE context; cmd_state = command_start; command_start = Qfalse; 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++; newtok(); tokadd(c); while ((c = nextc())) { switch (c) { case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ space_seen++; tokadd(c); break; default: pushback(c); tokfix(); s_dispatch1(space, rb_str_new(tok(), toklen())); goto retry; } } tokfix(); s_dispatch1(space, rb_str_new(tok(), toklen())); return 0; case '#': /* it's a comment */ s_dispatch1(comment_start, rb_str_new2("#")); newtok(); while ((c = nextc()) != '\n') { if (c == -1) { tokfix(); s_dispatch1(comment, rb_str_new(tok(), toklen())); return 0; } tokadd(c); } tokfix(); s_dispatch1(comment, rb_str_new(tok(), toklen())); /* fall through */ case '\n': switch (lex_state) { case EXPR_BEG: case EXPR_FNAME: case EXPR_DOT: s_dispatch1(ignored_newline, rb_str_new2("\n")); goto retry; default: break; } command_start = Qtrue; lex_state = EXPR_BEG; s_dispatch1(newline, rb_str_new2("\n")); return '\n'; case '*': if ((c = nextc()) == '*') { lex_state = EXPR_BEG; if (nextc() == '=') { yylval.val = rip_id2sym(tPOW); s_dispatch1(POW_ASSIGN, rb_str_new2("**=")); return tOP_ASGN; } pushback(c); yylval.val = op_dispatch1(POW, rb_str_new2("**")); return tPOW; } if (c == '=') { yylval.val = ID2SYM('*'); lex_state = EXPR_BEG; s_dispatch1(MUL_ASSIGN, rb_str_new2("*=")); return tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)){ rb_warning("`*' interpreted as argument prefix"); yylval.val = op_dispatch1(STAR, rb_str_new2("*")); c = tSTAR; } else if (lex_state == EXPR_BEG || lex_state == EXPR_MID) { yylval.val = op_dispatch1(STAR, rb_str_new2("*")); c = tSTAR; } else { yylval.val = op_dispatch1(MUL, rb_str_new2("*")); c = '*'; } lex_state = EXPR_BEG; return c; case '!': lex_state = EXPR_BEG; if ((c = nextc()) == '=') { s_dispatch1(NEQ, rb_str_new2("!=")); return tNEQ; } if (c == '~') { s_dispatch1(NMATCH, rb_str_new2("!~")); return tNMATCH; } pushback(c); s_dispatch1(BANG, rb_str_new2("!")); return '!'; case '=': if (lex_p == lex_pbeg + 1) { /* skip embedded rd document */ if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) { s_dispatch1(embdoc_begin, rb_str_new2("=begin")); s_dispatch1(embdoc_begin_label, rb_str_new(lex_pbeg + 6, lex_pend - lex_pbeg - 6)); for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { s_dispatch1(embdoc, rb_str_new(lex_pbeg, lex_pend - lex_pbeg)); continue; } if (strncmp(lex_p, "end", 3) == 0 && (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) { s_dispatch1(embdoc_end, rb_str_new2("=end")); s_dispatch1(embdoc_end_label, rb_str_new(lex_pbeg + 4, lex_pend - lex_pbeg - 4)); break; } s_dispatch1(embdoc, rb_str_new(lex_pbeg, lex_pend - lex_pbeg)); } lex_p = lex_pend; goto retry; } } lex_state = EXPR_BEG; if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { yylval.val = op_dispatch1(EQQ, rb_str_new2("===")); return tEQQ; } pushback(c); yylval.val = op_dispatch1(EQ, rb_str_new2("==")); return tEQ; } if (c == '~') { yylval.val = op_dispatch1(MATCH, rb_str_new2("=~")); return tMATCH; } else if (c == '>') { s_dispatch1(ASSOC, rb_str_new2("=>")); return tASSOC; } pushback(c); s_dispatch1(ASSIGN, rb_str_new2("=")); return '='; case '<': c = nextc(); if (c == '<' && lex_state != EXPR_END && lex_state != EXPR_ENDARG && lex_state != EXPR_CLASS && (!IS_ARG() || space_seen)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && (strchr("\"'`", c2) || is_identchar(c2))) { return parse_here_document(c2, indent); } pushback(c2); } lex_state = EXPR_BEG; if (c == '=') { if ((c = nextc()) == '>') { yylval.val = op_dispatch1(CMP, rb_str_new2("<=>")); return tCMP; } pushback(c); yylval.val = op_dispatch1(CMP, rb_str_new2("<=")); return tLEQ; } if (c == '<') { if (nextc() == '=') { yylval.val = rip_id2sym(tLSHFT); s_dispatch1(CMP_ASSIGN, rb_str_new2("<<=")); return tOP_ASGN; } pushback(c); yylval.val = op_dispatch1(LSHIFT, rb_str_new2("<<")); return tLSHFT; } pushback(c); yylval.val = op_dispatch1(LT, rb_str_new2("<")); return '<'; case '>': lex_state = EXPR_BEG; if ((c = nextc()) == '=') { yylval.val = op_dispatch1(GEQ, rb_str_new2(">=")); return tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yylval.val = rip_id2sym(tRSHFT); s_dispatch1(RSHIFT_ASSIGN, rb_str_new2(">>=")); return tOP_ASGN; } pushback(c); yylval.val = op_dispatch1(RSHIFT, rb_str_new2(">>")); return tRSHFT; } pushback(c); yylval.val = op_dispatch1(GT, rb_str_new2(">")); return '>'; case '"': context = s_dispatch1(new_string, rb_str_new2("\"")); return parse_string(context,c,c,c); case '`': if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) { yylval.val = op_dispatch1(BACKQUOTE, rb_str_new2("`")); return c; } context = s_dispatch1(new_xstring, rb_str_new2("`")); return parse_string(context,c,c,c); case '\'': context = s_dispatch1(new_string, rb_str_new2("'")); return parse_qstring(context,c,0); case '?': if (lex_state == EXPR_END || lex_state == EXPR_ENDARG) { lex_state = EXPR_BEG; s_dispatch1(Q, rb_str_new2("?")); return '?'; } c = nextc(); if (c == -1) { rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)){ pushback(c); lex_state = EXPR_BEG; s_dispatch1(Q, rb_str_new2("?")); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yylval.val = INT2FIX(c); lex_state = EXPR_END; s_dispatch1(CHAR, rb_str_new2("?")); /* FIXME */ return tINTEGER; case '&': if ((c = nextc()) == '&') { lex_state = EXPR_BEG; if ((c = nextc()) == '=') { yylval.val = ID2SYM(tANDOP); s_dispatch1(ANDAND_ASSIGN, rb_str_new2("&&=")); return tOP_ASGN; } pushback(c); s_dispatch1(ANDAND, rb_str_new2("&&")); return tANDOP; } else if (c == '=') { yylval.val = ID2SYM('&'); lex_state = EXPR_BEG; s_dispatch1(AND_ASSIGN, rb_str_new2("&=")); return tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)){ rb_warning("`&' interpreted as argument prefix"); s_dispatch1(AMPER, rb_str_new2("&")); c = tAMPER; } else if (lex_state == EXPR_BEG || lex_state == EXPR_MID) { s_dispatch1(AMPER, rb_str_new2("&")); c = tAMPER; } else { yylval.val = op_dispatch1(AND, rb_str_new2("&")); c = '&'; } lex_state = EXPR_BEG; return c; case '|': lex_state = EXPR_BEG; if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yylval.val = rip_id2sym(tOROP); s_dispatch1(OROR_ASSIGN, rb_str_new2("||=")); return tOP_ASGN; } pushback(c); s_dispatch1(OROR, rb_str_new2("||")); return tOROP; } else if (c == '=') { yylval.val = ID2SYM('|'); s_dispatch1(OR_ASSIGN, rb_str_new2("|=")); return tOP_ASGN; } pushback(c); yylval.val = op_dispatch1(OR, rb_str_new2("|")); return '|'; case '+': c = nextc(); if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) { if (c == '@') { yylval.val = op_dispatch1(UPLUS, rb_str_new2("+@")); return tUPLUS; } pushback(c); yylval.val = op_dispatch1(PLUS, rb_str_new2("+")); return '+'; } if (c == '=') { lex_state = EXPR_BEG; yylval.val = ID2SYM('+'); s_dispatch1(PLUS_ASSIGN, rb_str_new2("+=")); return tOP_ASGN; } if (lex_state == EXPR_BEG || lex_state == EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) arg_ambiguous(); lex_state = EXPR_BEG; pushback(c); if (ISDIGIT(c)) { c = '+'; s_dispatch1(UPLUS, rb_str_new2("+@")); goto start_num; } s_dispatch1(UPLUS, rb_str_new2("+@")); return tUPLUS; } lex_state = EXPR_BEG; pushback(c); yylval.val = op_dispatch1(PLUS, rb_str_new2("+")); return '+'; case '-': c = nextc(); if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) { if (c == '@') { yylval.val = op_dispatch1(UMINUS, rb_str_new2("-@")); return tUMINUS; } pushback(c); yylval.val = op_dispatch1(MINUS, rb_str_new2("-")); return '-'; } if (c == '=') { lex_state = EXPR_BEG; yylval.val = ID2SYM('-'); s_dispatch1(MINUS_ASSIGN, rb_str_new2("-=")); return tOP_ASGN; } if (lex_state == EXPR_BEG || lex_state == EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) arg_ambiguous(); lex_state = EXPR_BEG; pushback(c); if (ISDIGIT(c)) { c = '-'; s_dispatch1(UMINUS, rb_str_new2("-@")); goto start_num; } s_dispatch1(UMINUS, rb_str_new2("-@")); return tUMINUS; } lex_state = EXPR_BEG; pushback(c); yylval.val = op_dispatch1(MINUS, rb_str_new2("-")); return '-'; case '.': lex_state = EXPR_BEG; if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { s_dispatch1(DOT3, rb_str_new2("...")); return tDOT3; } pushback(c); s_dispatch1(DOT2, rb_str_new2("..")); return tDOT2; } pushback(c); if (!ISDIGIT(c)) { lex_state = EXPR_DOT; s_dispatch1(DOT, rb_str_new2(".")); 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); s_dispatch1(INTEGER_16, rb_str_new2(tok())); 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); s_dispatch1(INTEGER_2, rb_str_new2(tok())); 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); s_dispatch1(INTEGER_8, rb_str_new2(tok())); return tINTEGER; } if (c > '7' && c <= '9') { yyerror("Illegal octal digit"); } else if (c == '.') { tokadd('0'); } else { pushback(c); yylval.val = INT2FIX(0); s_dispatch1(INTEGER_10, rb_str_new2("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); s_dispatch1(INTEGER_10, rb_str_new2(tok())); return tINTEGER; } case ']': case '}': case ')': COND_LEXPOP(); CMDARG_LEXPOP(); lex_state = EXPR_END; switch (c) { case ']': s_dispatch1(RBRACKET, rb_str_new2("]")); break; case '}': s_dispatch1(RBRACE, rb_str_new2("}")); break; case ')': s_dispatch1(RPAREN, rb_str_new2(")")); break; } return c; case ':': c = nextc(); if (c == ':') { if (lex_state == EXPR_BEG || lex_state == EXPR_MID || (IS_ARG() && space_seen)) { lex_state = EXPR_BEG; s_dispatch1(COLON3, rb_str_new2("::")); return tCOLON3; } lex_state = EXPR_DOT; s_dispatch1(COLON2, rb_str_new2("::")); return tCOLON2; } pushback(c); if (lex_state == EXPR_END || lex_state == EXPR_ENDARG || ISSPACE(c)) { lex_state = EXPR_BEG; s_dispatch1(COLON, rb_str_new2(":")); return ':'; } lex_state = EXPR_FNAME; s_dispatch1(SYMBEG, rb_str_new2(":")); return tSYMBEG; case '/': if (lex_state == EXPR_BEG || lex_state == EXPR_MID) { context = s_dispatch1(new_regexp, rb_str_new2("/")); return parse_regx(context, '/', '/'); } if ((c = nextc()) == '=') { lex_state = EXPR_BEG; yylval.val = ID2SYM('/'); s_dispatch1(SLASH_ASSIGN, rb_str_new2("/=")); return tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen) { if (!ISSPACE(c)) { arg_ambiguous(); context = s_dispatch1(new_regexp, rb_str_new2("/")); return parse_regx(context, '/', '/'); } } lex_state = EXPR_BEG; yylval.val = op_dispatch1(SLASH, rb_str_new2("/")); return '/'; case '^': lex_state = EXPR_BEG; if ((c = nextc()) == '=') { yylval.val = ID2SYM('^'); s_dispatch1(HAT_ASSIGN, rb_str_new2("^=")); return tOP_ASGN; } pushback(c); yylval.val = op_dispatch1(HAT, rb_str_new2("^")); return '^'; case ';': s_dispatch1(SEMICOLON, rb_str_new2(";")); command_start = Qtrue; lex_state = EXPR_BEG; return c; /* NOT fall through */ case ',': lex_state = EXPR_BEG; s_dispatch1(COMMA, rb_str_new2(",")); return c; case '~': if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } lex_state = EXPR_BEG; yylval.val = op_dispatch1(TILDE, rb_str_new2("~")); return '~'; case '(': command_start = Qtrue; if (lex_state == EXPR_BEG || lex_state == EXPR_MID) { c = tLPAREN; } else if (space_seen) { if (lex_state == EXPR_CMDARG) { c = tLPAREN_ARG; } else if (lex_state == EXPR_ARG) { c = tLPAREN_ARG; yylval.val = last_id; } } COND_PUSH(0); CMDARG_PUSH(0); lex_state = EXPR_BEG; switch (c) { case tLPAREN: s_dispatch1(LPAREN, rb_str_new2("(")); break; case tLPAREN_ARG: s_dispatch1(LPAREN_ARG, rb_str_new2("(")); break; default: s_dispatch1(LPAREN, rb_str_new2("(")); break; } return c; case '[': if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { yylval.val = op_dispatch1(ASET, rb_str_new2("[]=")); return tASET; } pushback(c); yylval.val = op_dispatch1(AREF, rb_str_new2("[]")); return tAREF; } pushback(c); s_dispatch1(LBRACKET, rb_str_new2("[")); return '['; } else if (lex_state == EXPR_BEG || lex_state == EXPR_MID) { c = tLBRACK; } else if (IS_ARG() && space_seen) { c = tLBRACK; } COND_PUSH(0); CMDARG_PUSH(0); lex_state = EXPR_BEG; s_dispatch1(LBRACKET, rb_str_new2("[")); return c; case '{': if (!IS_ARG()) { if (space_seen && lex_state == EXPR_ENDARG) c = tLBRACE_ARG; if (lex_state != EXPR_END && lex_state != EXPR_ENDARG) c = tLBRACE; } COND_PUSH(0); CMDARG_PUSH(0); lex_state = EXPR_BEG; switch (c) { case tLBRACE_ARG: s_dispatch1(LBRACE_ARG, rb_str_new2("{")); break; case tLBRACE: s_dispatch1(LBRACE, rb_str_new2("{")); break; default: s_dispatch1(LBRACE, rb_str_new2("{")); break; } return c; case '\\': c = nextc(); if (c == '\n') { space_seen = 1; s_dispatch1(escaped_newline, rb_str_new2("\\\n")); goto retry; /* skip \\n */ } pushback(c); s_dispatch1(BACKSLASH, rb_str_new2("\\")); return '\\'; case '%': if (lex_state == EXPR_BEG || lex_state == EXPR_MID) { int term; int paren; #ifdef RIPPER char buf[8]; char *p; int orig_c; #endif c = nextc(); quotation: orig_c = c; 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; #ifdef RIPPER p = buf; *p++ = '%'; if (c == orig_c) *p++ = c; *p++ = paren ? paren : term; *p++ = '\0'; #endif switch (c) { case 'Q': context = s_dispatch1(new_string, rb_str_new2(buf)); return parse_string(context, '"', term, paren); case 'q': context = s_dispatch1(new_string, rb_str_new2(buf)); return parse_qstring(context, term, paren); case 'w': context = s_dispatch1(new_words, rb_str_new2(buf)); return parse_quotedwords(context, term, paren); case 'x': context = s_dispatch1(new_xstring, rb_str_new2(buf)); return parse_string(context, '`', term, paren); case 'r': context = s_dispatch1(new_regexp, rb_str_new2(buf)); return parse_regx(context, term, paren); default: yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yylval.val = ID2SYM('%'); s_dispatch1(PERCENT_ASSIGN, rb_str_new2("%=")); return tOP_ASGN; } if (IS_ARG() && space_seen && !ISSPACE(c)) { goto quotation; } lex_state = EXPR_BEG; pushback(c); yylval.val = op_dispatch1(PERCENT, rb_str_new2("%")); 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(rip_tok2sym("~")); /* 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.val = rip_tok2sym(tok()); s_dispatch1(GVAR, rb_str_new2(tok())); return tGVAR; case '-': tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yylval.val = rip_tok2sym(tok()); /* xxx shouldn't check if valid option variable */ s_dispatch1(GVAR, rb_str_new2(tok())); return tGVAR; case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ { char buf[8]; buf[0] = '$'; buf[1] = c; buf[2] = '\0'; yylval.val = rip_tok2sym(buf); s_dispatch1(BACK_REF, rb_str_new2(buf)); 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.val = rip_tok2sym(tok()); s_dispatch1(NTH_REF, rb_str_new2(tok())); return tNTH_REF; default: if (!is_identchar(c)) { pushback(c); /* s_dispatch1(DOLLER, rb_str_new2("$")); no need? */ return '$'; } /* FALLTHRU ?? */ 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); /* s_dispatch1(AT, rb_str_new2("@")); no need? */ 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 (toklast() == '!' || toklast() == '?') { result = tFID; } else { if (lex_state == EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || (lex_p + 1 < lex_pend && lex_p[1] == '>'))) { result = tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && ISUPPER(tok()[0])) { result = tCONSTANT; } else { result = tIDENTIFIER; } } if (lex_state != EXPR_DOT) { struct kwtable *kw; /* See if it is a reserved word. */ kw = rb_reserved_word(tok(), toklen()); if (kw) { enum lex_state_e state = lex_state; lex_state = kw->state; /* if (state == EXPR_FNAME) { yylval.val = rip_tok2sym(kw->name); } */ yylval.val = s_dispatch1(KEYWORD, rb_str_new2(kw->name)); if (kw->id1 == kDO) { if (COND_P()) return kDO_COND; if (CMDARG_P() && state != EXPR_CMDARG) return kDO_BLOCK; return kDO; } if (state == EXPR_BEG) return kw->id1; else { if (kw->id1 != kw->id2) lex_state = EXPR_BEG; return kw->id2; } } } if (lex_state == EXPR_BEG || lex_state == EXPR_DOT || lex_state == EXPR_ARG || lex_state == EXPR_CMDARG) { if (cmd_state) lex_state = EXPR_CMDARG; else lex_state = EXPR_ARG; } else { lex_state = EXPR_END; } } tokfix(); last_id = yylval.val = rip_tok2sym(tok()); switch (result) { case tIDENTIFIER: last_id = yylval.val = s_dispatch1(IDENTIFIER, rb_str_new2(tok())); break; case tFID: last_id = yylval.val = s_dispatch1(FID, rb_str_new2(tok())); break; case tCVAR: last_id = yylval.val = s_dispatch1(CVAR, rb_str_new2(tok())); break; case tIVAR: last_id = yylval.val = s_dispatch1(IVAR, rb_str_new2(tok())); break; case tGVAR: last_id = yylval.val = s_dispatch1(GVAR, rb_str_new2(tok())); break; case tCONSTANT: last_id = yylval.val = s_dispatch1(CONSTANT, rb_str_new2(tok())); break; } return result; } } #ifndef RIPPER # include "nodeop.c" #endif #ifndef RIPPER # include "lv.c" #endif #ifndef RIPPER # include "optnode.c" #endif #ifndef RIPPER # include "symbol_table.c" #endif #ifndef RIPPER # include "special_local.c" #endif