Class: Ruby18Parser
- Includes:
- RubyParserStuff
- Defined in:
- lib/ruby_parser/ruby18_parser.rb,
lib/ruby_parser/ruby_parser_extras.rb
Direct Known Subclasses
Constant Summary collapse
- Racc_arg =
[ racc_action_table, racc_action_check, racc_action_default, racc_action_pointer, racc_goto_table, racc_goto_check, racc_goto_default, racc_goto_pointer, racc_nt_base, racc_reduce_table, racc_token_table, racc_shift_n, racc_reduce_n, racc_use_result_var ]
- Racc_token_to_s_table =
[ "$end", "error", "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", "tNTH_REF", "tBACK_REF", "tSTRING_CONTENT", "tINTEGER", "tFLOAT", "tREGEXP_END", "tUPLUS", "tUMINUS", "tUMINUS_NUM", "tPOW", "tCMP", "tEQ", "tEQQ", "tNEQ", "tGEQ", "tLEQ", "tANDOP", "tOROP", "tMATCH", "tNMATCH", "tDOT", "tDOT2", "tDOT3", "tAREF", "tASET", "tLSHFT", "tRSHFT", "tCOLON2", "tCOLON3", "tOP_ASGN", "tASSOC", "tLPAREN", "tLPAREN2", "tRPAREN", "tLPAREN_ARG", "tLBRACK", "tRBRACK", "tLBRACE", "tLBRACE_ARG", "tSTAR", "tSTAR2", "tAMPER", "tAMPER2", "tTILDE", "tPERCENT", "tDIVIDE", "tPLUS", "tMINUS", "tLT", "tGT", "tPIPE", "tBANG", "tCARET", "tLCURLY", "tRCURLY", "tBACK_REF2", "tSYMBEG", "tSTRING_BEG", "tXSTRING_BEG", "tREGEXP_BEG", "tWORDS_BEG", "tAWORDS_BEG", "tSTRING_DBEG", "tSTRING_DVAR", "tSTRING_END", "tSTRING", "tSYMBOL", "tNL", "tEH", "tCOLON", "tCOMMA", "tSPACE", "tSEMI", "tLAST_TOKEN", "tEQL", "tLOWEST", "\"[\"", "$start", "program", "compstmt", "bodystmt", "@1", "opt_rescue", "opt_else", "opt_ensure", "stmts", "opt_terms", "none", "stmt", "terms", "fitem", "undef_list", "expr_value", "lhs", "command_call", "mlhs", "var_lhs", "primary_value", "aref_args", "backref", "mrhs", "arg_value", "expr", "@2", "@3", "arg", "command", "block_command", "call_args", "block_call", "operation2", "command_args", "cmd_brace_block", "opt_block_var", "@4", "@5", "operation", "mlhs_basic", "mlhs_entry", "mlhs_head", "mlhs_item", "mlhs_node", "variable", "cname", "cpath", "fname", "op", "reswords", "fsym", "symbol", "dsym", "@6", "opt_nl", "primary", "args", "trailer", "assocs", "paren_args", "opt_paren_args", "opt_block_arg", "block_arg", "call_args2", "open_args", "@7", "@8", "@9", "none_block_pass", "literal", "strings", "xstring", "regexp", "words", "awords", "var_ref", "assoc_list", "brace_block", "method_call", "then", "if_tail", "do", "case_body", "block_var", "superclass", "term", "f_arglist", "singleton", "dot_or_colon", "@10", "@11", "@12", "@13", "@14", "@15", "@16", "@17", "@18", "@19", "@20", "@21", "@22", "@23", "@24", "@25", "@26", "@27", "do_block", "@28", "@29", "operation3", "@30", "@31", "@32", "@33", "@34", "when_args", "cases", "@35", "exc_list", "exc_var", "numeric", "string", "string1", "string_contents", "xstring_contents", "word_list", "word", "string_content", "qword_list", "string_dvar", "@36", "@37", "sym", "@38", "f_args", "f_arg", "f_optarg", "f_rest_arg", "opt_f_block_arg", "f_block_arg", "f_norm_arg", "f_opt", "restarg_mark", "blkarg_mark", "@39", "assoc" ]
- Racc_debug_parser =
false
Constants included from RubyParserStuff
Instance Attribute Summary
Attributes included from RubyParserStuff
#canonicalize_conditions, #comments, #env, #file, #in_def, #in_single, #lexer
Instance Method Summary collapse
-
#_reduce_1(val, _values, result) ⇒ Object
reduce 0 omitted.
- #_reduce_10(val, _values, result) ⇒ Object
- #_reduce_100(val, _values, result) ⇒ Object
-
#_reduce_103(val, _values, result) ⇒ Object
reduce 102 omitted.
-
#_reduce_105(val, _values, result) ⇒ Object
reduce 104 omitted.
- #_reduce_106(val, _values, result) ⇒ Object
- #_reduce_107(val, _values, result) ⇒ Object
- #_reduce_11(val, _values, result) ⇒ Object
- #_reduce_12(val, _values, result) ⇒ Object
- #_reduce_13(val, _values, result) ⇒ Object
- #_reduce_14(val, _values, result) ⇒ Object
- #_reduce_15(val, _values, result) ⇒ Object
- #_reduce_16(val, _values, result) ⇒ Object
- #_reduce_17(val, _values, result) ⇒ Object
-
#_reduce_175(val, _values, result) ⇒ Object
reduce 174 omitted.
- #_reduce_176(val, _values, result) ⇒ Object
- #_reduce_177(val, _values, result) ⇒ Object
- #_reduce_178(val, _values, result) ⇒ Object
- #_reduce_179(val, _values, result) ⇒ Object
- #_reduce_18(val, _values, result) ⇒ Object
- #_reduce_180(val, _values, result) ⇒ Object
- #_reduce_181(val, _values, result) ⇒ Object
- #_reduce_182(val, _values, result) ⇒ Object
- #_reduce_183(val, _values, result) ⇒ Object
- #_reduce_184(val, _values, result) ⇒ Object
- #_reduce_185(val, _values, result) ⇒ Object
- #_reduce_186(val, _values, result) ⇒ Object
- #_reduce_187(val, _values, result) ⇒ Object
- #_reduce_188(val, _values, result) ⇒ Object
- #_reduce_189(val, _values, result) ⇒ Object
- #_reduce_19(val, _values, result) ⇒ Object
- #_reduce_190(val, _values, result) ⇒ Object
- #_reduce_191(val, _values, result) ⇒ Object
- #_reduce_192(val, _values, result) ⇒ Object
- #_reduce_193(val, _values, result) ⇒ Object
- #_reduce_194(val, _values, result) ⇒ Object
- #_reduce_195(val, _values, result) ⇒ Object
- #_reduce_196(val, _values, result) ⇒ Object
- #_reduce_197(val, _values, result) ⇒ Object
- #_reduce_198(val, _values, result) ⇒ Object
- #_reduce_199(val, _values, result) ⇒ Object
- #_reduce_2(val, _values, result) ⇒ Object
- #_reduce_20(val, _values, result) ⇒ Object
- #_reduce_200(val, _values, result) ⇒ Object
- #_reduce_201(val, _values, result) ⇒ Object
- #_reduce_202(val, _values, result) ⇒ Object
- #_reduce_203(val, _values, result) ⇒ Object
- #_reduce_204(val, _values, result) ⇒ Object
- #_reduce_205(val, _values, result) ⇒ Object
- #_reduce_206(val, _values, result) ⇒ Object
- #_reduce_207(val, _values, result) ⇒ Object
- #_reduce_208(val, _values, result) ⇒ Object
- #_reduce_209(val, _values, result) ⇒ Object
- #_reduce_21(val, _values, result) ⇒ Object
- #_reduce_210(val, _values, result) ⇒ Object
- #_reduce_211(val, _values, result) ⇒ Object
- #_reduce_212(val, _values, result) ⇒ Object
- #_reduce_213(val, _values, result) ⇒ Object
- #_reduce_214(val, _values, result) ⇒ Object
- #_reduce_215(val, _values, result) ⇒ Object
- #_reduce_216(val, _values, result) ⇒ Object
- #_reduce_217(val, _values, result) ⇒ Object
-
#_reduce_219(val, _values, result) ⇒ Object
reduce 218 omitted.
- #_reduce_22(val, _values, result) ⇒ Object
-
#_reduce_221(val, _values, result) ⇒ Object
reduce 220 omitted.
- #_reduce_222(val, _values, result) ⇒ Object
- #_reduce_223(val, _values, result) ⇒ Object
- #_reduce_224(val, _values, result) ⇒ Object
- #_reduce_225(val, _values, result) ⇒ Object
- #_reduce_226(val, _values, result) ⇒ Object
- #_reduce_227(val, _values, result) ⇒ Object
- #_reduce_228(val, _values, result) ⇒ Object
- #_reduce_229(val, _values, result) ⇒ Object
- #_reduce_23(val, _values, result) ⇒ Object
-
#_reduce_232(val, _values, result) ⇒ Object
reduce 231 omitted.
- #_reduce_233(val, _values, result) ⇒ Object
- #_reduce_234(val, _values, result) ⇒ Object
- #_reduce_235(val, _values, result) ⇒ Object
- #_reduce_236(val, _values, result) ⇒ Object
- #_reduce_237(val, _values, result) ⇒ Object
- #_reduce_238(val, _values, result) ⇒ Object
- #_reduce_239(val, _values, result) ⇒ Object
- #_reduce_24(val, _values, result) ⇒ Object
-
#_reduce_241(val, _values, result) ⇒ Object
reduce 240 omitted.
- #_reduce_242(val, _values, result) ⇒ Object
- #_reduce_243(val, _values, result) ⇒ Object
- #_reduce_244(val, _values, result) ⇒ Object
- #_reduce_245(val, _values, result) ⇒ Object
- #_reduce_246(val, _values, result) ⇒ Object
- #_reduce_247(val, _values, result) ⇒ Object
- #_reduce_248(val, _values, result) ⇒ Object
- #_reduce_249(val, _values, result) ⇒ Object
- #_reduce_25(val, _values, result) ⇒ Object
- #_reduce_250(val, _values, result) ⇒ Object
- #_reduce_251(val, _values, result) ⇒ Object
-
#_reduce_253(val, _values, result) ⇒ Object
reduce 252 omitted.
- #_reduce_254(val, _values, result) ⇒ Object
-
#_reduce_256(val, _values, result) ⇒ Object
reduce 255 omitted.
- #_reduce_257(val, _values, result) ⇒ Object
- #_reduce_258(val, _values, result) ⇒ Object
- #_reduce_259(val, _values, result) ⇒ Object
- #_reduce_26(val, _values, result) ⇒ Object
- #_reduce_260(val, _values, result) ⇒ Object
- #_reduce_261(val, _values, result) ⇒ Object
-
#_reduce_263(val, _values, result) ⇒ Object
reduce 262 omitted.
- #_reduce_264(val, _values, result) ⇒ Object
- #_reduce_265(val, _values, result) ⇒ Object
- #_reduce_266(val, _values, result) ⇒ Object
- #_reduce_267(val, _values, result) ⇒ Object
- #_reduce_27(val, _values, result) ⇒ Object
-
#_reduce_276(val, _values, result) ⇒ Object
reduce 275 omitted.
- #_reduce_277(val, _values, result) ⇒ Object
- #_reduce_278(val, _values, result) ⇒ Object
- #_reduce_279(val, _values, result) ⇒ Object
- #_reduce_28(val, _values, result) ⇒ Object
- #_reduce_280(val, _values, result) ⇒ Object
- #_reduce_281(val, _values, result) ⇒ Object
- #_reduce_282(val, _values, result) ⇒ Object
- #_reduce_283(val, _values, result) ⇒ Object
- #_reduce_284(val, _values, result) ⇒ Object
- #_reduce_285(val, _values, result) ⇒ Object
- #_reduce_286(val, _values, result) ⇒ Object
- #_reduce_287(val, _values, result) ⇒ Object
- #_reduce_288(val, _values, result) ⇒ Object
- #_reduce_289(val, _values, result) ⇒ Object
- #_reduce_29(val, _values, result) ⇒ Object
- #_reduce_290(val, _values, result) ⇒ Object
- #_reduce_291(val, _values, result) ⇒ Object
- #_reduce_292(val, _values, result) ⇒ Object
-
#_reduce_294(val, _values, result) ⇒ Object
reduce 293 omitted.
- #_reduce_295(val, _values, result) ⇒ Object
- #_reduce_296(val, _values, result) ⇒ Object
- #_reduce_297(val, _values, result) ⇒ Object
- #_reduce_298(val, _values, result) ⇒ Object
- #_reduce_299(val, _values, result) ⇒ Object
- #_reduce_3(val, _values, result) ⇒ Object
- #_reduce_30(val, _values, result) ⇒ Object
- #_reduce_300(val, _values, result) ⇒ Object
- #_reduce_301(val, _values, result) ⇒ Object
- #_reduce_302(val, _values, result) ⇒ Object
- #_reduce_303(val, _values, result) ⇒ Object
- #_reduce_304(val, _values, result) ⇒ Object
- #_reduce_305(val, _values, result) ⇒ Object
- #_reduce_306(val, _values, result) ⇒ Object
- #_reduce_307(val, _values, result) ⇒ Object
- #_reduce_308(val, _values, result) ⇒ Object
- #_reduce_309(val, _values, result) ⇒ Object
- #_reduce_31(val, _values, result) ⇒ Object
- #_reduce_310(val, _values, result) ⇒ Object
- #_reduce_311(val, _values, result) ⇒ Object
- #_reduce_312(val, _values, result) ⇒ Object
- #_reduce_313(val, _values, result) ⇒ Object
- #_reduce_314(val, _values, result) ⇒ Object
- #_reduce_315(val, _values, result) ⇒ Object
- #_reduce_316(val, _values, result) ⇒ Object
- #_reduce_317(val, _values, result) ⇒ Object
- #_reduce_318(val, _values, result) ⇒ Object
- #_reduce_319(val, _values, result) ⇒ Object
- #_reduce_32(val, _values, result) ⇒ Object
- #_reduce_320(val, _values, result) ⇒ Object
- #_reduce_321(val, _values, result) ⇒ Object
- #_reduce_322(val, _values, result) ⇒ Object
- #_reduce_323(val, _values, result) ⇒ Object
- #_reduce_324(val, _values, result) ⇒ Object
- #_reduce_325(val, _values, result) ⇒ Object
- #_reduce_326(val, _values, result) ⇒ Object
- #_reduce_327(val, _values, result) ⇒ Object
- #_reduce_328(val, _values, result) ⇒ Object
- #_reduce_33(val, _values, result) ⇒ Object
-
#_reduce_337(val, _values, result) ⇒ Object
reduce 336 omitted.
-
#_reduce_339(val, _values, result) ⇒ Object
reduce 338 omitted.
-
#_reduce_341(val, _values, result) ⇒ Object
reduce 340 omitted.
-
#_reduce_343(val, _values, result) ⇒ Object
reduce 342 omitted.
- #_reduce_344(val, _values, result) ⇒ Object
- #_reduce_345(val, _values, result) ⇒ Object
- #_reduce_346(val, _values, result) ⇒ Object
- #_reduce_347(val, _values, result) ⇒ Object
- #_reduce_348(val, _values, result) ⇒ Object
- #_reduce_349(val, _values, result) ⇒ Object
- #_reduce_350(val, _values, result) ⇒ Object
- #_reduce_351(val, _values, result) ⇒ Object
- #_reduce_352(val, _values, result) ⇒ Object
- #_reduce_353(val, _values, result) ⇒ Object
- #_reduce_354(val, _values, result) ⇒ Object
- #_reduce_355(val, _values, result) ⇒ Object
- #_reduce_356(val, _values, result) ⇒ Object
- #_reduce_357(val, _values, result) ⇒ Object
- #_reduce_358(val, _values, result) ⇒ Object
- #_reduce_359(val, _values, result) ⇒ Object
-
#_reduce_36(val, _values, result) ⇒ Object
reduce 35 omitted.
- #_reduce_360(val, _values, result) ⇒ Object
- #_reduce_361(val, _values, result) ⇒ Object
- #_reduce_362(val, _values, result) ⇒ Object
- #_reduce_363(val, _values, result) ⇒ Object
- #_reduce_364(val, _values, result) ⇒ Object
- #_reduce_365(val, _values, result) ⇒ Object
- #_reduce_366(val, _values, result) ⇒ Object
-
#_reduce_368(val, _values, result) ⇒ Object
reduce 367 omitted.
- #_reduce_369(val, _values, result) ⇒ Object
- #_reduce_37(val, _values, result) ⇒ Object
-
#_reduce_372(val, _values, result) ⇒ Object
reduce 371 omitted.
- #_reduce_373(val, _values, result) ⇒ Object
- #_reduce_374(val, _values, result) ⇒ Object
-
#_reduce_377(val, _values, result) ⇒ Object
reduce 376 omitted.
-
#_reduce_379(val, _values, result) ⇒ Object
reduce 378 omitted.
- #_reduce_38(val, _values, result) ⇒ Object
-
#_reduce_381(val, _values, result) ⇒ Object
reduce 380 omitted.
- #_reduce_382(val, _values, result) ⇒ Object
-
#_reduce_384(val, _values, result) ⇒ Object
reduce 383 omitted.
-
#_reduce_386(val, _values, result) ⇒ Object
reduce 385 omitted.
- #_reduce_387(val, _values, result) ⇒ Object
- #_reduce_388(val, _values, result) ⇒ Object
- #_reduce_389(val, _values, result) ⇒ Object
- #_reduce_39(val, _values, result) ⇒ Object
- #_reduce_390(val, _values, result) ⇒ Object
- #_reduce_391(val, _values, result) ⇒ Object
- #_reduce_392(val, _values, result) ⇒ Object
- #_reduce_393(val, _values, result) ⇒ Object
- #_reduce_394(val, _values, result) ⇒ Object
-
#_reduce_396(val, _values, result) ⇒ Object
reduce 395 omitted.
- #_reduce_397(val, _values, result) ⇒ Object
- #_reduce_398(val, _values, result) ⇒ Object
- #_reduce_399(val, _values, result) ⇒ Object
- #_reduce_4(val, _values, result) ⇒ Object
- #_reduce_400(val, _values, result) ⇒ Object
- #_reduce_401(val, _values, result) ⇒ Object
- #_reduce_402(val, _values, result) ⇒ Object
- #_reduce_403(val, _values, result) ⇒ Object
- #_reduce_404(val, _values, result) ⇒ Object
- #_reduce_405(val, _values, result) ⇒ Object
- #_reduce_406(val, _values, result) ⇒ Object
- #_reduce_407(val, _values, result) ⇒ Object
- #_reduce_408(val, _values, result) ⇒ Object
- #_reduce_409(val, _values, result) ⇒ Object
-
#_reduce_41(val, _values, result) ⇒ Object
reduce 40 omitted.
- #_reduce_410(val, _values, result) ⇒ Object
- #_reduce_411(val, _values, result) ⇒ Object
- #_reduce_412(val, _values, result) ⇒ Object
-
#_reduce_414(val, _values, result) ⇒ Object
reduce 413 omitted.
- #_reduce_415(val, _values, result) ⇒ Object
-
#_reduce_420(val, _values, result) ⇒ Object
reduce 419 omitted.
-
#_reduce_423(val, _values, result) ⇒ Object
reduce 422 omitted.
- #_reduce_424(val, _values, result) ⇒ Object
-
#_reduce_430(val, _values, result) ⇒ Object
reduce 429 omitted.
- #_reduce_431(val, _values, result) ⇒ Object
- #_reduce_432(val, _values, result) ⇒ Object
- #_reduce_433(val, _values, result) ⇒ Object
- #_reduce_434(val, _values, result) ⇒ Object
- #_reduce_435(val, _values, result) ⇒ Object
- #_reduce_436(val, _values, result) ⇒ Object
- #_reduce_437(val, _values, result) ⇒ Object
- #_reduce_438(val, _values, result) ⇒ Object
- #_reduce_439(val, _values, result) ⇒ Object
-
#_reduce_44(val, _values, result) ⇒ Object
reduce 43 omitted.
- #_reduce_440(val, _values, result) ⇒ Object
- #_reduce_441(val, _values, result) ⇒ Object
- #_reduce_442(val, _values, result) ⇒ Object
- #_reduce_443(val, _values, result) ⇒ Object
- #_reduce_444(val, _values, result) ⇒ Object
- #_reduce_445(val, _values, result) ⇒ Object
- #_reduce_446(val, _values, result) ⇒ Object
- #_reduce_447(val, _values, result) ⇒ Object
- #_reduce_448(val, _values, result) ⇒ Object
- #_reduce_449(val, _values, result) ⇒ Object
- #_reduce_45(val, _values, result) ⇒ Object
- #_reduce_450(val, _values, result) ⇒ Object
- #_reduce_451(val, _values, result) ⇒ Object
- #_reduce_452(val, _values, result) ⇒ Object
- #_reduce_453(val, _values, result) ⇒ Object
- #_reduce_454(val, _values, result) ⇒ Object
- #_reduce_455(val, _values, result) ⇒ Object
- #_reduce_456(val, _values, result) ⇒ Object
- #_reduce_457(val, _values, result) ⇒ Object
- #_reduce_458(val, _values, result) ⇒ Object
- #_reduce_459(val, _values, result) ⇒ Object
- #_reduce_46(val, _values, result) ⇒ Object
- #_reduce_460(val, _values, result) ⇒ Object
- #_reduce_461(val, _values, result) ⇒ Object
- #_reduce_462(val, _values, result) ⇒ Object
- #_reduce_463(val, _values, result) ⇒ Object
-
#_reduce_466(val, _values, result) ⇒ Object
reduce 465 omitted.
- #_reduce_467(val, _values, result) ⇒ Object
-
#_reduce_470(val, _values, result) ⇒ Object
reduce 469 omitted.
- #_reduce_471(val, _values, result) ⇒ Object
- #_reduce_472(val, _values, result) ⇒ Object
-
#_reduce_474(val, _values, result) ⇒ Object
reduce 473 omitted.
- #_reduce_475(val, _values, result) ⇒ Object
- #_reduce_476(val, _values, result) ⇒ Object
- #_reduce_477(val, _values, result) ⇒ Object
- #_reduce_478(val, _values, result) ⇒ Object
-
#_reduce_48(val, _values, result) ⇒ Object
reduce 47 omitted.
-
#_reduce_480(val, _values, result) ⇒ Object
reduce 479 omitted.
- #_reduce_481(val, _values, result) ⇒ Object
- #_reduce_49(val, _values, result) ⇒ Object
- #_reduce_50(val, _values, result) ⇒ Object
-
#_reduce_501(val, _values, result) ⇒ Object
reduce 500 omitted.
-
#_reduce_504(val, _values, result) ⇒ Object
reduce 503 omitted.
- #_reduce_505(val, _values, result) ⇒ Object
- #_reduce_506(val, _values, result) ⇒ Object
- #_reduce_51(val, _values, result) ⇒ Object
- #_reduce_52(val, _values, result) ⇒ Object
- #_reduce_53(val, _values, result) ⇒ Object
- #_reduce_54(val, _values, result) ⇒ Object
- #_reduce_55(val, _values, result) ⇒ Object
- #_reduce_56(val, _values, result) ⇒ Object
- #_reduce_57(val, _values, result) ⇒ Object
- #_reduce_58(val, _values, result) ⇒ Object
- #_reduce_59(val, _values, result) ⇒ Object
- #_reduce_60(val, _values, result) ⇒ Object
-
#_reduce_62(val, _values, result) ⇒ Object
reduce 61 omitted.
-
#_reduce_64(val, _values, result) ⇒ Object
reduce 63 omitted.
- #_reduce_65(val, _values, result) ⇒ Object
- #_reduce_66(val, _values, result) ⇒ Object
- #_reduce_67(val, _values, result) ⇒ Object
- #_reduce_68(val, _values, result) ⇒ Object
- #_reduce_69(val, _values, result) ⇒ Object
-
#_reduce_7(val, _values, result) ⇒ Object
reduce 6 omitted.
- #_reduce_70(val, _values, result) ⇒ Object
-
#_reduce_72(val, _values, result) ⇒ Object
reduce 71 omitted.
- #_reduce_73(val, _values, result) ⇒ Object
- #_reduce_74(val, _values, result) ⇒ Object
- #_reduce_75(val, _values, result) ⇒ Object
- #_reduce_76(val, _values, result) ⇒ Object
- #_reduce_77(val, _values, result) ⇒ Object
- #_reduce_78(val, _values, result) ⇒ Object
- #_reduce_79(val, _values, result) ⇒ Object
- #_reduce_8(val, _values, result) ⇒ Object
- #_reduce_80(val, _values, result) ⇒ Object
- #_reduce_81(val, _values, result) ⇒ Object
- #_reduce_82(val, _values, result) ⇒ Object
- #_reduce_83(val, _values, result) ⇒ Object
- #_reduce_84(val, _values, result) ⇒ Object
- #_reduce_85(val, _values, result) ⇒ Object
- #_reduce_86(val, _values, result) ⇒ Object
- #_reduce_87(val, _values, result) ⇒ Object
- #_reduce_88(val, _values, result) ⇒ Object
- #_reduce_89(val, _values, result) ⇒ Object
- #_reduce_9(val, _values, result) ⇒ Object
- #_reduce_90(val, _values, result) ⇒ Object
- #_reduce_91(val, _values, result) ⇒ Object
-
#_reduce_93(val, _values, result) ⇒ Object
reduce 92 omitted.
- #_reduce_94(val, _values, result) ⇒ Object
- #_reduce_95(val, _values, result) ⇒ Object
-
#_reduce_99(val, _values, result) ⇒ Object
reduce 98 omitted.
- #_reduce_none(val, _values, result) ⇒ Object
Methods included from RubyParserStuff
#arg_add, #arg_blk_pass, #arg_concat, #args, #args19, #aryset, #assignable, #block_append, #cond, #do_parse, #get_match_node, #gettable, #initialize, #list_append, #list_prepend, #literal_concat, #logop, #new_aref, #new_body, #new_call, #new_case, #new_class, #new_compstmt, #new_defn, #new_defs, #new_for, #new_if, #new_iter, #new_masgn, #new_module, #new_op_asgn, #new_regexp, #new_sclass, #new_super, #new_undef, #new_until, #new_until_or_while, #new_while, #new_xstring, #new_yield, #next_token, #node_assign, #process, #remove_begin, #reset, #ret_args, #s, #value_expr, #void_stmts, #warning, #yyerror
Instance Method Details
#_reduce_1(val, _values, result) ⇒ Object
reduce 0 omitted
2938 2939 2940 2941 2942 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2938 def _reduce_1(val, _values, result) self.lexer.lex_state = :expr_beg result end |
#_reduce_10(val, _values, result) ⇒ Object
2985 2986 2987 2988 2989 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2985 def _reduce_10(val, _values, result) result = s(:alias, val[1], val[3]).line(val[2]) result end |
#_reduce_100(val, _values, result) ⇒ Object
3516 3517 3518 3519 3520 3521 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3516 def _reduce_100(val, _values, result) lexer.lex_state = :expr_end result = val[0] result end |
#_reduce_103(val, _values, result) ⇒ Object
reduce 102 omitted
3527 3528 3529 3530 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3527 def _reduce_103(val, _values, result) result = s(:lit, val[0].to_sym) result end |
#_reduce_105(val, _values, result) ⇒ Object
reduce 104 omitted
3534 3535 3536 3537 3538 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3534 def _reduce_105(val, _values, result) result = new_undef val[0] result end |
#_reduce_106(val, _values, result) ⇒ Object
3540 3541 3542 3543 3544 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3540 def _reduce_106(val, _values, result) lexer.lex_state = :expr_fname result end |
#_reduce_107(val, _values, result) ⇒ Object
3546 3547 3548 3549 3550 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3546 def _reduce_107(val, _values, result) result = new_undef val[0], val[3] result end |
#_reduce_11(val, _values, result) ⇒ Object
2991 2992 2993 2994 2995 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2991 def _reduce_11(val, _values, result) result = s(:valias, val[1].to_sym, val[2].to_sym) result end |
#_reduce_12(val, _values, result) ⇒ Object
2997 2998 2999 3000 3001 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2997 def _reduce_12(val, _values, result) result = s(:valias, val[1].to_sym, :"$#{val[2]}") result end |
#_reduce_13(val, _values, result) ⇒ Object
3003 3004 3005 3006 3007 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3003 def _reduce_13(val, _values, result) yyerror "can't make alias for the number variables" result end |
#_reduce_14(val, _values, result) ⇒ Object
3009 3010 3011 3012 3013 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3009 def _reduce_14(val, _values, result) result = val[1] result end |
#_reduce_15(val, _values, result) ⇒ Object
3015 3016 3017 3018 3019 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3015 def _reduce_15(val, _values, result) result = new_if val[2], val[0], nil result end |
#_reduce_16(val, _values, result) ⇒ Object
3021 3022 3023 3024 3025 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3021 def _reduce_16(val, _values, result) result = new_if val[2], nil, val[0] result end |
#_reduce_17(val, _values, result) ⇒ Object
3027 3028 3029 3030 3031 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3027 def _reduce_17(val, _values, result) result = new_while val[0], val[2], true result end |
#_reduce_175(val, _values, result) ⇒ Object
reduce 174 omitted
3686 3687 3688 3689 3690 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3686 def _reduce_175(val, _values, result) result = self.node_assign val[0], val[2] result end |
#_reduce_176(val, _values, result) ⇒ Object
3692 3693 3694 3695 3696 3697 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3692 def _reduce_176(val, _values, result) result = self.node_assign val[0], s(:rescue, val[2], s(:resbody, s(:array), val[4])) # result.line = val[0].line result end |
#_reduce_177(val, _values, result) ⇒ Object
3699 3700 3701 3702 3703 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3699 def _reduce_177(val, _values, result) result = new_op_asgn val result end |
#_reduce_178(val, _values, result) ⇒ Object
3705 3706 3707 3708 3709 3710 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3705 def _reduce_178(val, _values, result) result = s(:op_asgn1, val[0], val[2], val[4].to_sym, val[5]) val[2][0] = :arglist result end |
#_reduce_179(val, _values, result) ⇒ Object
3712 3713 3714 3715 3716 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3712 def _reduce_179(val, _values, result) result = s(:op_asgn2, val[0], :"#{val[2]}=", val[3].to_sym, val[4]) result end |
#_reduce_18(val, _values, result) ⇒ Object
3033 3034 3035 3036 3037 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3033 def _reduce_18(val, _values, result) result = new_until val[0], val[2], true result end |
#_reduce_180(val, _values, result) ⇒ Object
3718 3719 3720 3721 3722 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3718 def _reduce_180(val, _values, result) result = s(:op_asgn2, val[0], :"#{val[2]}=", val[3].to_sym, val[4]) result end |
#_reduce_181(val, _values, result) ⇒ Object
3724 3725 3726 3727 3728 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3724 def _reduce_181(val, _values, result) result = s(:op_asgn, val[0], val[4], val[2], val[3]) result end |
#_reduce_182(val, _values, result) ⇒ Object
3730 3731 3732 3733 3734 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3730 def _reduce_182(val, _values, result) yyerror "constant re-assignment" result end |
#_reduce_183(val, _values, result) ⇒ Object
3736 3737 3738 3739 3740 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3736 def _reduce_183(val, _values, result) yyerror "constant re-assignment" result end |
#_reduce_184(val, _values, result) ⇒ Object
3742 3743 3744 3745 3746 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3742 def _reduce_184(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_185(val, _values, result) ⇒ Object
3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3748 def _reduce_185(val, _values, result) v1, v2 = val[0], val[2] if v1.node_type == :lit and v2.node_type == :lit and Fixnum === v1.last and Fixnum === v2.last then result = s(:lit, (v1.last)..(v2.last)) else result = s(:dot2, v1, v2) end result end |
#_reduce_186(val, _values, result) ⇒ Object
3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3759 def _reduce_186(val, _values, result) v1, v2 = val[0], val[2] if v1.node_type == :lit and v2.node_type == :lit and Fixnum === v1.last and Fixnum === v2.last then result = s(:lit, (v1.last)...(v2.last)) else result = s(:dot3, v1, v2) end result end |
#_reduce_187(val, _values, result) ⇒ Object
3770 3771 3772 3773 3774 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3770 def _reduce_187(val, _values, result) result = new_call val[0], :+, s(:arglist, val[2]) result end |
#_reduce_188(val, _values, result) ⇒ Object
3776 3777 3778 3779 3780 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3776 def _reduce_188(val, _values, result) result = new_call val[0], :-, s(:arglist, val[2]) result end |
#_reduce_189(val, _values, result) ⇒ Object
3782 3783 3784 3785 3786 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3782 def _reduce_189(val, _values, result) result = new_call val[0], :*, s(:arglist, val[2]) result end |
#_reduce_19(val, _values, result) ⇒ Object
3039 3040 3041 3042 3043 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3039 def _reduce_19(val, _values, result) result = s(:rescue, val[0], s(:resbody, s(:array), val[2])) result end |
#_reduce_190(val, _values, result) ⇒ Object
3788 3789 3790 3791 3792 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3788 def _reduce_190(val, _values, result) result = new_call val[0], :"/", s(:arglist, val[2]) result end |
#_reduce_191(val, _values, result) ⇒ Object
3794 3795 3796 3797 3798 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3794 def _reduce_191(val, _values, result) result = new_call val[0], :%, s(:arglist, val[2]) result end |
#_reduce_192(val, _values, result) ⇒ Object
3800 3801 3802 3803 3804 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3800 def _reduce_192(val, _values, result) result = new_call val[0], :**, s(:arglist, val[2]) result end |
#_reduce_193(val, _values, result) ⇒ Object
3806 3807 3808 3809 3810 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3806 def _reduce_193(val, _values, result) result = new_call(new_call(s(:lit, val[1]), :"**", s(:arglist, val[3])), :"-@", s(:arglist)) result end |
#_reduce_194(val, _values, result) ⇒ Object
3812 3813 3814 3815 3816 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3812 def _reduce_194(val, _values, result) result = new_call(new_call(s(:lit, val[1]), :"**", s(:arglist, val[3])), :"-@", s(:arglist)) result end |
#_reduce_195(val, _values, result) ⇒ Object
3818 3819 3820 3821 3822 3823 3824 3825 3826 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3818 def _reduce_195(val, _values, result) if val[1][0] == :lit then result = val[1] else result = new_call val[1], :"+@", s(:arglist) end result end |
#_reduce_196(val, _values, result) ⇒ Object
3828 3829 3830 3831 3832 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3828 def _reduce_196(val, _values, result) result = new_call val[1], :"-@", s(:arglist) result end |
#_reduce_197(val, _values, result) ⇒ Object
3834 3835 3836 3837 3838 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3834 def _reduce_197(val, _values, result) result = new_call val[0], :"|", s(:arglist, val[2]) result end |
#_reduce_198(val, _values, result) ⇒ Object
3840 3841 3842 3843 3844 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3840 def _reduce_198(val, _values, result) result = new_call val[0], :"^", s(:arglist, val[2]) result end |
#_reduce_199(val, _values, result) ⇒ Object
3846 3847 3848 3849 3850 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3846 def _reduce_199(val, _values, result) result = new_call val[0], :"&", s(:arglist, val[2]) result end |
#_reduce_2(val, _values, result) ⇒ Object
2944 2945 2946 2947 2948 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2944 def _reduce_2(val, _values, result) result = val[1] result end |
#_reduce_20(val, _values, result) ⇒ Object
3045 3046 3047 3048 3049 3050 3051 3052 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3045 def _reduce_20(val, _values, result) if (self.in_def || self.in_single > 0) then yyerror "BEGIN in method" end self.env.extend result end |
#_reduce_200(val, _values, result) ⇒ Object
3852 3853 3854 3855 3856 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3852 def _reduce_200(val, _values, result) result = new_call val[0], :"<=>", s(:arglist, val[2]) result end |
#_reduce_201(val, _values, result) ⇒ Object
3858 3859 3860 3861 3862 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3858 def _reduce_201(val, _values, result) result = new_call val[0], :">", s(:arglist, val[2]) result end |
#_reduce_202(val, _values, result) ⇒ Object
3864 3865 3866 3867 3868 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3864 def _reduce_202(val, _values, result) result = new_call val[0], :">=", s(:arglist, val[2]) result end |
#_reduce_203(val, _values, result) ⇒ Object
3870 3871 3872 3873 3874 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3870 def _reduce_203(val, _values, result) result = new_call val[0], :"<", s(:arglist, val[2]) result end |
#_reduce_204(val, _values, result) ⇒ Object
3876 3877 3878 3879 3880 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3876 def _reduce_204(val, _values, result) result = new_call val[0], :"<=", s(:arglist, val[2]) result end |
#_reduce_205(val, _values, result) ⇒ Object
3882 3883 3884 3885 3886 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3882 def _reduce_205(val, _values, result) result = new_call val[0], :"==", s(:arglist, val[2]) result end |
#_reduce_206(val, _values, result) ⇒ Object
3888 3889 3890 3891 3892 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3888 def _reduce_206(val, _values, result) result = new_call val[0], :"===", s(:arglist, val[2]) result end |
#_reduce_207(val, _values, result) ⇒ Object
3894 3895 3896 3897 3898 3899 3900 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3894 def _reduce_207(val, _values, result) val[0] = value_expr val[0] # TODO: port call_op and clean these val[2] = value_expr val[2] result = s(:not, new_call(val[0], :"==", s(:arglist, val[2]))) result end |
#_reduce_208(val, _values, result) ⇒ Object
3902 3903 3904 3905 3906 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3902 def _reduce_208(val, _values, result) result = self.get_match_node val[0], val[2] result end |
#_reduce_209(val, _values, result) ⇒ Object
3908 3909 3910 3911 3912 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3908 def _reduce_209(val, _values, result) result = s(:not, self.get_match_node(val[0], val[2])) result end |
#_reduce_21(val, _values, result) ⇒ Object
3054 3055 3056 3057 3058 3059 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3054 def _reduce_21(val, _values, result) result = new_iter s(:preexe), nil, val[3] # TODO: add test? result = nil # TODO: since it isn't supposed to go in the AST result end |
#_reduce_210(val, _values, result) ⇒ Object
3914 3915 3916 3917 3918 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3914 def _reduce_210(val, _values, result) result = s(:not, val[1]) result end |
#_reduce_211(val, _values, result) ⇒ Object
3920 3921 3922 3923 3924 3925 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3920 def _reduce_211(val, _values, result) val[2] = value_expr val[2] result = new_call val[1], :"~", s(:arglist) result end |
#_reduce_212(val, _values, result) ⇒ Object
3927 3928 3929 3930 3931 3932 3933 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3927 def _reduce_212(val, _values, result) val[0] = value_expr val[0] val[2] = value_expr val[2] result = new_call val[0], :"\<\<", s(:arglist, val[2]) result end |
#_reduce_213(val, _values, result) ⇒ Object
3935 3936 3937 3938 3939 3940 3941 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3935 def _reduce_213(val, _values, result) val[0] = value_expr val[0] val[2] = value_expr val[2] result = new_call val[0], :">>", s(:arglist, val[2]) result end |
#_reduce_214(val, _values, result) ⇒ Object
3943 3944 3945 3946 3947 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3943 def _reduce_214(val, _values, result) result = logop(:and, val[0], val[2]) result end |
#_reduce_215(val, _values, result) ⇒ Object
3949 3950 3951 3952 3953 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3949 def _reduce_215(val, _values, result) result = logop(:or, val[0], val[2]) result end |
#_reduce_216(val, _values, result) ⇒ Object
3955 3956 3957 3958 3959 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3955 def _reduce_216(val, _values, result) result = s(:defined, val[2]) result end |
#_reduce_217(val, _values, result) ⇒ Object
3961 3962 3963 3964 3965 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3961 def _reduce_217(val, _values, result) result = s(:if, val[0], val[2], val[4]) result end |
#_reduce_219(val, _values, result) ⇒ Object
reduce 218 omitted
3969 3970 3971 3972 3973 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3969 def _reduce_219(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_22(val, _values, result) ⇒ Object
3061 3062 3063 3064 3065 3066 3067 3068 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3061 def _reduce_22(val, _values, result) if (self.in_def || self.in_single > 0) then yyerror "END in method; use at_exit" end result = new_iter s(:postexe), nil, val[2] result end |
#_reduce_221(val, _values, result) ⇒ Object
reduce 220 omitted
3977 3978 3979 3980 3981 3982 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3977 def _reduce_221(val, _values, result) warning 'parenthesize argument(s) for future version' result = s(:array, val[0]) result end |
#_reduce_222(val, _values, result) ⇒ Object
3984 3985 3986 3987 3988 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3984 def _reduce_222(val, _values, result) result = val[0] result end |
#_reduce_223(val, _values, result) ⇒ Object
3990 3991 3992 3993 3994 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3990 def _reduce_223(val, _values, result) result = self.arg_concat val[0], val[3] result end |
#_reduce_224(val, _values, result) ⇒ Object
3996 3997 3998 3999 4000 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3996 def _reduce_224(val, _values, result) result = s(:array, s(:hash, *val[0].values)) result end |
#_reduce_225(val, _values, result) ⇒ Object
4002 4003 4004 4005 4006 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4002 def _reduce_225(val, _values, result) result = s(:array, s(:splat, val[1])) result end |
#_reduce_226(val, _values, result) ⇒ Object
4008 4009 4010 4011 4012 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4008 def _reduce_226(val, _values, result) result = val[1] result end |
#_reduce_227(val, _values, result) ⇒ Object
4014 4015 4016 4017 4018 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4014 def _reduce_227(val, _values, result) result = val[1] result end |
#_reduce_228(val, _values, result) ⇒ Object
4020 4021 4022 4023 4024 4025 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4020 def _reduce_228(val, _values, result) warning "parenthesize argument(s) for future version" result = s(:array, val[1]) result end |
#_reduce_229(val, _values, result) ⇒ Object
4027 4028 4029 4030 4031 4032 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4027 def _reduce_229(val, _values, result) warning "parenthesize argument(s) for future version" result = val[1].add val[3] result end |
#_reduce_23(val, _values, result) ⇒ Object
3070 3071 3072 3073 3074 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3070 def _reduce_23(val, _values, result) result = self.node_assign val[0], val[2] result end |
#_reduce_232(val, _values, result) ⇒ Object
reduce 231 omitted
4038 4039 4040 4041 4042 4043 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4038 def _reduce_232(val, _values, result) warning "parenthesize argument(s) for future version" result = s(:array, val[0]) result end |
#_reduce_233(val, _values, result) ⇒ Object
4045 4046 4047 4048 4049 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4045 def _reduce_233(val, _values, result) result = self.arg_blk_pass val[0], val[1] result end |
#_reduce_234(val, _values, result) ⇒ Object
4051 4052 4053 4054 4055 4056 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4051 def _reduce_234(val, _values, result) result = self.arg_concat val[0], val[3] result = self.arg_blk_pass result, val[4] result end |
#_reduce_235(val, _values, result) ⇒ Object
4058 4059 4060 4061 4062 4063 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4058 def _reduce_235(val, _values, result) result = s(:array, s(:hash, *val[0].values)) result = self.arg_blk_pass result, val[1] result end |
#_reduce_236(val, _values, result) ⇒ Object
4065 4066 4067 4068 4069 4070 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4065 def _reduce_236(val, _values, result) result = self.arg_concat s(:array, s(:hash, *val[0].values)), val[3] result = self.arg_blk_pass result, val[4] result end |
#_reduce_237(val, _values, result) ⇒ Object
4072 4073 4074 4075 4076 4077 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4072 def _reduce_237(val, _values, result) result = val[0] << s(:hash, *val[2].values) result = self.arg_blk_pass result, val[3] result end |
#_reduce_238(val, _values, result) ⇒ Object
4079 4080 4081 4082 4083 4084 4085 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4079 def _reduce_238(val, _values, result) val[0] << s(:hash, *val[2].values) result = self.arg_concat val[0], val[5] result = self.arg_blk_pass result, val[6] result end |
#_reduce_239(val, _values, result) ⇒ Object
4087 4088 4089 4090 4091 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4087 def _reduce_239(val, _values, result) result = self.arg_blk_pass s(:splat, val[1]), val[2] result end |
#_reduce_24(val, _values, result) ⇒ Object
3076 3077 3078 3079 3080 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3076 def _reduce_24(val, _values, result) result = new_masgn val[0], val[2], :wrap result end |
#_reduce_241(val, _values, result) ⇒ Object
reduce 240 omitted
4095 4096 4097 4098 4099 4100 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4095 def _reduce_241(val, _values, result) args = self.list_prepend val[0], val[2] result = self.arg_blk_pass args, val[3] result end |
#_reduce_242(val, _values, result) ⇒ Object
4102 4103 4104 4105 4106 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4102 def _reduce_242(val, _values, result) result = self.arg_blk_pass val[0], val[2] result end |
#_reduce_243(val, _values, result) ⇒ Object
4108 4109 4110 4111 4112 4113 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4108 def _reduce_243(val, _values, result) result = self.arg_concat s(:array, val[0]), val[3] result = self.arg_blk_pass result, val[4] result end |
#_reduce_244(val, _values, result) ⇒ Object
4115 4116 4117 4118 4119 4120 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4115 def _reduce_244(val, _values, result) result = self.arg_concat s(:array, val[0], s(:hash, *val[2].values)), val[5] result = self.arg_blk_pass result, val[6] result end |
#_reduce_245(val, _values, result) ⇒ Object
4122 4123 4124 4125 4126 4127 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4122 def _reduce_245(val, _values, result) result = s(:array, s(:hash, *val[0].values)) result = self.arg_blk_pass result, val[1] result end |
#_reduce_246(val, _values, result) ⇒ Object
4129 4130 4131 4132 4133 4134 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4129 def _reduce_246(val, _values, result) result = s(:array, s(:hash, *val[0].values), val[3]) result = self.arg_blk_pass result, val[4] result end |
#_reduce_247(val, _values, result) ⇒ Object
4136 4137 4138 4139 4140 4141 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4136 def _reduce_247(val, _values, result) result = s(:array, val[0], s(:hash, *val[2].values)) result = self.arg_blk_pass result, val[3] result end |
#_reduce_248(val, _values, result) ⇒ Object
4143 4144 4145 4146 4147 4148 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4143 def _reduce_248(val, _values, result) result = s(:array, val[0]).add_all(val[2]).add(s(:hash, *val[4].values)) result = self.arg_blk_pass result, val[5] result end |
#_reduce_249(val, _values, result) ⇒ Object
4150 4151 4152 4153 4154 4155 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4150 def _reduce_249(val, _values, result) result = self.arg_concat s(:array, val[0]).add(s(:hash, *val[2].values)), val[5] result = self.arg_blk_pass result, val[6] result end |
#_reduce_25(val, _values, result) ⇒ Object
3082 3083 3084 3085 3086 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3082 def _reduce_25(val, _values, result) result = new_op_asgn val result end |
#_reduce_250(val, _values, result) ⇒ Object
4157 4158 4159 4160 4161 4162 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4157 def _reduce_250(val, _values, result) result = self.arg_concat s(:array, val[0]).add_all(val[2]).add(s(:hash, *val[4].values)), val[7] result = self.arg_blk_pass result, val[8] result end |
#_reduce_251(val, _values, result) ⇒ Object
4164 4165 4166 4167 4168 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4164 def _reduce_251(val, _values, result) result = self.arg_blk_pass s(:splat, val[1]), val[2] result end |
#_reduce_253(val, _values, result) ⇒ Object
reduce 252 omitted
4172 4173 4174 4175 4176 4177 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4172 def _reduce_253(val, _values, result) result = lexer.cmdarg.stack.dup lexer.cmdarg.push true result end |
#_reduce_254(val, _values, result) ⇒ Object
4179 4180 4181 4182 4183 4184 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4179 def _reduce_254(val, _values, result) lexer.cmdarg.stack.replace val[0] result = val[1] result end |
#_reduce_256(val, _values, result) ⇒ Object
reduce 255 omitted
4188 4189 4190 4191 4192 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4188 def _reduce_256(val, _values, result) lexer.lex_state = :expr_endarg result end |
#_reduce_257(val, _values, result) ⇒ Object
4194 4195 4196 4197 4198 4199 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4194 def _reduce_257(val, _values, result) warning "don't put space before argument parentheses" result = nil result end |
#_reduce_258(val, _values, result) ⇒ Object
4201 4202 4203 4204 4205 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4201 def _reduce_258(val, _values, result) lexer.lex_state = :expr_endarg result end |
#_reduce_259(val, _values, result) ⇒ Object
4207 4208 4209 4210 4211 4212 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4207 def _reduce_259(val, _values, result) warning "don't put space before argument parentheses" result = val[1] result end |
#_reduce_26(val, _values, result) ⇒ Object
3088 3089 3090 3091 3092 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3088 def _reduce_26(val, _values, result) result = s(:op_asgn1, val[0], val[2], val[4].to_sym, val[5]) result end |
#_reduce_260(val, _values, result) ⇒ Object
4214 4215 4216 4217 4218 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4214 def _reduce_260(val, _values, result) result = s(:block_pass, val[1]) result end |
#_reduce_261(val, _values, result) ⇒ Object
4220 4221 4222 4223 4224 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4220 def _reduce_261(val, _values, result) result = val[1] result end |
#_reduce_263(val, _values, result) ⇒ Object
reduce 262 omitted
4228 4229 4230 4231 4232 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4228 def _reduce_263(val, _values, result) result = s(:array, val[0]) result end |
#_reduce_264(val, _values, result) ⇒ Object
4234 4235 4236 4237 4238 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4234 def _reduce_264(val, _values, result) result = self.list_append val[0], val[2] result end |
#_reduce_265(val, _values, result) ⇒ Object
4240 4241 4242 4243 4244 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4240 def _reduce_265(val, _values, result) result = val[0] << val[2] result end |
#_reduce_266(val, _values, result) ⇒ Object
4246 4247 4248 4249 4250 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4246 def _reduce_266(val, _values, result) result = self.arg_concat val[0], val[3] result end |
#_reduce_267(val, _values, result) ⇒ Object
4252 4253 4254 4255 4256 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4252 def _reduce_267(val, _values, result) result = s(:splat, val[1]) result end |
#_reduce_27(val, _values, result) ⇒ Object
3094 3095 3096 3097 3098 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3094 def _reduce_27(val, _values, result) result = s(:op_asgn, val[0], val[4], val[2], val[3]) result end |
#_reduce_276(val, _values, result) ⇒ Object
reduce 275 omitted
4274 4275 4276 4277 4278 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4274 def _reduce_276(val, _values, result) result = new_call nil, val[0].to_sym result end |
#_reduce_277(val, _values, result) ⇒ Object
4280 4281 4282 4283 4284 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4280 def _reduce_277(val, _values, result) result = self.lexer.lineno result end |
#_reduce_278(val, _values, result) ⇒ Object
4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4286 def _reduce_278(val, _values, result) unless val[2] then result = s(:nil) else result = s(:begin, val[2]) end result.line = val[1] result end |
#_reduce_279(val, _values, result) ⇒ Object
4298 4299 4300 4301 4302 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4298 def _reduce_279(val, _values, result) lexer.lex_state = :expr_endarg result end |
#_reduce_28(val, _values, result) ⇒ Object
3100 3101 3102 3103 3104 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3100 def _reduce_28(val, _values, result) result = s(:op_asgn, val[0], val[4], val[2], val[3]) result end |
#_reduce_280(val, _values, result) ⇒ Object
4304 4305 4306 4307 4308 4309 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4304 def _reduce_280(val, _values, result) warning "(...) interpreted as grouped expression" result = val[1] result end |
#_reduce_281(val, _values, result) ⇒ Object
4311 4312 4313 4314 4315 4316 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4311 def _reduce_281(val, _values, result) result = val[1] || s(:nil) result.paren = true result end |
#_reduce_282(val, _values, result) ⇒ Object
4318 4319 4320 4321 4322 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4318 def _reduce_282(val, _values, result) result = s(:colon2, val[0], val[2].to_sym) result end |
#_reduce_283(val, _values, result) ⇒ Object
4324 4325 4326 4327 4328 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4324 def _reduce_283(val, _values, result) result = s(:colon3, val[1].to_sym) result end |
#_reduce_284(val, _values, result) ⇒ Object
4330 4331 4332 4333 4334 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4330 def _reduce_284(val, _values, result) result = new_aref val result end |
#_reduce_285(val, _values, result) ⇒ Object
4336 4337 4338 4339 4340 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4336 def _reduce_285(val, _values, result) result = val[1] || s(:array) result end |
#_reduce_286(val, _values, result) ⇒ Object
4342 4343 4344 4345 4346 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4342 def _reduce_286(val, _values, result) result = s(:hash, *val[1].values) result end |
#_reduce_287(val, _values, result) ⇒ Object
4348 4349 4350 4351 4352 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4348 def _reduce_287(val, _values, result) result = s(:return) result end |
#_reduce_288(val, _values, result) ⇒ Object
4354 4355 4356 4357 4358 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4354 def _reduce_288(val, _values, result) result = new_yield val[2] result end |
#_reduce_289(val, _values, result) ⇒ Object
4360 4361 4362 4363 4364 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4360 def _reduce_289(val, _values, result) result = new_yield result end |
#_reduce_29(val, _values, result) ⇒ Object
3106 3107 3108 3109 3110 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3106 def _reduce_29(val, _values, result) result = s(:op_asgn, val[0], val[4], val[2], val[3]) result end |
#_reduce_290(val, _values, result) ⇒ Object
4366 4367 4368 4369 4370 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4366 def _reduce_290(val, _values, result) result = new_yield result end |
#_reduce_291(val, _values, result) ⇒ Object
4372 4373 4374 4375 4376 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4372 def _reduce_291(val, _values, result) result = s(:defined, val[3]) result end |
#_reduce_292(val, _values, result) ⇒ Object
4378 4379 4380 4381 4382 4383 4384 4385 4386 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4378 def _reduce_292(val, _values, result) oper, iter = val[0], val[1] call = new_call(nil, oper.to_sym) iter.insert 1, call result = iter call.line = iter.line result end |
#_reduce_294(val, _values, result) ⇒ Object
reduce 293 omitted
4390 4391 4392 4393 4394 4395 4396 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4390 def _reduce_294(val, _values, result) call, iter = val[0], val[1] iter.insert 1, call result = iter result end |
#_reduce_295(val, _values, result) ⇒ Object
4398 4399 4400 4401 4402 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4398 def _reduce_295(val, _values, result) result = new_if val[1], val[3], val[4] result end |
#_reduce_296(val, _values, result) ⇒ Object
4404 4405 4406 4407 4408 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4404 def _reduce_296(val, _values, result) result = new_if val[1], val[4], val[3] result end |
#_reduce_297(val, _values, result) ⇒ Object
4410 4411 4412 4413 4414 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4410 def _reduce_297(val, _values, result) lexer.cond.push true result end |
#_reduce_298(val, _values, result) ⇒ Object
4416 4417 4418 4419 4420 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4416 def _reduce_298(val, _values, result) lexer.cond.pop result end |
#_reduce_299(val, _values, result) ⇒ Object
4422 4423 4424 4425 4426 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4422 def _reduce_299(val, _values, result) result = new_while val[5], val[2], true result end |
#_reduce_3(val, _values, result) ⇒ Object
2950 2951 2952 2953 2954 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2950 def _reduce_3(val, _values, result) result = new_body val result end |
#_reduce_30(val, _values, result) ⇒ Object
3112 3113 3114 3115 3116 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3112 def _reduce_30(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_300(val, _values, result) ⇒ Object
4428 4429 4430 4431 4432 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4428 def _reduce_300(val, _values, result) lexer.cond.push true result end |
#_reduce_301(val, _values, result) ⇒ Object
4434 4435 4436 4437 4438 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4434 def _reduce_301(val, _values, result) lexer.cond.pop result end |
#_reduce_302(val, _values, result) ⇒ Object
4440 4441 4442 4443 4444 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4440 def _reduce_302(val, _values, result) result = new_until val[5], val[2], true result end |
#_reduce_303(val, _values, result) ⇒ Object
4446 4447 4448 4449 4450 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4446 def _reduce_303(val, _values, result) result = new_case val[1], val[3] result end |
#_reduce_304(val, _values, result) ⇒ Object
4452 4453 4454 4455 4456 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4452 def _reduce_304(val, _values, result) result = new_case nil, val[2] result end |
#_reduce_305(val, _values, result) ⇒ Object
4458 4459 4460 4461 4462 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4458 def _reduce_305(val, _values, result) result = new_case nil, val[3] result end |
#_reduce_306(val, _values, result) ⇒ Object
4464 4465 4466 4467 4468 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4464 def _reduce_306(val, _values, result) lexer.cond.push true result end |
#_reduce_307(val, _values, result) ⇒ Object
4470 4471 4472 4473 4474 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4470 def _reduce_307(val, _values, result) lexer.cond.pop result end |
#_reduce_308(val, _values, result) ⇒ Object
4476 4477 4478 4479 4480 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4476 def _reduce_308(val, _values, result) result = new_for val[4], val[1], val[7] result end |
#_reduce_309(val, _values, result) ⇒ Object
4482 4483 4484 4485 4486 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4482 def _reduce_309(val, _values, result) result = self.lexer.lineno result end |
#_reduce_31(val, _values, result) ⇒ Object
3118 3119 3120 3121 3122 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3118 def _reduce_31(val, _values, result) result = self.node_assign val[0], s(:svalue, val[2]) result end |
#_reduce_310(val, _values, result) ⇒ Object
4488 4489 4490 4491 4492 4493 4494 4495 4496 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4488 def _reduce_310(val, _values, result) self.comments.push self.lexer.comments if (self.in_def || self.in_single > 0) then yyerror "class definition in method body" end self.env.extend result end |
#_reduce_311(val, _values, result) ⇒ Object
4498 4499 4500 4501 4502 4503 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4498 def _reduce_311(val, _values, result) result = new_class val self.env.unextend result end |
#_reduce_312(val, _values, result) ⇒ Object
4505 4506 4507 4508 4509 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4505 def _reduce_312(val, _values, result) result = self.lexer.lineno result end |
#_reduce_313(val, _values, result) ⇒ Object
4511 4512 4513 4514 4515 4516 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4511 def _reduce_313(val, _values, result) result = self.in_def self.in_def = false result end |
#_reduce_314(val, _values, result) ⇒ Object
4518 4519 4520 4521 4522 4523 4524 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4518 def _reduce_314(val, _values, result) result = self.in_single self.in_single = 0 self.env.extend result end |
#_reduce_315(val, _values, result) ⇒ Object
4526 4527 4528 4529 4530 4531 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4526 def _reduce_315(val, _values, result) result = new_sclass val self.env.unextend result end |
#_reduce_316(val, _values, result) ⇒ Object
4533 4534 4535 4536 4537 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4533 def _reduce_316(val, _values, result) result = self.lexer.lineno result end |
#_reduce_317(val, _values, result) ⇒ Object
4539 4540 4541 4542 4543 4544 4545 4546 4547 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4539 def _reduce_317(val, _values, result) self.comments.push self.lexer.comments yyerror "module definition in method body" if self.in_def or self.in_single > 0 self.env.extend result end |
#_reduce_318(val, _values, result) ⇒ Object
4549 4550 4551 4552 4553 4554 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4549 def _reduce_318(val, _values, result) result = new_module val self.env.unextend result end |
#_reduce_319(val, _values, result) ⇒ Object
4556 4557 4558 4559 4560 4561 4562 4563 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4556 def _reduce_319(val, _values, result) self.comments.push self.lexer.comments self.in_def = true self.env.extend result = lexer.lineno, lexer.src.beginning_of_line? result end |
#_reduce_32(val, _values, result) ⇒ Object
3124 3125 3126 3127 3128 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3124 def _reduce_32(val, _values, result) result = new_masgn val[0], val[2], :wrap result end |
#_reduce_320(val, _values, result) ⇒ Object
4565 4566 4567 4568 4569 4570 4571 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4565 def _reduce_320(val, _values, result) result = new_defn val self.env.unextend self.in_def = false result end |
#_reduce_321(val, _values, result) ⇒ Object
4573 4574 4575 4576 4577 4578 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4573 def _reduce_321(val, _values, result) self.comments.push self.lexer.comments lexer.lex_state = :expr_fname result end |
#_reduce_322(val, _values, result) ⇒ Object
4580 4581 4582 4583 4584 4585 4586 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4580 def _reduce_322(val, _values, result) self.in_single += 1 self.env.extend lexer.lex_state = :expr_end # force for args result end |
#_reduce_323(val, _values, result) ⇒ Object
4588 4589 4590 4591 4592 4593 4594 4595 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4588 def _reduce_323(val, _values, result) result = new_defs val self.env.unextend self.in_single -= 1 result end |
#_reduce_324(val, _values, result) ⇒ Object
4597 4598 4599 4600 4601 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4597 def _reduce_324(val, _values, result) result = s(:break) result end |
#_reduce_325(val, _values, result) ⇒ Object
4603 4604 4605 4606 4607 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4603 def _reduce_325(val, _values, result) result = s(:next) result end |
#_reduce_326(val, _values, result) ⇒ Object
4609 4610 4611 4612 4613 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4609 def _reduce_326(val, _values, result) result = s(:redo) result end |
#_reduce_327(val, _values, result) ⇒ Object
4615 4616 4617 4618 4619 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4615 def _reduce_327(val, _values, result) result = s(:retry) result end |
#_reduce_328(val, _values, result) ⇒ Object
4621 4622 4623 4624 4625 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4621 def _reduce_328(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_33(val, _values, result) ⇒ Object
3130 3131 3132 3133 3134 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3130 def _reduce_33(val, _values, result) result = new_masgn val[0], val[2] result end |
#_reduce_337(val, _values, result) ⇒ Object
reduce 336 omitted
4643 4644 4645 4646 4647 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4643 def _reduce_337(val, _values, result) result = s(:if, val[1], val[3], val[4]) result end |
#_reduce_339(val, _values, result) ⇒ Object
reduce 338 omitted
4651 4652 4653 4654 4655 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4651 def _reduce_339(val, _values, result) result = val[1] result end |
#_reduce_341(val, _values, result) ⇒ Object
reduce 340 omitted
4659 4660 4661 4662 4663 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4659 def _reduce_341(val, _values, result) val[0].delete_at 1 if val[0][1].nil? # HACK result end |
#_reduce_343(val, _values, result) ⇒ Object
reduce 342 omitted
4667 4668 4669 4670 4671 4672 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4667 def _reduce_343(val, _values, result) result = 0 self.lexer.command_start = true result end |
#_reduce_344(val, _values, result) ⇒ Object
4674 4675 4676 4677 4678 4679 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4674 def _reduce_344(val, _values, result) result = 0 self.lexer.command_start = true result end |
#_reduce_345(val, _values, result) ⇒ Object
4681 4682 4683 4684 4685 4686 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4681 def _reduce_345(val, _values, result) result = val[1] self.lexer.command_start = true result end |
#_reduce_346(val, _values, result) ⇒ Object
4688 4689 4690 4691 4692 4693 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4688 def _reduce_346(val, _values, result) self.env.extend :dynamic result = self.lexer.lineno result end |
#_reduce_347(val, _values, result) ⇒ Object
4695 4696 4697 4698 4699 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4695 def _reduce_347(val, _values, result) result = self.env.dynamic.keys result end |
#_reduce_348(val, _values, result) ⇒ Object
4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4701 def _reduce_348(val, _values, result) vars = val[2] body = val[4] result = new_iter nil, vars, body result.line = val[1] self.env.unextend result end |
#_reduce_349(val, _values, result) ⇒ Object
4712 4713 4714 4715 4716 4717 4718 4719 4720 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4712 def _reduce_349(val, _values, result) raise SyntaxError, "Both block arg and actual block given." if val[0] && val[0][0] == :blockpass result = val[1] result.insert 1, val[0] result end |
#_reduce_350(val, _values, result) ⇒ Object
4722 4723 4724 4725 4726 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4722 def _reduce_350(val, _values, result) result = new_call val[0], val[2], val[3] result end |
#_reduce_351(val, _values, result) ⇒ Object
4728 4729 4730 4731 4732 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4728 def _reduce_351(val, _values, result) result = new_call val[0], val[2], val[3] result end |
#_reduce_352(val, _values, result) ⇒ Object
4734 4735 4736 4737 4738 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4734 def _reduce_352(val, _values, result) result = self.lexer.lineno result end |
#_reduce_353(val, _values, result) ⇒ Object
4740 4741 4742 4743 4744 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4740 def _reduce_353(val, _values, result) result = new_call nil, val[0].to_sym, val[2] result end |
#_reduce_354(val, _values, result) ⇒ Object
4746 4747 4748 4749 4750 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4746 def _reduce_354(val, _values, result) result = new_call val[0], val[2].to_sym, val[3] result end |
#_reduce_355(val, _values, result) ⇒ Object
4752 4753 4754 4755 4756 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4752 def _reduce_355(val, _values, result) result = new_call val[0], val[2].to_sym, val[3] result end |
#_reduce_356(val, _values, result) ⇒ Object
4758 4759 4760 4761 4762 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4758 def _reduce_356(val, _values, result) result = new_call val[0], val[2].to_sym result end |
#_reduce_357(val, _values, result) ⇒ Object
4764 4765 4766 4767 4768 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4764 def _reduce_357(val, _values, result) result = new_super val[1] result end |
#_reduce_358(val, _values, result) ⇒ Object
4770 4771 4772 4773 4774 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4770 def _reduce_358(val, _values, result) result = s(:zsuper) result end |
#_reduce_359(val, _values, result) ⇒ Object
4776 4777 4778 4779 4780 4781 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4776 def _reduce_359(val, _values, result) self.env.extend :dynamic result = self.lexer.lineno result end |
#_reduce_36(val, _values, result) ⇒ Object
reduce 35 omitted
3140 3141 3142 3143 3144 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3140 def _reduce_36(val, _values, result) result = logop(:and, val[0], val[2]) result end |
#_reduce_360(val, _values, result) ⇒ Object
4783 4784 4785 4786 4787 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4783 def _reduce_360(val, _values, result) result = self.env.dynamic.keys result end |
#_reduce_361(val, _values, result) ⇒ Object
4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4789 def _reduce_361(val, _values, result) # REFACTOR args = val[2] body = val[4] result = new_iter nil, args, body self.env.unextend result.line = val[1] result end |
#_reduce_362(val, _values, result) ⇒ Object
4800 4801 4802 4803 4804 4805 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4800 def _reduce_362(val, _values, result) self.env.extend :dynamic result = self.lexer.lineno result end |
#_reduce_363(val, _values, result) ⇒ Object
4807 4808 4809 4810 4811 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4807 def _reduce_363(val, _values, result) result = self.env.dynamic.keys result end |
#_reduce_364(val, _values, result) ⇒ Object
4813 4814 4815 4816 4817 4818 4819 4820 4821 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4813 def _reduce_364(val, _values, result) args = val[2] body = val[4] result = new_iter nil, args, body self.env.unextend result.line = val[1] result end |
#_reduce_365(val, _values, result) ⇒ Object
4823 4824 4825 4826 4827 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4823 def _reduce_365(val, _values, result) result = self.lexer.lineno result end |
#_reduce_366(val, _values, result) ⇒ Object
4829 4830 4831 4832 4833 4834 4835 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4829 def _reduce_366(val, _values, result) result = s(:when, val[2], val[4]) result.line = val[1] result << val[5] if val[5] result end |
#_reduce_368(val, _values, result) ⇒ Object
reduce 367 omitted
4839 4840 4841 4842 4843 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4839 def _reduce_368(val, _values, result) result = self.list_append val[0], s(:when, val[3], nil) result end |
#_reduce_369(val, _values, result) ⇒ Object
4845 4846 4847 4848 4849 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4845 def _reduce_369(val, _values, result) result = s(:array, s(:when, val[1], nil)) result end |
#_reduce_37(val, _values, result) ⇒ Object
3146 3147 3148 3149 3150 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3146 def _reduce_37(val, _values, result) result = logop(:or, val[0], val[2]) result end |
#_reduce_372(val, _values, result) ⇒ Object
reduce 371 omitted
4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4855 def _reduce_372(val, _values, result) klasses, var, body, rest = val[1], val[2], val[4], val[5] klasses ||= s(:array) klasses << node_assign(var, s(:gvar, :"$!")) if var result = s(:resbody, klasses, body) result << rest if rest # UGH, rewritten above result end |
#_reduce_373(val, _values, result) ⇒ Object
4867 4868 4869 4870 4871 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4867 def _reduce_373(val, _values, result) result = nil result end |
#_reduce_374(val, _values, result) ⇒ Object
4873 4874 4875 4876 4877 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4873 def _reduce_374(val, _values, result) result = s(:array, val[0]) result end |
#_reduce_377(val, _values, result) ⇒ Object
reduce 376 omitted
4883 4884 4885 4886 4887 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4883 def _reduce_377(val, _values, result) result = val[1] result end |
#_reduce_379(val, _values, result) ⇒ Object
reduce 378 omitted
4891 4892 4893 4894 4895 4896 4897 4898 4899 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4891 def _reduce_379(val, _values, result) if (val[1] != nil) then result = val[1] else result = s(:nil) end result end |
#_reduce_38(val, _values, result) ⇒ Object
3152 3153 3154 3155 3156 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3152 def _reduce_38(val, _values, result) result = s(:not, val[1]) result end |
#_reduce_381(val, _values, result) ⇒ Object
reduce 380 omitted
4903 4904 4905 4906 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4903 def _reduce_381(val, _values, result) result = s(:lit, val[0]) result end |
#_reduce_382(val, _values, result) ⇒ Object
4908 4909 4910 4911 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4908 def _reduce_382(val, _values, result) result = s(:lit, val[0]) result end |
#_reduce_384(val, _values, result) ⇒ Object
reduce 383 omitted
4915 4916 4917 4918 4919 4920 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4915 def _reduce_384(val, _values, result) val[0] = s(:dstr, val[0].value) if val[0][0] == :evstr result = val[0] result end |
#_reduce_386(val, _values, result) ⇒ Object
reduce 385 omitted
4924 4925 4926 4927 4928 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4924 def _reduce_386(val, _values, result) result = self.literal_concat val[0], val[1] result end |
#_reduce_387(val, _values, result) ⇒ Object
4930 4931 4932 4933 4934 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4930 def _reduce_387(val, _values, result) result = val[1] result end |
#_reduce_388(val, _values, result) ⇒ Object
4936 4937 4938 4939 4940 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4936 def _reduce_388(val, _values, result) result = s(:str, val[0]) result end |
#_reduce_389(val, _values, result) ⇒ Object
4942 4943 4944 4945 4946 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4942 def _reduce_389(val, _values, result) result = new_xstring val[1] result end |
#_reduce_39(val, _values, result) ⇒ Object
3158 3159 3160 3161 3162 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3158 def _reduce_39(val, _values, result) result = s(:not, val[1]) result end |
#_reduce_390(val, _values, result) ⇒ Object
4948 4949 4950 4951 4952 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4948 def _reduce_390(val, _values, result) result = new_regexp val result end |
#_reduce_391(val, _values, result) ⇒ Object
4954 4955 4956 4957 4958 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4954 def _reduce_391(val, _values, result) result = s(:array) result end |
#_reduce_392(val, _values, result) ⇒ Object
4960 4961 4962 4963 4964 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4960 def _reduce_392(val, _values, result) result = val[1] result end |
#_reduce_393(val, _values, result) ⇒ Object
4966 4967 4968 4969 4970 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4966 def _reduce_393(val, _values, result) result = s(:array) result end |
#_reduce_394(val, _values, result) ⇒ Object
4972 4973 4974 4975 4976 4977 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4972 def _reduce_394(val, _values, result) word = val[1][0] == :evstr ? s(:dstr, "", val[1]) : val[1] result = val[0] << word result end |
#_reduce_396(val, _values, result) ⇒ Object
reduce 395 omitted
4981 4982 4983 4984 4985 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4981 def _reduce_396(val, _values, result) result = self.literal_concat val[0], val[1] result end |
#_reduce_397(val, _values, result) ⇒ Object
4987 4988 4989 4990 4991 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4987 def _reduce_397(val, _values, result) result = s(:array) result end |
#_reduce_398(val, _values, result) ⇒ Object
4993 4994 4995 4996 4997 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4993 def _reduce_398(val, _values, result) result = val[1] result end |
#_reduce_399(val, _values, result) ⇒ Object
4999 5000 5001 5002 5003 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 4999 def _reduce_399(val, _values, result) result = s(:array) result end |
#_reduce_4(val, _values, result) ⇒ Object
2956 2957 2958 2959 2960 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2956 def _reduce_4(val, _values, result) result = new_compstmt val result end |
#_reduce_400(val, _values, result) ⇒ Object
5005 5006 5007 5008 5009 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5005 def _reduce_400(val, _values, result) result = val[0] << s(:str, val[1]) result end |
#_reduce_401(val, _values, result) ⇒ Object
5011 5012 5013 5014 5015 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5011 def _reduce_401(val, _values, result) result = s(:str, "") result end |
#_reduce_402(val, _values, result) ⇒ Object
5017 5018 5019 5020 5021 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5017 def _reduce_402(val, _values, result) result = literal_concat(val[0], val[1]) result end |
#_reduce_403(val, _values, result) ⇒ Object
5023 5024 5025 5026 5027 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5023 def _reduce_403(val, _values, result) result = nil result end |
#_reduce_404(val, _values, result) ⇒ Object
5029 5030 5031 5032 5033 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5029 def _reduce_404(val, _values, result) result = literal_concat(val[0], val[1]) result end |
#_reduce_405(val, _values, result) ⇒ Object
5035 5036 5037 5038 5039 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5035 def _reduce_405(val, _values, result) result = s(:str, val[0]) result end |
#_reduce_406(val, _values, result) ⇒ Object
5041 5042 5043 5044 5045 5046 5047 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5041 def _reduce_406(val, _values, result) result = lexer.lex_strterm lexer.lex_strterm = nil lexer.lex_state = :expr_beg result end |
#_reduce_407(val, _values, result) ⇒ Object
5049 5050 5051 5052 5053 5054 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5049 def _reduce_407(val, _values, result) lexer.lex_strterm = val[1] result = s(:evstr, val[2]) result end |
#_reduce_408(val, _values, result) ⇒ Object
5056 5057 5058 5059 5060 5061 5062 5063 5064 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5056 def _reduce_408(val, _values, result) result = lexer.lex_strterm lexer.lex_strterm = nil lexer.lex_state = :expr_beg lexer.cond.push false lexer.cmdarg.push false result end |
#_reduce_409(val, _values, result) ⇒ Object
5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5066 def _reduce_409(val, _values, result) lexer.lex_strterm = val[1] lexer.cond.lexpop lexer.cmdarg.lexpop case val[2] when Sexp then case val[2][0] when :str, :dstr, :evstr then result = val[2] else result = s(:evstr, val[2]) end when nil then result = s(:evstr) else raise "unknown rescue body: #{val[2].inspect}" end result end |
#_reduce_41(val, _values, result) ⇒ Object
reduce 40 omitted
3166 3167 3168 3169 3170 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3166 def _reduce_41(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_410(val, _values, result) ⇒ Object
5088 5089 5090 5091 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5088 def _reduce_410(val, _values, result) result = s(:gvar, val[0].to_sym) result end |
#_reduce_411(val, _values, result) ⇒ Object
5093 5094 5095 5096 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5093 def _reduce_411(val, _values, result) result = s(:ivar, val[0].to_sym) result end |
#_reduce_412(val, _values, result) ⇒ Object
5098 5099 5100 5101 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5098 def _reduce_412(val, _values, result) result = s(:cvar, val[0].to_sym) result end |
#_reduce_414(val, _values, result) ⇒ Object
reduce 413 omitted
5105 5106 5107 5108 5109 5110 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5105 def _reduce_414(val, _values, result) lexer.lex_state = :expr_end result = val[1].to_sym result end |
#_reduce_415(val, _values, result) ⇒ Object
5112 5113 5114 5115 5116 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5112 def _reduce_415(val, _values, result) result = val[0].to_sym result end |
#_reduce_420(val, _values, result) ⇒ Object
reduce 419 omitted
5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5126 def _reduce_420(val, _values, result) lexer.lex_state = :expr_end result = val[1] yyerror "empty symbol literal" if result.nil? or result.empty? case result[0] when :dstr then result[0] = :dsym when :str then result = s(:lit, result.last.intern) else result = s(:dsym, "", result) end result end |
#_reduce_423(val, _values, result) ⇒ Object
reduce 422 omitted
5149 5150 5151 5152 5153 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5149 def _reduce_423(val, _values, result) result = -val[1] # TODO: pt_testcase result end |
#_reduce_424(val, _values, result) ⇒ Object
5155 5156 5157 5158 5159 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5155 def _reduce_424(val, _values, result) result = -val[1] # TODO: pt_testcase result end |
#_reduce_430(val, _values, result) ⇒ Object
reduce 429 omitted
5171 5172 5173 5174 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5171 def _reduce_430(val, _values, result) result = s(:nil) result end |
#_reduce_431(val, _values, result) ⇒ Object
5176 5177 5178 5179 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5176 def _reduce_431(val, _values, result) result = s(:self) result end |
#_reduce_432(val, _values, result) ⇒ Object
5181 5182 5183 5184 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5181 def _reduce_432(val, _values, result) result = s(:true) result end |
#_reduce_433(val, _values, result) ⇒ Object
5186 5187 5188 5189 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5186 def _reduce_433(val, _values, result) result = s(:false) result end |
#_reduce_434(val, _values, result) ⇒ Object
5191 5192 5193 5194 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5191 def _reduce_434(val, _values, result) result = s(:str, self.file) result end |
#_reduce_435(val, _values, result) ⇒ Object
5196 5197 5198 5199 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5196 def _reduce_435(val, _values, result) result = s(:lit, lexer.src.current_line) result end |
#_reduce_436(val, _values, result) ⇒ Object
5201 5202 5203 5204 5205 5206 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5201 def _reduce_436(val, _values, result) var = val[0] result = Sexp === var ? var : self.gettable(var) result end |
#_reduce_437(val, _values, result) ⇒ Object
5208 5209 5210 5211 5212 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5208 def _reduce_437(val, _values, result) result = self.assignable val[0] result end |
#_reduce_438(val, _values, result) ⇒ Object
5214 5215 5216 5217 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5214 def _reduce_438(val, _values, result) result = s(:nth_ref, val[0]) result end |
#_reduce_439(val, _values, result) ⇒ Object
5219 5220 5221 5222 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5219 def _reduce_439(val, _values, result) result = s(:back_ref, val[0]) result end |
#_reduce_44(val, _values, result) ⇒ Object
reduce 43 omitted
3176 3177 3178 3179 3180 3181 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3176 def _reduce_44(val, _values, result) line = val[0].last result = s(:return, ret_args(val[1])).line(line) result end |
#_reduce_440(val, _values, result) ⇒ Object
5224 5225 5226 5227 5228 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5224 def _reduce_440(val, _values, result) result = nil result end |
#_reduce_441(val, _values, result) ⇒ Object
5230 5231 5232 5233 5234 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5230 def _reduce_441(val, _values, result) lexer.lex_state = :expr_beg result end |
#_reduce_442(val, _values, result) ⇒ Object
5236 5237 5238 5239 5240 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5236 def _reduce_442(val, _values, result) result = val[2] result end |
#_reduce_443(val, _values, result) ⇒ Object
5242 5243 5244 5245 5246 5247 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5242 def _reduce_443(val, _values, result) yyerrok result = nil result end |
#_reduce_444(val, _values, result) ⇒ Object
5249 5250 5251 5252 5253 5254 5255 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5249 def _reduce_444(val, _values, result) result = val[1] lexer.lex_state = :expr_beg self.lexer.command_start = true result end |
#_reduce_445(val, _values, result) ⇒ Object
5257 5258 5259 5260 5261 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5257 def _reduce_445(val, _values, result) result = val[0] result end |
#_reduce_446(val, _values, result) ⇒ Object
5263 5264 5265 5266 5267 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5263 def _reduce_446(val, _values, result) result = args val[0], val[2], val[4], val[5] result end |
#_reduce_447(val, _values, result) ⇒ Object
5269 5270 5271 5272 5273 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5269 def _reduce_447(val, _values, result) result = args val[0], val[2], nil, val[3] result end |
#_reduce_448(val, _values, result) ⇒ Object
5275 5276 5277 5278 5279 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5275 def _reduce_448(val, _values, result) result = args val[0], nil, val[2], val[3] result end |
#_reduce_449(val, _values, result) ⇒ Object
5281 5282 5283 5284 5285 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5281 def _reduce_449(val, _values, result) result = args val[0], nil, nil, val[1] result end |
#_reduce_45(val, _values, result) ⇒ Object
3183 3184 3185 3186 3187 3188 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3183 def _reduce_45(val, _values, result) line = val[0].last result = s(:break, ret_args(val[1])).line(line) result end |
#_reduce_450(val, _values, result) ⇒ Object
5287 5288 5289 5290 5291 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5287 def _reduce_450(val, _values, result) result = args nil, val[0], val[2], val[3] result end |
#_reduce_451(val, _values, result) ⇒ Object
5293 5294 5295 5296 5297 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5293 def _reduce_451(val, _values, result) result = args nil, val[0], nil, val[1] result end |
#_reduce_452(val, _values, result) ⇒ Object
5299 5300 5301 5302 5303 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5299 def _reduce_452(val, _values, result) result = args nil, nil, val[0], val[1] result end |
#_reduce_453(val, _values, result) ⇒ Object
5305 5306 5307 5308 5309 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5305 def _reduce_453(val, _values, result) result = args nil, nil, nil, val[0] result end |
#_reduce_454(val, _values, result) ⇒ Object
5311 5312 5313 5314 5315 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5311 def _reduce_454(val, _values, result) result = args nil, nil, nil, nil result end |
#_reduce_455(val, _values, result) ⇒ Object
5317 5318 5319 5320 5321 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5317 def _reduce_455(val, _values, result) yyerror "formal argument cannot be a constant: #{val[0]}" result end |
#_reduce_456(val, _values, result) ⇒ Object
5323 5324 5325 5326 5327 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5323 def _reduce_456(val, _values, result) yyerror "formal argument cannot be an instance variable" result end |
#_reduce_457(val, _values, result) ⇒ Object
5329 5330 5331 5332 5333 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5329 def _reduce_457(val, _values, result) yyerror "formal argument cannot be a class variable" result end |
#_reduce_458(val, _values, result) ⇒ Object
5335 5336 5337 5338 5339 5340 5341 5342 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5335 def _reduce_458(val, _values, result) identifier = val[0].to_sym self.env[identifier] = :lvar result = val[0] result end |
#_reduce_459(val, _values, result) ⇒ Object
5344 5345 5346 5347 5348 5349 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5344 def _reduce_459(val, _values, result) result = s(:args) result << val[0].to_sym result end |
#_reduce_46(val, _values, result) ⇒ Object
3190 3191 3192 3193 3194 3195 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3190 def _reduce_46(val, _values, result) line = val[0].last result = s(:next, ret_args(val[1])).line(line) result end |
#_reduce_460(val, _values, result) ⇒ Object
5351 5352 5353 5354 5355 5356 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5351 def _reduce_460(val, _values, result) val[0] << val[2].to_sym result = val[0] result end |
#_reduce_461(val, _values, result) ⇒ Object
5358 5359 5360 5361 5362 5363 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5358 def _reduce_461(val, _values, result) result = self.assignable val[0], val[2] # TODO: detect duplicate names result end |
#_reduce_462(val, _values, result) ⇒ Object
5365 5366 5367 5368 5369 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5365 def _reduce_462(val, _values, result) result = s(:block, val[0]) result end |
#_reduce_463(val, _values, result) ⇒ Object
5371 5372 5373 5374 5375 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5371 def _reduce_463(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_466(val, _values, result) ⇒ Object
reduce 465 omitted
5381 5382 5383 5384 5385 5386 5387 5388 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5381 def _reduce_466(val, _values, result) # TODO: differs from parse.y - needs tests name = val[1].to_sym self.assignable name result = :"*#{name}" result end |
#_reduce_467(val, _values, result) ⇒ Object
5390 5391 5392 5393 5394 5395 5396 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5390 def _reduce_467(val, _values, result) name = :"*" self.env[name] = :lvar result = name result end |
#_reduce_470(val, _values, result) ⇒ Object
reduce 469 omitted
5402 5403 5404 5405 5406 5407 5408 5409 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5402 def _reduce_470(val, _values, result) identifier = val[1].to_sym self.env[identifier] = :lvar result = s(:block_arg, identifier.to_sym) result end |
#_reduce_471(val, _values, result) ⇒ Object
5411 5412 5413 5414 5415 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5411 def _reduce_471(val, _values, result) result = val[1] result end |
#_reduce_472(val, _values, result) ⇒ Object
5417 5418 5419 5420 5421 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5417 def _reduce_472(val, _values, result) result = nil result end |
#_reduce_474(val, _values, result) ⇒ Object
reduce 473 omitted
5425 5426 5427 5428 5429 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5425 def _reduce_474(val, _values, result) lexer.lex_state = :expr_beg result end |
#_reduce_475(val, _values, result) ⇒ Object
5431 5432 5433 5434 5435 5436 5437 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5431 def _reduce_475(val, _values, result) result = val[2] yyerror "Can't define single method for literals." if result[0] == :lit result end |
#_reduce_476(val, _values, result) ⇒ Object
5439 5440 5441 5442 5443 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5439 def _reduce_476(val, _values, result) result = s(:array) result end |
#_reduce_477(val, _values, result) ⇒ Object
5445 5446 5447 5448 5449 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5445 def _reduce_477(val, _values, result) result = val[0] result end |
#_reduce_478(val, _values, result) ⇒ Object
5451 5452 5453 5454 5455 5456 5457 5458 5459 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5451 def _reduce_478(val, _values, result) size = val[0].size if (size % 2 != 1) then # != 1 because of leading :array yyerror "Odd number (#{size}) list for Hash. #{val[0].inspect}" end result = val[0] result end |
#_reduce_48(val, _values, result) ⇒ Object
reduce 47 omitted
3199 3200 3201 3202 3203 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3199 def _reduce_48(val, _values, result) result = new_call val[0], val[2], val[3] result end |
#_reduce_480(val, _values, result) ⇒ Object
reduce 479 omitted
5463 5464 5465 5466 5467 5468 5469 5470 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5463 def _reduce_480(val, _values, result) list = val[0].dup more = val[2][1..-1] list.push(*more) unless more.empty? result = list result end |
#_reduce_481(val, _values, result) ⇒ Object
5472 5473 5474 5475 5476 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5472 def _reduce_481(val, _values, result) result = s(:array, val[0], val[2]) result end |
#_reduce_49(val, _values, result) ⇒ Object
3205 3206 3207 3208 3209 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3205 def _reduce_49(val, _values, result) result = new_call val[0], val[2], val[3] result end |
#_reduce_50(val, _values, result) ⇒ Object
3211 3212 3213 3214 3215 3216 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3211 def _reduce_50(val, _values, result) self.env.extend(:dynamic) result = self.lexer.lineno result end |
#_reduce_501(val, _values, result) ⇒ Object
reduce 500 omitted
5516 5517 5518 5519 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5516 def _reduce_501(val, _values, result) yyerrok result end |
#_reduce_504(val, _values, result) ⇒ Object
reduce 503 omitted
5525 5526 5527 5528 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5525 def _reduce_504(val, _values, result) yyerrok result end |
#_reduce_505(val, _values, result) ⇒ Object
5530 5531 5532 5533 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5530 def _reduce_505(val, _values, result) result = nil result end |
#_reduce_506(val, _values, result) ⇒ Object
5535 5536 5537 5538 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5535 def _reduce_506(val, _values, result) result = nil result end |
#_reduce_51(val, _values, result) ⇒ Object
3218 3219 3220 3221 3222 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3218 def _reduce_51(val, _values, result) result = self.env.dynamic.keys result end |
#_reduce_52(val, _values, result) ⇒ Object
3224 3225 3226 3227 3228 3229 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3224 def _reduce_52(val, _values, result) result = new_iter nil, val[2], val[4] self.env.unextend result end |
#_reduce_53(val, _values, result) ⇒ Object
3231 3232 3233 3234 3235 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3231 def _reduce_53(val, _values, result) result = new_call nil, val[0].to_sym, val[1] result end |
#_reduce_54(val, _values, result) ⇒ Object
3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3237 def _reduce_54(val, _values, result) result = new_call nil, val[0].to_sym, val[1] if val[2] then if result[0] == :block_pass then raise "both block arg and actual block given" end result, operation = val[2], result result.insert 1, operation end result end |
#_reduce_55(val, _values, result) ⇒ Object
3250 3251 3252 3253 3254 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3250 def _reduce_55(val, _values, result) result = new_call val[0], val[2].to_sym, val[3] result end |
#_reduce_56(val, _values, result) ⇒ Object
3256 3257 3258 3259 3260 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3256 def _reduce_56(val, _values, result) result = new_call val[0], val[2].to_sym, val[3] result end |
#_reduce_57(val, _values, result) ⇒ Object
3262 3263 3264 3265 3266 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3262 def _reduce_57(val, _values, result) result = new_call val[0], val[2].to_sym, val[3] result end |
#_reduce_58(val, _values, result) ⇒ Object
3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3268 def _reduce_58(val, _values, result) result = new_call val[0], val[2].to_sym, val[3] if val[4] then if result[0] == :block_pass then # REFACTOR raise "both block arg and actual block given" end val[2] << result result = val[2] end result end |
#_reduce_59(val, _values, result) ⇒ Object
3281 3282 3283 3284 3285 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3281 def _reduce_59(val, _values, result) result = new_super val[1] result end |
#_reduce_60(val, _values, result) ⇒ Object
3287 3288 3289 3290 3291 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3287 def _reduce_60(val, _values, result) result = new_yield val[1] result end |
#_reduce_62(val, _values, result) ⇒ Object
reduce 61 omitted
3295 3296 3297 3298 3299 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3295 def _reduce_62(val, _values, result) result = val[1] result end |
#_reduce_64(val, _values, result) ⇒ Object
reduce 63 omitted
3303 3304 3305 3306 3307 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3303 def _reduce_64(val, _values, result) result = s(:masgn, s(:array, val[1])) result end |
#_reduce_65(val, _values, result) ⇒ Object
3309 3310 3311 3312 3313 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3309 def _reduce_65(val, _values, result) result = s(:masgn, val[0]) result end |
#_reduce_66(val, _values, result) ⇒ Object
3315 3316 3317 3318 3319 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3315 def _reduce_66(val, _values, result) result = s(:masgn, val[0] << val[1].compact) result end |
#_reduce_67(val, _values, result) ⇒ Object
3321 3322 3323 3324 3325 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3321 def _reduce_67(val, _values, result) result = s(:masgn, val[0] << s(:splat, val[2])) result end |
#_reduce_68(val, _values, result) ⇒ Object
3327 3328 3329 3330 3331 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3327 def _reduce_68(val, _values, result) result = s(:masgn, val[0] << s(:splat)) result end |
#_reduce_69(val, _values, result) ⇒ Object
3333 3334 3335 3336 3337 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3333 def _reduce_69(val, _values, result) result = s(:masgn, s(:array, s(:splat, val[1]))) result end |
#_reduce_7(val, _values, result) ⇒ Object
reduce 6 omitted
2966 2967 2968 2969 2970 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2966 def _reduce_7(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_70(val, _values, result) ⇒ Object
3339 3340 3341 3342 3343 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3339 def _reduce_70(val, _values, result) result = s(:masgn, s(:array, s(:splat))) result end |
#_reduce_72(val, _values, result) ⇒ Object
reduce 71 omitted
3347 3348 3349 3350 3351 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3347 def _reduce_72(val, _values, result) result = val[1] result end |
#_reduce_73(val, _values, result) ⇒ Object
3353 3354 3355 3356 3357 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3353 def _reduce_73(val, _values, result) result = s(:array, val[0]) result end |
#_reduce_74(val, _values, result) ⇒ Object
3359 3360 3361 3362 3363 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3359 def _reduce_74(val, _values, result) result = val[0] << val[1].compact result end |
#_reduce_75(val, _values, result) ⇒ Object
3365 3366 3367 3368 3369 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3365 def _reduce_75(val, _values, result) result = self.assignable val[0] result end |
#_reduce_76(val, _values, result) ⇒ Object
3371 3372 3373 3374 3375 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3371 def _reduce_76(val, _values, result) result = self.aryset val[0], val[2] result end |
#_reduce_77(val, _values, result) ⇒ Object
3377 3378 3379 3380 3381 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3377 def _reduce_77(val, _values, result) result = s(:attrasgn, val[0], :"#{val[2]}=", s(:arglist)) result end |
#_reduce_78(val, _values, result) ⇒ Object
3383 3384 3385 3386 3387 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3383 def _reduce_78(val, _values, result) result = s(:attrasgn, val[0], :"#{val[2]}=", s(:arglist)) result end |
#_reduce_79(val, _values, result) ⇒ Object
3389 3390 3391 3392 3393 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3389 def _reduce_79(val, _values, result) result = s(:attrasgn, val[0], :"#{val[2]}=", s(:arglist)) result end |
#_reduce_8(val, _values, result) ⇒ Object
2972 2973 2974 2975 2976 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2972 def _reduce_8(val, _values, result) result = val[1] result end |
#_reduce_80(val, _values, result) ⇒ Object
3395 3396 3397 3398 3399 3400 3401 3402 3403 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3395 def _reduce_80(val, _values, result) if (self.in_def || self.in_single > 0) then yyerror "dynamic constant assignment" end result = s(:const, s(:colon2, val[0], val[2].to_sym), nil) result end |
#_reduce_81(val, _values, result) ⇒ Object
3405 3406 3407 3408 3409 3410 3411 3412 3413 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3405 def _reduce_81(val, _values, result) if (self.in_def || self.in_single > 0) then yyerror "dynamic constant assignment" end result = s(:const, nil, s(:colon3, val[1].to_sym)) result end |
#_reduce_82(val, _values, result) ⇒ Object
3415 3416 3417 3418 3419 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3415 def _reduce_82(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_83(val, _values, result) ⇒ Object
3421 3422 3423 3424 3425 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3421 def _reduce_83(val, _values, result) result = self.assignable val[0] result end |
#_reduce_84(val, _values, result) ⇒ Object
3427 3428 3429 3430 3431 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3427 def _reduce_84(val, _values, result) result = self.aryset val[0], val[2] result end |
#_reduce_85(val, _values, result) ⇒ Object
3433 3434 3435 3436 3437 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3433 def _reduce_85(val, _values, result) result = s(:attrasgn, val[0], :"#{val[2]}=") result end |
#_reduce_86(val, _values, result) ⇒ Object
3439 3440 3441 3442 3443 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3439 def _reduce_86(val, _values, result) result = s(:attrasgn, val[0], :"#{val[2]}=") result end |
#_reduce_87(val, _values, result) ⇒ Object
3445 3446 3447 3448 3449 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3445 def _reduce_87(val, _values, result) result = s(:attrasgn, val[0], :"#{val[2]}=") result end |
#_reduce_88(val, _values, result) ⇒ Object
3451 3452 3453 3454 3455 3456 3457 3458 3459 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3451 def _reduce_88(val, _values, result) if (self.in_def || self.in_single > 0) then yyerror "dynamic constant assignment" end result = s(:const, s(:colon2, val[0], val[2].to_sym)) result end |
#_reduce_89(val, _values, result) ⇒ Object
3461 3462 3463 3464 3465 3466 3467 3468 3469 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3461 def _reduce_89(val, _values, result) if (self.in_def || self.in_single > 0) then yyerror "dynamic constant assignment" end result = s(:const, s(:colon3, val[1].to_sym)) result end |
#_reduce_9(val, _values, result) ⇒ Object
2978 2979 2980 2981 2982 2983 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 2978 def _reduce_9(val, _values, result) lexer.lex_state = :expr_fname result = self.lexer.lineno result end |
#_reduce_90(val, _values, result) ⇒ Object
3471 3472 3473 3474 3475 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3471 def _reduce_90(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_91(val, _values, result) ⇒ Object
3477 3478 3479 3480 3481 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3477 def _reduce_91(val, _values, result) yyerror "class/module name must be CONSTANT" result end |
#_reduce_93(val, _values, result) ⇒ Object
reduce 92 omitted
3485 3486 3487 3488 3489 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3485 def _reduce_93(val, _values, result) result = s(:colon3, val[1].to_sym) result end |
#_reduce_94(val, _values, result) ⇒ Object
3491 3492 3493 3494 3495 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3491 def _reduce_94(val, _values, result) result = val[0].to_sym result end |
#_reduce_95(val, _values, result) ⇒ Object
3497 3498 3499 3500 3501 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3497 def _reduce_95(val, _values, result) result = s(:colon2, val[0], val[2].to_sym) result end |
#_reduce_99(val, _values, result) ⇒ Object
reduce 98 omitted
3509 3510 3511 3512 3513 3514 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 3509 def _reduce_99(val, _values, result) lexer.lex_state = :expr_end result = val[0] result end |
#_reduce_none(val, _values, result) ⇒ Object
5540 5541 5542 |
# File 'lib/ruby_parser/ruby18_parser.rb', line 5540 def _reduce_none(val, _values, result) val[0] end |