Class: Ruby31Parser
- Inherits:
-
RubyParser::Parser
- Object
- Racc::Parser
- RubyParser::Parser
- Ruby31Parser
- Includes:
- RubyLexer::State::Values
- Defined in:
- lib/ruby_parser31.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", "kDO_LAMBDA", "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__", "k__ENCODING__", "tIDENTIFIER", "tFID", "tGVAR", "tIVAR", "tCONSTANT", "tLABEL", "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", "tLBRACK2", "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", "tQWORDS_BEG", "tSTRING_DBEG", "tSTRING_DVAR", "tSTRING_END", "tSTRING", "tSYMBOL", "tNL", "tEH", "tCOLON", "tCOMMA", "tSPACE", "tSEMI", "tLAMBDA", "tLAMBEG", "tDSTAR", "tCHAR", "tSYMBOLS_BEG", "tQSYMBOLS_BEG", "tSTRING_DEND", "tRATIONAL", "tIMAGINARY", "tLABEL_END", "tLONELY", "tBDOT2", "tBDOT3", "tLOWEST", "tEQL", "$start", "program", "top_compstmt", "@1", "top_stmts", "opt_terms", "none", "top_stmt", "terms", "stmt", "begin_block", "@2", "bodystmt", "compstmt", "opt_rescue", "k_else", "opt_ensure", "@3", "stmts", "stmt_or_begin", "@4", "fitem", "undef_list", "expr_value", "command_asgn", "mlhs", "command_call", "lhs", "mrhs", "mrhs_arg", "expr", "@5", "command_rhs", "var_lhs", "primary_value", "opt_call_args", "rbracket", "call_op", "defn_head", "f_opt_paren_args", "command", "arg", "defs_head", "backref", "opt_nl", "p_top_expr_body", "def_name", "@6", "@7", "fname", "k_def", "singleton", "dot_or_colon", "@8", "expr_value_do", "do", "@9", "@10", "block_command", "block_call", "call_op2", "operation2", "command_args", "cmd_brace_block", "brace_body", "fcall", "@11", "operation", "k_return", "call_args", "mlhs_basic", "mlhs_inner", "rparen", "mlhs_head", "mlhs_item", "mlhs_node", "mlhs_post", "user_variable", "keyword_variable", "cname", "cpath", "op", "reswords", "symbol", "@12", "arg_rhs", "simple_numeric", "rel_expr", "primary", "relop", "arg_value", "aref_args", "args", "trailer", "assocs", "paren_args", "args_forward", "opt_paren_args", "opt_block_arg", "block_arg", "@13", "literal", "strings", "xstring", "regexp", "words", "qwords", "symbols", "qsymbols", "var_ref", "k_begin", "k_end", "assoc_list", "brace_block", "method_call", "lambda", "k_if", "then", "if_tail", "k_unless", "opt_else", "k_while", "k_until", "k_case", "case_body", "p_case_body", "k_for", "for_var", "k_class", "superclass", "term", "k_module", "f_arglist", "@14", "@15", "@16", "@17", "@18", "@19", "@20", "@21", "k_do", "k_do_block", "k_rescue", "k_ensure", "k_when", "k_elsif", "f_marg", "f_norm_arg", "f_margs", "f_marg_list", "f_rest_marg", "f_any_kwrest", "f_kwrest", "f_no_kwarg", "f_eq", "block_args_tail", "@22", "f_block_kwarg", "opt_f_block_arg", "f_block_arg", "opt_block_args_tail", "excessed_comma", "block_param", "f_arg", "f_block_optarg", "f_rest_arg", "opt_block_param", "block_param_def", "opt_bv_decl", "bv_decls", "bvar", "f_bad_arg", "f_larglist", "lambda_body", "@23", "@24", "f_args", "do_block", "do_body", "operation3", "@25", "@26", "@27", "@28", "case_args", "@29", "@30", "cases", "p_top_expr", "p_cases", "@31", "@32", "p_expr", "p_args", "p_find", "p_args_tail", "p_kwargs", "p_as", "p_variable", "p_alt", "p_expr_basic", "p_lparen", "p_lbracket", "p_value", "p_const", "rbrace", "@33", "@34", "p_args_head", "p_arg", "p_args_post", "p_rest", "p_kwarg", "p_any_kwrest", "p_kw", "p_kw_label", "string_contents", "p_kwrest", "kwrest_mark", "p_kwnorest", "p_primitive", "p_var_ref", "p_expr_ref", "nonlocal_var", "exc_list", "exc_var", "numeric", "string", "string1", "xstring_contents", "regexp_contents", "word_list", "word", "string_content", "symbol_list", "qword_list", "qsym_list", "string_dvar", "@35", "@36", "ssym", "dsym", "sym", "@37", "f_paren_args", "args_tail", "@38", "f_kwarg", "opt_args_tail", "f_optarg", "f_arg_asgn", "f_arg_item", "f_label", "f_kw", "f_block_kw", "f_opt", "f_block_opt", "restarg_mark", "blkarg_mark", "@39", "assoc" ]
- Racc_debug_parser =
false
Constants included from RubyLexer::State::Values
RubyLexer::State::Values::EXPR_ARG, RubyLexer::State::Values::EXPR_ARG_ANY, RubyLexer::State::Values::EXPR_BEG, RubyLexer::State::Values::EXPR_BEG_ANY, RubyLexer::State::Values::EXPR_CLASS, RubyLexer::State::Values::EXPR_CMDARG, RubyLexer::State::Values::EXPR_DOT, RubyLexer::State::Values::EXPR_END, RubyLexer::State::Values::EXPR_ENDARG, RubyLexer::State::Values::EXPR_ENDFN, RubyLexer::State::Values::EXPR_END_ANY, RubyLexer::State::Values::EXPR_FITEM, RubyLexer::State::Values::EXPR_FNAME, RubyLexer::State::Values::EXPR_LAB, RubyLexer::State::Values::EXPR_LABEL, RubyLexer::State::Values::EXPR_LABELED, RubyLexer::State::Values::EXPR_LIT, RubyLexer::State::Values::EXPR_MID, RubyLexer::State::Values::EXPR_NONE, RubyLexer::State::Values::EXPR_NUM, RubyLexer::State::Values::EXPR_PAD, RubyLexer::State::Values::EXPR_PAR, RubyLexer::State::Values::STR_DQUOTE, RubyLexer::State::Values::STR_DSYM, RubyLexer::State::Values::STR_DWORD, RubyLexer::State::Values::STR_FUNC_BORING, RubyLexer::State::Values::STR_FUNC_DEDENT, RubyLexer::State::Values::STR_FUNC_ESCAPE, RubyLexer::State::Values::STR_FUNC_EXPAND, RubyLexer::State::Values::STR_FUNC_INDENT, RubyLexer::State::Values::STR_FUNC_LABEL, RubyLexer::State::Values::STR_FUNC_LIST, RubyLexer::State::Values::STR_FUNC_QWORDS, RubyLexer::State::Values::STR_FUNC_REGEXP, RubyLexer::State::Values::STR_FUNC_SYMBOL, RubyLexer::State::Values::STR_FUNC_TERM, RubyLexer::State::Values::STR_LABEL, RubyLexer::State::Values::STR_REGEXP, RubyLexer::State::Values::STR_SQUOTE, RubyLexer::State::Values::STR_SSYM, RubyLexer::State::Values::STR_SWORD, RubyLexer::State::Values::STR_XQUOTE
Constants included from RubyParserStuff
RubyParserStuff::ARG_TYPES, RubyParserStuff::ENCODING_ORDER, RubyParserStuff::JUMP_TYPE, RubyParserStuff::KEEP_COMMENT_TOKENS, RubyParserStuff::TAB_WIDTH, RubyParserStuff::VERSION
Instance Attribute Summary
Attributes included from RubyParserStuff
#canonicalize_conditions, #env, #file, #in_argdef, #in_def, #in_kwarg, #in_single, #last_token_type, #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_101(val, _values, result) ⇒ Object
- #_reduce_102(val, _values, result) ⇒ Object
- #_reduce_103(val, _values, result) ⇒ Object
- #_reduce_104(val, _values, result) ⇒ Object
- #_reduce_105(val, _values, result) ⇒ Object
-
#_reduce_107(val, _values, result) ⇒ Object
reduce 106 omitted.
- #_reduce_108(val, _values, result) ⇒ Object
- #_reduce_109(val, _values, result) ⇒ Object
- #_reduce_11(val, _values, result) ⇒ Object
- #_reduce_110(val, _values, result) ⇒ Object
- #_reduce_111(val, _values, result) ⇒ Object
- #_reduce_112(val, _values, result) ⇒ Object
- #_reduce_113(val, _values, result) ⇒ Object
- #_reduce_114(val, _values, result) ⇒ Object
- #_reduce_115(val, _values, result) ⇒ Object
- #_reduce_116(val, _values, result) ⇒ Object
- #_reduce_117(val, _values, result) ⇒ Object
- #_reduce_118(val, _values, result) ⇒ Object
- #_reduce_119(val, _values, result) ⇒ Object
- #_reduce_12(val, _values, result) ⇒ Object
- #_reduce_120(val, _values, result) ⇒ Object
- #_reduce_121(val, _values, result) ⇒ Object
- #_reduce_122(val, _values, result) ⇒ Object
- #_reduce_123(val, _values, result) ⇒ Object
- #_reduce_124(val, _values, result) ⇒ Object
- #_reduce_125(val, _values, result) ⇒ Object
- #_reduce_126(val, _values, result) ⇒ Object
- #_reduce_127(val, _values, result) ⇒ Object
- #_reduce_128(val, _values, result) ⇒ Object
- #_reduce_129(val, _values, result) ⇒ Object
- #_reduce_13(val, _values, result) ⇒ Object
- #_reduce_130(val, _values, result) ⇒ Object
-
#_reduce_132(val, _values, result) ⇒ Object
reduce 131 omitted.
- #_reduce_133(val, _values, result) ⇒ Object
- #_reduce_134(val, _values, result) ⇒ Object
-
#_reduce_138(val, _values, result) ⇒ Object
reduce 137 omitted.
- #_reduce_14(val, _values, result) ⇒ Object
-
#_reduce_140(val, _values, result) ⇒ Object
reduce 139 omitted.
-
#_reduce_142(val, _values, result) ⇒ Object
reduce 141 omitted.
- #_reduce_143(val, _values, result) ⇒ Object
- #_reduce_144(val, _values, result) ⇒ Object
- #_reduce_15(val, _values, result) ⇒ Object
-
#_reduce_18(val, _values, result) ⇒ Object
reduce 17 omitted.
- #_reduce_19(val, _values, result) ⇒ Object
- #_reduce_2(val, _values, result) ⇒ Object
-
#_reduce_21(val, _values, result) ⇒ Object
reduce 20 omitted.
-
#_reduce_216(val, _values, result) ⇒ Object
reduce 215 omitted.
- #_reduce_217(val, _values, result) ⇒ Object
- #_reduce_218(val, _values, result) ⇒ Object
- #_reduce_219(val, _values, result) ⇒ Object
- #_reduce_22(val, _values, result) ⇒ Object
- #_reduce_220(val, _values, result) ⇒ Object
- #_reduce_221(val, _values, result) ⇒ Object
- #_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_230(val, _values, result) ⇒ Object
- #_reduce_231(val, _values, result) ⇒ Object
- #_reduce_232(val, _values, result) ⇒ Object
- #_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_240(val, _values, result) ⇒ Object
- #_reduce_241(val, _values, result) ⇒ Object
- #_reduce_242(val, _values, result) ⇒ Object
- #_reduce_243(val, _values, result) ⇒ Object
-
#_reduce_245(val, _values, result) ⇒ Object
reduce 244 omitted.
- #_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_252(val, _values, result) ⇒ Object
- #_reduce_253(val, _values, result) ⇒ Object
- #_reduce_254(val, _values, result) ⇒ Object
- #_reduce_255(val, _values, result) ⇒ Object
- #_reduce_256(val, _values, result) ⇒ Object
- #_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_267(val, _values, result) ⇒ Object
reduce 266 omitted.
- #_reduce_268(val, _values, result) ⇒ Object
- #_reduce_269(val, _values, result) ⇒ Object
- #_reduce_27(val, _values, result) ⇒ Object
-
#_reduce_271(val, _values, result) ⇒ Object
reduce 270 omitted.
- #_reduce_272(val, _values, result) ⇒ Object
- #_reduce_273(val, _values, result) ⇒ Object
-
#_reduce_275(val, _values, result) ⇒ Object
reduce 274 omitted.
- #_reduce_276(val, _values, result) ⇒ Object
- #_reduce_277(val, _values, result) ⇒ Object
- #_reduce_278(val, _values, result) ⇒ Object
- #_reduce_28(val, _values, result) ⇒ Object
-
#_reduce_283(val, _values, result) ⇒ Object
reduce 282 omitted.
- #_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_293(val, _values, result) ⇒ Object
- #_reduce_294(val, _values, result) ⇒ Object
- #_reduce_295(val, _values, result) ⇒ Object
-
#_reduce_297(val, _values, result) ⇒ Object
reduce 296 omitted.
- #_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_31(val, _values, result) ⇒ Object
-
#_reduce_316(val, _values, result) ⇒ Object
reduce 315 omitted.
- #_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_329(val, _values, result) ⇒ Object
- #_reduce_33(val, _values, result) ⇒ Object
- #_reduce_330(val, _values, result) ⇒ Object
- #_reduce_331(val, _values, result) ⇒ Object
- #_reduce_332(val, _values, result) ⇒ Object
- #_reduce_333(val, _values, result) ⇒ Object
- #_reduce_334(val, _values, result) ⇒ Object
- #_reduce_335(val, _values, result) ⇒ Object
- #_reduce_336(val, _values, result) ⇒ Object
-
#_reduce_338(val, _values, result) ⇒ Object
reduce 337 omitted.
- #_reduce_339(val, _values, result) ⇒ Object
- #_reduce_34(val, _values, result) ⇒ Object
- #_reduce_340(val, _values, result) ⇒ Object
- #_reduce_341(val, _values, result) ⇒ Object
- #_reduce_342(val, _values, result) ⇒ Object
- #_reduce_343(val, _values, result) ⇒ Object
- #_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_369(val, _values, result) ⇒ Object
reduce 368 omitted.
- #_reduce_37(val, _values, result) ⇒ Object
- #_reduce_370(val, _values, result) ⇒ Object
- #_reduce_371(val, _values, result) ⇒ Object
- #_reduce_38(val, _values, result) ⇒ Object
-
#_reduce_387(val, _values, result) ⇒ Object
reduce 386 omitted.
-
#_reduce_389(val, _values, result) ⇒ Object
reduce 388 omitted.
- #_reduce_39(val, _values, result) ⇒ Object
-
#_reduce_391(val, _values, result) ⇒ Object
reduce 390 omitted.
- #_reduce_392(val, _values, result) ⇒ Object
- #_reduce_393(val, _values, result) ⇒ Object
- #_reduce_394(val, _values, result) ⇒ Object
- #_reduce_395(val, _values, result) ⇒ Object
- #_reduce_396(val, _values, result) ⇒ Object
- #_reduce_397(val, _values, result) ⇒ Object
- #_reduce_398(val, _values, result) ⇒ Object
- #_reduce_399(val, _values, result) ⇒ Object
- #_reduce_400(val, _values, result) ⇒ Object
- #_reduce_401(val, _values, result) ⇒ Object
- #_reduce_402(val, _values, result) ⇒ Object
-
#_reduce_405(val, _values, result) ⇒ Object
reduce 404 omitted.
-
#_reduce_407(val, _values, result) ⇒ Object
reduce 406 omitted.
- #_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_413(val, _values, result) ⇒ Object
reduce 412 omitted.
- #_reduce_414(val, _values, result) ⇒ Object
- #_reduce_415(val, _values, result) ⇒ Object
- #_reduce_416(val, _values, result) ⇒ Object
- #_reduce_417(val, _values, result) ⇒ Object
- #_reduce_418(val, _values, result) ⇒ Object
- #_reduce_419(val, _values, result) ⇒ Object
- #_reduce_42(val, _values, result) ⇒ Object
- #_reduce_420(val, _values, result) ⇒ Object
- #_reduce_421(val, _values, result) ⇒ Object
- #_reduce_422(val, _values, result) ⇒ Object
- #_reduce_423(val, _values, result) ⇒ Object
- #_reduce_424(val, _values, result) ⇒ Object
- #_reduce_425(val, _values, result) ⇒ Object
- #_reduce_426(val, _values, result) ⇒ Object
- #_reduce_427(val, _values, result) ⇒ Object
- #_reduce_428(val, _values, result) ⇒ Object
- #_reduce_429(val, _values, result) ⇒ Object
- #_reduce_43(val, _values, result) ⇒ Object
- #_reduce_430(val, _values, result) ⇒ Object
- #_reduce_431(val, _values, result) ⇒ Object
- #_reduce_432(val, _values, result) ⇒ Object
- #_reduce_433(val, _values, result) ⇒ Object
-
#_reduce_435(val, _values, result) ⇒ Object
reduce 434 omitted.
- #_reduce_436(val, _values, result) ⇒ Object
- #_reduce_437(val, _values, result) ⇒ Object
- #_reduce_438(val, _values, result) ⇒ Object
- #_reduce_44(val, _values, result) ⇒ Object
-
#_reduce_440(val, _values, result) ⇒ Object
reduce 439 omitted.
- #_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_464(val, _values, result) ⇒ Object
- #_reduce_465(val, _values, result) ⇒ Object
- #_reduce_466(val, _values, result) ⇒ Object
- #_reduce_467(val, _values, result) ⇒ Object
- #_reduce_468(val, _values, result) ⇒ Object
- #_reduce_469(val, _values, result) ⇒ Object
- #_reduce_47(val, _values, result) ⇒ Object
- #_reduce_470(val, _values, result) ⇒ Object
- #_reduce_471(val, _values, result) ⇒ Object
- #_reduce_472(val, _values, result) ⇒ Object
- #_reduce_473(val, _values, result) ⇒ Object
- #_reduce_474(val, _values, result) ⇒ Object
- #_reduce_475(val, _values, result) ⇒ Object
-
#_reduce_478(val, _values, result) ⇒ Object
reduce 477 omitted.
- #_reduce_479(val, _values, result) ⇒ Object
- #_reduce_48(val, _values, result) ⇒ Object
- #_reduce_480(val, _values, result) ⇒ Object
-
#_reduce_484(val, _values, result) ⇒ Object
reduce 483 omitted.
- #_reduce_485(val, _values, result) ⇒ Object
-
#_reduce_487(val, _values, result) ⇒ Object
reduce 486 omitted.
- #_reduce_488(val, _values, result) ⇒ Object
- #_reduce_489(val, _values, result) ⇒ Object
- #_reduce_49(val, _values, result) ⇒ Object
- #_reduce_490(val, _values, result) ⇒ Object
- #_reduce_491(val, _values, result) ⇒ Object
-
#_reduce_493(val, _values, result) ⇒ Object
reduce 492 omitted.
-
#_reduce_495(val, _values, result) ⇒ Object
reduce 494 omitted.
-
#_reduce_497(val, _values, result) ⇒ Object
reduce 496 omitted.
- #_reduce_498(val, _values, result) ⇒ Object
- #_reduce_50(val, _values, result) ⇒ Object
-
#_reduce_501(val, _values, result) ⇒ Object
reduce 500 omitted.
- #_reduce_502(val, _values, result) ⇒ Object
- #_reduce_503(val, _values, result) ⇒ Object
- #_reduce_504(val, _values, result) ⇒ Object
- #_reduce_505(val, _values, result) ⇒ Object
- #_reduce_506(val, _values, result) ⇒ Object
- #_reduce_507(val, _values, result) ⇒ Object
- #_reduce_508(val, _values, result) ⇒ Object
- #_reduce_509(val, _values, result) ⇒ Object
- #_reduce_51(val, _values, result) ⇒ Object
- #_reduce_510(val, _values, result) ⇒ Object
- #_reduce_511(val, _values, result) ⇒ Object
- #_reduce_512(val, _values, result) ⇒ Object
- #_reduce_513(val, _values, result) ⇒ Object
- #_reduce_514(val, _values, result) ⇒ Object
- #_reduce_515(val, _values, result) ⇒ Object
- #_reduce_516(val, _values, result) ⇒ Object
- #_reduce_517(val, _values, result) ⇒ Object
- #_reduce_518(val, _values, result) ⇒ Object
- #_reduce_519(val, _values, result) ⇒ Object
- #_reduce_52(val, _values, result) ⇒ Object
- #_reduce_520(val, _values, result) ⇒ Object
- #_reduce_521(val, _values, result) ⇒ Object
- #_reduce_522(val, _values, result) ⇒ Object
- #_reduce_523(val, _values, result) ⇒ Object
-
#_reduce_525(val, _values, result) ⇒ Object
reduce 524 omitted.
- #_reduce_526(val, _values, result) ⇒ Object
- #_reduce_527(val, _values, result) ⇒ Object
- #_reduce_528(val, _values, result) ⇒ Object
- #_reduce_529(val, _values, result) ⇒ Object
- #_reduce_53(val, _values, result) ⇒ Object
- #_reduce_530(val, _values, result) ⇒ Object
- #_reduce_531(val, _values, result) ⇒ Object
-
#_reduce_533(val, _values, result) ⇒ Object
reduce 532 omitted.
- #_reduce_534(val, _values, result) ⇒ Object
- #_reduce_535(val, _values, result) ⇒ Object
- #_reduce_536(val, _values, result) ⇒ Object
- #_reduce_537(val, _values, result) ⇒ Object
- #_reduce_538(val, _values, result) ⇒ Object
- #_reduce_54(val, _values, result) ⇒ Object
-
#_reduce_540(val, _values, result) ⇒ Object
reduce 539 omitted.
- #_reduce_541(val, _values, result) ⇒ Object
- #_reduce_542(val, _values, result) ⇒ Object
- #_reduce_543(val, _values, result) ⇒ Object
- #_reduce_544(val, _values, result) ⇒ Object
- #_reduce_545(val, _values, result) ⇒ Object
- #_reduce_546(val, _values, result) ⇒ Object
- #_reduce_547(val, _values, result) ⇒ Object
-
#_reduce_551(val, _values, result) ⇒ Object
reduce 550 omitted.
- #_reduce_552(val, _values, result) ⇒ Object
- #_reduce_553(val, _values, result) ⇒ Object
- #_reduce_554(val, _values, result) ⇒ Object
-
#_reduce_558(val, _values, result) ⇒ Object
reduce 557 omitted.
- #_reduce_559(val, _values, result) ⇒ Object
-
#_reduce_564(val, _values, result) ⇒ Object
reduce 563 omitted.
- #_reduce_565(val, _values, result) ⇒ Object
- #_reduce_566(val, _values, result) ⇒ Object
- #_reduce_567(val, _values, result) ⇒ Object
- #_reduce_568(val, _values, result) ⇒ Object
-
#_reduce_57(val, _values, result) ⇒ Object
reduce 56 omitted.
-
#_reduce_570(val, _values, result) ⇒ Object
reduce 569 omitted.
- #_reduce_571(val, _values, result) ⇒ Object
- #_reduce_572(val, _values, result) ⇒ Object
- #_reduce_573(val, _values, result) ⇒ Object
- #_reduce_574(val, _values, result) ⇒ Object
- #_reduce_575(val, _values, result) ⇒ Object
- #_reduce_576(val, _values, result) ⇒ Object
- #_reduce_577(val, _values, result) ⇒ Object
- #_reduce_578(val, _values, result) ⇒ Object
- #_reduce_579(val, _values, result) ⇒ Object
- #_reduce_58(val, _values, result) ⇒ Object
-
#_reduce_582(val, _values, result) ⇒ Object
reduce 581 omitted.
-
#_reduce_584(val, _values, result) ⇒ Object
reduce 583 omitted.
-
#_reduce_586(val, _values, result) ⇒ Object
reduce 585 omitted.
-
#_reduce_588(val, _values, result) ⇒ Object
reduce 587 omitted.
- #_reduce_589(val, _values, result) ⇒ Object
- #_reduce_59(val, _values, result) ⇒ Object
-
#_reduce_591(val, _values, result) ⇒ Object
reduce 590 omitted.
- #_reduce_592(val, _values, result) ⇒ Object
- #_reduce_593(val, _values, result) ⇒ Object
- #_reduce_594(val, _values, result) ⇒ Object
- #_reduce_595(val, _values, result) ⇒ Object
- #_reduce_596(val, _values, result) ⇒ Object
- #_reduce_597(val, _values, result) ⇒ Object
- #_reduce_598(val, _values, result) ⇒ Object
- #_reduce_599(val, _values, result) ⇒ Object
-
#_reduce_6(val, _values, result) ⇒ Object
reduce 5 omitted.
- #_reduce_60(val, _values, result) ⇒ Object
-
#_reduce_601(val, _values, result) ⇒ Object
reduce 600 omitted.
- #_reduce_602(val, _values, result) ⇒ Object
- #_reduce_603(val, _values, result) ⇒ Object
- #_reduce_604(val, _values, result) ⇒ Object
- #_reduce_605(val, _values, result) ⇒ Object
- #_reduce_606(val, _values, result) ⇒ Object
- #_reduce_607(val, _values, result) ⇒ Object
- #_reduce_608(val, _values, result) ⇒ Object
- #_reduce_609(val, _values, result) ⇒ Object
- #_reduce_61(val, _values, result) ⇒ Object
- #_reduce_610(val, _values, result) ⇒ Object
- #_reduce_611(val, _values, result) ⇒ Object
- #_reduce_612(val, _values, result) ⇒ Object
- #_reduce_613(val, _values, result) ⇒ Object
- #_reduce_614(val, _values, result) ⇒ Object
- #_reduce_615(val, _values, result) ⇒ Object
- #_reduce_616(val, _values, result) ⇒ Object
- #_reduce_617(val, _values, result) ⇒ Object
- #_reduce_618(val, _values, result) ⇒ Object
- #_reduce_619(val, _values, result) ⇒ Object
- #_reduce_62(val, _values, result) ⇒ Object
- #_reduce_620(val, _values, result) ⇒ Object
- #_reduce_621(val, _values, result) ⇒ Object
- #_reduce_622(val, _values, result) ⇒ Object
- #_reduce_623(val, _values, result) ⇒ Object
- #_reduce_624(val, _values, result) ⇒ Object
- #_reduce_625(val, _values, result) ⇒ Object
- #_reduce_626(val, _values, result) ⇒ Object
- #_reduce_627(val, _values, result) ⇒ Object
- #_reduce_63(val, _values, result) ⇒ Object
-
#_reduce_631(val, _values, result) ⇒ Object
reduce 630 omitted.
- #_reduce_632(val, _values, result) ⇒ Object
-
#_reduce_637(val, _values, result) ⇒ Object
reduce 636 omitted.
-
#_reduce_639(val, _values, result) ⇒ Object
reduce 638 omitted.
- #_reduce_64(val, _values, result) ⇒ Object
-
#_reduce_644(val, _values, result) ⇒ Object
reduce 643 omitted.
- #_reduce_645(val, _values, result) ⇒ Object
- #_reduce_646(val, _values, result) ⇒ Object
-
#_reduce_652(val, _values, result) ⇒ Object
reduce 651 omitted.
- #_reduce_653(val, _values, result) ⇒ Object
- #_reduce_654(val, _values, result) ⇒ Object
- #_reduce_655(val, _values, result) ⇒ Object
- #_reduce_656(val, _values, result) ⇒ Object
- #_reduce_657(val, _values, result) ⇒ Object
- #_reduce_658(val, _values, result) ⇒ Object
- #_reduce_659(val, _values, result) ⇒ Object
-
#_reduce_66(val, _values, result) ⇒ Object
reduce 65 omitted.
- #_reduce_660(val, _values, result) ⇒ Object
- #_reduce_661(val, _values, result) ⇒ Object
- #_reduce_662(val, _values, result) ⇒ Object
- #_reduce_663(val, _values, result) ⇒ Object
- #_reduce_664(val, _values, result) ⇒ Object
- #_reduce_665(val, _values, result) ⇒ Object
- #_reduce_666(val, _values, result) ⇒ Object
- #_reduce_667(val, _values, result) ⇒ Object
-
#_reduce_669(val, _values, result) ⇒ Object
reduce 668 omitted.
- #_reduce_67(val, _values, result) ⇒ Object
- #_reduce_670(val, _values, result) ⇒ Object
-
#_reduce_672(val, _values, result) ⇒ Object
reduce 671 omitted.
- #_reduce_673(val, _values, result) ⇒ Object
- #_reduce_674(val, _values, result) ⇒ Object
- #_reduce_675(val, _values, result) ⇒ Object
- #_reduce_676(val, _values, result) ⇒ Object
-
#_reduce_679(val, _values, result) ⇒ Object
reduce 678 omitted.
- #_reduce_68(val, _values, result) ⇒ Object
- #_reduce_680(val, _values, result) ⇒ Object
- #_reduce_681(val, _values, result) ⇒ Object
- #_reduce_682(val, _values, result) ⇒ Object
- #_reduce_683(val, _values, result) ⇒ Object
- #_reduce_684(val, _values, result) ⇒ Object
- #_reduce_685(val, _values, result) ⇒ Object
- #_reduce_686(val, _values, result) ⇒ Object
- #_reduce_687(val, _values, result) ⇒ Object
- #_reduce_688(val, _values, result) ⇒ Object
- #_reduce_689(val, _values, result) ⇒ Object
- #_reduce_69(val, _values, result) ⇒ Object
- #_reduce_690(val, _values, result) ⇒ Object
- #_reduce_691(val, _values, result) ⇒ Object
- #_reduce_692(val, _values, result) ⇒ Object
- #_reduce_693(val, _values, result) ⇒ Object
- #_reduce_694(val, _values, result) ⇒ Object
- #_reduce_695(val, _values, result) ⇒ Object
- #_reduce_696(val, _values, result) ⇒ Object
- #_reduce_697(val, _values, result) ⇒ Object
- #_reduce_698(val, _values, result) ⇒ Object
- #_reduce_699(val, _values, result) ⇒ Object
- #_reduce_70(val, _values, result) ⇒ Object
- #_reduce_700(val, _values, result) ⇒ Object
-
#_reduce_702(val, _values, result) ⇒ Object
reduce 701 omitted.
-
#_reduce_705(val, _values, result) ⇒ Object
reduce 704 omitted.
- #_reduce_706(val, _values, result) ⇒ Object
- #_reduce_707(val, _values, result) ⇒ Object
- #_reduce_708(val, _values, result) ⇒ Object
- #_reduce_709(val, _values, result) ⇒ Object
- #_reduce_71(val, _values, result) ⇒ Object
- #_reduce_710(val, _values, result) ⇒ Object
- #_reduce_711(val, _values, result) ⇒ Object
- #_reduce_712(val, _values, result) ⇒ Object
-
#_reduce_714(val, _values, result) ⇒ Object
reduce 713 omitted.
-
#_reduce_716(val, _values, result) ⇒ Object
reduce 715 omitted.
-
#_reduce_719(val, _values, result) ⇒ Object
reduce 718 omitted.
- #_reduce_72(val, _values, result) ⇒ Object
- #_reduce_720(val, _values, result) ⇒ Object
- #_reduce_721(val, _values, result) ⇒ Object
- #_reduce_722(val, _values, result) ⇒ Object
- #_reduce_723(val, _values, result) ⇒ Object
- #_reduce_724(val, _values, result) ⇒ Object
- #_reduce_725(val, _values, result) ⇒ Object
- #_reduce_726(val, _values, result) ⇒ Object
- #_reduce_727(val, _values, result) ⇒ Object
- #_reduce_73(val, _values, result) ⇒ Object
-
#_reduce_730(val, _values, result) ⇒ Object
reduce 729 omitted.
- #_reduce_731(val, _values, result) ⇒ Object
-
#_reduce_734(val, _values, result) ⇒ Object
reduce 733 omitted.
- #_reduce_735(val, _values, result) ⇒ Object
- #_reduce_736(val, _values, result) ⇒ Object
- #_reduce_737(val, _values, result) ⇒ Object
-
#_reduce_739(val, _values, result) ⇒ Object
reduce 738 omitted.
- #_reduce_740(val, _values, result) ⇒ Object
- #_reduce_741(val, _values, result) ⇒ Object
-
#_reduce_744(val, _values, result) ⇒ Object
reduce 743 omitted.
- #_reduce_745(val, _values, result) ⇒ Object
- #_reduce_746(val, _values, result) ⇒ Object
- #_reduce_747(val, _values, result) ⇒ Object
- #_reduce_748(val, _values, result) ⇒ Object
- #_reduce_749(val, _values, result) ⇒ Object
-
#_reduce_77(val, _values, result) ⇒ Object
reduce 76 omitted.
-
#_reduce_770(val, _values, result) ⇒ Object
reduce 769 omitted.
- #_reduce_771(val, _values, result) ⇒ Object
- #_reduce_772(val, _values, result) ⇒ Object
-
#_reduce_776(val, _values, result) ⇒ Object
reduce 775 omitted.
-
#_reduce_779(val, _values, result) ⇒ Object
reduce 778 omitted.
- #_reduce_78(val, _values, result) ⇒ Object
- #_reduce_780(val, _values, result) ⇒ Object
- #_reduce_79(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 8 omitted.
- #_reduce_90(val, _values, result) ⇒ Object
- #_reduce_91(val, _values, result) ⇒ Object
-
#_reduce_93(val, _values, result) ⇒ Object
reduce 92 omitted.
-
#_reduce_95(val, _values, result) ⇒ Object
reduce 94 omitted.
- #_reduce_96(val, _values, result) ⇒ Object
- #_reduce_97(val, _values, result) ⇒ Object
- #_reduce_98(val, _values, result) ⇒ Object
- #_reduce_99(val, _values, result) ⇒ Object
- #_reduce_none(val, _values, result) ⇒ Object
Methods inherited from RubyParser::Parser
Methods included from RubyParserStuff
#_racc_do_reduce, #arg_concat, #argl, #args, #array_pat_concat, #array_to_hash, #ary_to_pat, #aryset, #assignable, #attrset_id?, #backref_assign_error, #block_append, #block_dup_check, #block_var, #call_args, #clean_mlhs, #cond, #debug, #debug20, #dedent, #dedent_size, #dedent_string, deprecate, #do_parse, #end_args, #endless_method_name, #gettable, #hack_encoding, #handle_encoding, #initialize, #invert_block_call, #inverted?, #list_append, #list_prepend, #literal_concat, #local_pop, #logical_op, #new_aref, #new_arg, #new_array_pattern, #new_array_pattern_tail, #new_assign, #new_attrasgn, #new_begin, #new_body, #new_brace_body, #new_call, #new_case, #new_class, #new_compstmt, #new_const_op_asgn, #new_defn, #new_defs, #new_do_body, #new_endless_defn, #new_endless_defs, #new_find_pattern, #new_find_pattern_tail, #new_for, #new_hash, #new_hash_pattern, #new_hash_pattern_tail, #new_if, #new_in, #new_iter, #new_masgn, #new_masgn_arg, #new_match, #new_module, #new_op_asgn, #new_op_asgn1, #new_op_asgn2, #new_qsym_list, #new_qsym_list_entry, #new_qword_list, #new_qword_list_entry, #new_regexp, #new_resbody, #new_rescue, #new_sclass, #new_string, #new_super, #new_symbol, #new_symbol_list, #new_symbol_list_entry, #new_undef, #new_until, #new_until_or_while, #new_when, #new_while, #new_word_list, #new_word_list_entry, #new_xstring, #new_yield, #next_token, #on_error, #pop_pktbl, #pop_pvtbl, #prev_value_to_lineno, #process, #push_pktbl, #push_pvtbl, #remove_begin, #reset, #ret_args, #s, #syntax_error, #void_stmts, #warning, #whitespace_width, #wrap
Instance Method Details
#_reduce_1(val, _values, result) ⇒ Object
reduce 0 omitted
8947 8948 8949 8950 8951 |
# File 'lib/ruby_parser31.rb', line 8947 def _reduce_1(val, _values, result) self.lexer.lex_state = EXPR_BEG result end |
#_reduce_10(val, _values, result) ⇒ Object
8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 |
# File 'lib/ruby_parser31.rb', line 8993 def _reduce_10(val, _values, result) (_, lineno), _, iter = val iter.line lineno (_, preexe,) = iter preexe.line lineno result = iter result end |
#_reduce_100(val, _values, result) ⇒ Object
9638 9639 9640 9641 9642 9643 9644 |
# File 'lib/ruby_parser31.rb', line 9638 def _reduce_100(val, _values, result) head, _ = val l = head.line result = s(:masgn, head << s(:splat).line(l)).line l result end |
#_reduce_101(val, _values, result) ⇒ Object
9646 9647 9648 9649 9650 9651 9652 9653 |
# File 'lib/ruby_parser31.rb', line 9646 def _reduce_101(val, _values, result) head, _, _, post = val ary = list_append head, s(:splat).line(head.line) ary.concat post.sexp_body result = s(:masgn, ary).line ary.line result end |
#_reduce_102(val, _values, result) ⇒ Object
9655 9656 9657 9658 9659 9660 9661 9662 9663 |
# File 'lib/ruby_parser31.rb', line 9655 def _reduce_102(val, _values, result) _, node = val l = node.line splat = s(:splat, node).line l ary = s(:array, splat).line l result = s(:masgn, ary).line l result end |
#_reduce_103(val, _values, result) ⇒ Object
9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 |
# File 'lib/ruby_parser31.rb', line 9665 def _reduce_103(val, _values, result) _, node, _, post = val splat = s(:splat, node).line node.line ary = s(:array, splat).line splat.line ary.concat post.sexp_body result = s(:masgn, ary).line ary.line result end |
#_reduce_104(val, _values, result) ⇒ Object
9676 9677 9678 9679 9680 9681 |
# File 'lib/ruby_parser31.rb', line 9676 def _reduce_104(val, _values, result) (_, l), = val result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l result end |
#_reduce_105(val, _values, result) ⇒ Object
9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 |
# File 'lib/ruby_parser31.rb', line 9683 def _reduce_105(val, _values, result) _, _, post = val l = post.line splat = s(:splat).line l ary = s(:array, splat, *post.sexp_body).line l result = s(:masgn, ary).line l result end |
#_reduce_107(val, _values, result) ⇒ Object
reduce 106 omitted
9696 9697 9698 9699 9700 |
# File 'lib/ruby_parser31.rb', line 9696 def _reduce_107(val, _values, result) result = val[1] result end |
#_reduce_108(val, _values, result) ⇒ Object
9702 9703 9704 9705 9706 9707 |
# File 'lib/ruby_parser31.rb', line 9702 def _reduce_108(val, _values, result) lhs, _ = val result = s(:array, lhs).line lhs.line result end |
#_reduce_109(val, _values, result) ⇒ Object
9709 9710 9711 9712 9713 |
# File 'lib/ruby_parser31.rb', line 9709 def _reduce_109(val, _values, result) result = val[0] << val[1].compact result end |
#_reduce_11(val, _values, result) ⇒ Object
9005 9006 9007 9008 9009 9010 |
# File 'lib/ruby_parser31.rb', line 9005 def _reduce_11(val, _values, result) (_, line), stmt, _ = val result = new_iter s(:preexe).line(line), 0, stmt result end |
#_reduce_110(val, _values, result) ⇒ Object
9715 9716 9717 9718 9719 9720 |
# File 'lib/ruby_parser31.rb', line 9715 def _reduce_110(val, _values, result) item, = val result = s(:array, item).line item.line result end |
#_reduce_111(val, _values, result) ⇒ Object
9722 9723 9724 9725 9726 |
# File 'lib/ruby_parser31.rb', line 9722 def _reduce_111(val, _values, result) result = list_append val[0], val[2] result end |
#_reduce_112(val, _values, result) ⇒ Object
9728 9729 9730 9731 9732 |
# File 'lib/ruby_parser31.rb', line 9728 def _reduce_112(val, _values, result) result = self.assignable val[0] result end |
#_reduce_113(val, _values, result) ⇒ Object
9734 9735 9736 9737 9738 |
# File 'lib/ruby_parser31.rb', line 9734 def _reduce_113(val, _values, result) result = self.assignable val[0] result end |
#_reduce_114(val, _values, result) ⇒ Object
9740 9741 9742 9743 9744 |
# File 'lib/ruby_parser31.rb', line 9740 def _reduce_114(val, _values, result) result = self.aryset val[0], val[2] result end |
#_reduce_115(val, _values, result) ⇒ Object
9746 9747 9748 9749 9750 9751 9752 |
# File 'lib/ruby_parser31.rb', line 9746 def _reduce_115(val, _values, result) lhs, call_op, (id, _line) = val result = new_attrasgn lhs, id, call_op result end |
#_reduce_116(val, _values, result) ⇒ Object
9754 9755 9756 9757 9758 9759 |
# File 'lib/ruby_parser31.rb', line 9754 def _reduce_116(val, _values, result) recv, _, (id, _line) = val result = new_attrasgn recv, id result end |
#_reduce_117(val, _values, result) ⇒ Object
9761 9762 9763 9764 9765 9766 9767 |
# File 'lib/ruby_parser31.rb', line 9761 def _reduce_117(val, _values, result) lhs, call_op, (id, _line) = val result = new_attrasgn lhs, id, call_op result end |
#_reduce_118(val, _values, result) ⇒ Object
9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 |
# File 'lib/ruby_parser31.rb', line 9769 def _reduce_118(val, _values, result) if (self.in_def || self.in_single > 0) then debug 4 yyerror "dynamic constant assignment" end expr, _, (id, _line) = val l = expr.line result = s(:const, s(:colon2, expr, id.to_sym).line(l), nil).line l result end |
#_reduce_119(val, _values, result) ⇒ Object
9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 |
# File 'lib/ruby_parser31.rb', line 9783 def _reduce_119(val, _values, result) if (self.in_def || self.in_single > 0) then debug 5 yyerror "dynamic constant assignment" end _, (id, l) = val result = s(:const, nil, s(:colon3, id.to_sym).line(l)).line l result end |
#_reduce_12(val, _values, result) ⇒ Object
9012 9013 9014 9015 9016 9017 |
# File 'lib/ruby_parser31.rb', line 9012 def _reduce_12(val, _values, result) res = _values[-2] yyerror "else without rescue is useless" unless res result end |
#_reduce_120(val, _values, result) ⇒ Object
9796 9797 9798 9799 9800 9801 9802 |
# File 'lib/ruby_parser31.rb', line 9796 def _reduce_120(val, _values, result) ref, = val self.backref_assign_error ref result end |
#_reduce_121(val, _values, result) ⇒ Object
9804 9805 9806 9807 9808 9809 9810 |
# File 'lib/ruby_parser31.rb', line 9804 def _reduce_121(val, _values, result) var, = val result = self.assignable var result end |
#_reduce_122(val, _values, result) ⇒ Object
9812 9813 9814 9815 9816 9817 9818 9819 9820 |
# File 'lib/ruby_parser31.rb', line 9812 def _reduce_122(val, _values, result) var, = val result = self.assignable var debug 6 result end |
#_reduce_123(val, _values, result) ⇒ Object
9822 9823 9824 9825 9826 9827 9828 |
# File 'lib/ruby_parser31.rb', line 9822 def _reduce_123(val, _values, result) lhs, _, args, _ = val result = self.aryset lhs, args result end |
#_reduce_124(val, _values, result) ⇒ Object
9830 9831 9832 9833 9834 9835 9836 |
# File 'lib/ruby_parser31.rb', line 9830 def _reduce_124(val, _values, result) lhs, op, (id, _line) = val result = new_attrasgn lhs, id, op result end |
#_reduce_125(val, _values, result) ⇒ Object
9838 9839 9840 9841 9842 9843 9844 |
# File 'lib/ruby_parser31.rb', line 9838 def _reduce_125(val, _values, result) lhs, _, (id, _line) = val result = new_attrasgn lhs, id result end |
#_reduce_126(val, _values, result) ⇒ Object
9846 9847 9848 9849 9850 9851 9852 |
# File 'lib/ruby_parser31.rb', line 9846 def _reduce_126(val, _values, result) lhs, call_op, (id, _line) = val result = new_attrasgn lhs, id, call_op result end |
#_reduce_127(val, _values, result) ⇒ Object
9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 |
# File 'lib/ruby_parser31.rb', line 9854 def _reduce_127(val, _values, result) expr, _, (id, _line) = val if (self.in_def || self.in_single > 0) then debug 7 yyerror "dynamic constant assignment" end l = expr.line result = s(:const, s(:colon2, expr, id.to_sym).line(l)).line l result end |
#_reduce_128(val, _values, result) ⇒ Object
9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 |
# File 'lib/ruby_parser31.rb', line 9868 def _reduce_128(val, _values, result) _, (id, l) = val if (self.in_def || self.in_single > 0) then debug 8 yyerror "dynamic constant assignment" end result = s(:const, s(:colon3, id.to_sym).line(l)).line l result end |
#_reduce_129(val, _values, result) ⇒ Object
9881 9882 9883 9884 9885 |
# File 'lib/ruby_parser31.rb', line 9881 def _reduce_129(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_13(val, _values, result) ⇒ Object
9019 9020 9021 9022 9023 9024 9025 |
# File 'lib/ruby_parser31.rb', line 9019 def _reduce_13(val, _values, result) body, resc, _, _, els, ens = val result = new_body [body, resc, els, ens] result end |
#_reduce_130(val, _values, result) ⇒ Object
9887 9888 9889 9890 9891 |
# File 'lib/ruby_parser31.rb', line 9887 def _reduce_130(val, _values, result) yyerror "class/module name must be CONSTANT" result end |
#_reduce_132(val, _values, result) ⇒ Object
reduce 131 omitted
9895 9896 9897 9898 9899 |
# File 'lib/ruby_parser31.rb', line 9895 def _reduce_132(val, _values, result) result = wrap :colon3, val[1] result end |
#_reduce_133(val, _values, result) ⇒ Object
9901 9902 9903 9904 9905 9906 |
# File 'lib/ruby_parser31.rb', line 9901 def _reduce_133(val, _values, result) (id, line), = val result = [id.to_sym, line] # TODO: sexp? result end |
#_reduce_134(val, _values, result) ⇒ Object
9908 9909 9910 9911 9912 9913 9914 9915 |
# File 'lib/ruby_parser31.rb', line 9908 def _reduce_134(val, _values, result) pval, _, (name, _line) = val result = s(:colon2, pval, name.to_sym) result.line pval.line result end |
#_reduce_138(val, _values, result) ⇒ Object
reduce 137 omitted
9923 9924 9925 9926 9927 |
# File 'lib/ruby_parser31.rb', line 9923 def _reduce_138(val, _values, result) lexer.lex_state = EXPR_END result end |
#_reduce_14(val, _values, result) ⇒ Object
9027 9028 9029 9030 9031 9032 9033 |
# File 'lib/ruby_parser31.rb', line 9027 def _reduce_14(val, _values, result) body, resc, ens = val result = new_body [body, resc, nil, ens] result end |
#_reduce_140(val, _values, result) ⇒ Object
reduce 139 omitted
9931 9932 9933 9934 9935 |
# File 'lib/ruby_parser31.rb', line 9931 def _reduce_140(val, _values, result) result = wrap :lit, val[0] result end |
#_reduce_142(val, _values, result) ⇒ Object
reduce 141 omitted
9939 9940 9941 9942 9943 |
# File 'lib/ruby_parser31.rb', line 9939 def _reduce_142(val, _values, result) result = new_undef val[0] result end |
#_reduce_143(val, _values, result) ⇒ Object
9945 9946 9947 9948 9949 |
# File 'lib/ruby_parser31.rb', line 9945 def _reduce_143(val, _values, result) lexer.lex_state = EXPR_FNAME result end |
#_reduce_144(val, _values, result) ⇒ Object
9951 9952 9953 9954 9955 |
# File 'lib/ruby_parser31.rb', line 9951 def _reduce_144(val, _values, result) result = new_undef val[0], val[3] result end |
#_reduce_15(val, _values, result) ⇒ Object
9035 9036 9037 9038 9039 |
# File 'lib/ruby_parser31.rb', line 9035 def _reduce_15(val, _values, result) result = new_compstmt val result end |
#_reduce_18(val, _values, result) ⇒ Object
reduce 17 omitted
9045 9046 9047 9048 9049 |
# File 'lib/ruby_parser31.rb', line 9045 def _reduce_18(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_19(val, _values, result) ⇒ Object
9051 9052 9053 9054 9055 9056 |
# File 'lib/ruby_parser31.rb', line 9051 def _reduce_19(val, _values, result) result = val[1] debug 2 result end |
#_reduce_2(val, _values, result) ⇒ Object
8953 8954 8955 8956 8957 8958 8959 8960 |
# File 'lib/ruby_parser31.rb', line 8953 def _reduce_2(val, _values, result) result = new_compstmt val lexer.cond.pop # local_pop lexer.cmdarg.pop result end |
#_reduce_21(val, _values, result) ⇒ Object
reduce 20 omitted
9060 9061 9062 9063 9064 |
# File 'lib/ruby_parser31.rb', line 9060 def _reduce_21(val, _values, result) yyerror "BEGIN is permitted only at toplevel" result end |
#_reduce_216(val, _values, result) ⇒ Object
reduce 215 omitted
10099 10100 10101 10102 10103 |
# File 'lib/ruby_parser31.rb', line 10099 def _reduce_216(val, _values, result) result = new_assign val[0], val[2] result end |
#_reduce_217(val, _values, result) ⇒ Object
10105 10106 10107 10108 10109 |
# File 'lib/ruby_parser31.rb', line 10105 def _reduce_217(val, _values, result) result = new_op_asgn val result end |
#_reduce_218(val, _values, result) ⇒ Object
10111 10112 10113 10114 10115 |
# File 'lib/ruby_parser31.rb', line 10111 def _reduce_218(val, _values, result) result = new_op_asgn1 val result end |
#_reduce_219(val, _values, result) ⇒ Object
10117 10118 10119 10120 10121 |
# File 'lib/ruby_parser31.rb', line 10117 def _reduce_219(val, _values, result) result = new_op_asgn2 val result end |
#_reduce_22(val, _values, result) ⇒ Object
9066 9067 9068 9069 9070 |
# File 'lib/ruby_parser31.rb', line 9066 def _reduce_22(val, _values, result) result = val[2] # wtf? result end |
#_reduce_220(val, _values, result) ⇒ Object
10123 10124 10125 10126 10127 |
# File 'lib/ruby_parser31.rb', line 10123 def _reduce_220(val, _values, result) result = new_op_asgn2 val result end |
#_reduce_221(val, _values, result) ⇒ Object
10129 10130 10131 10132 10133 10134 10135 |
# File 'lib/ruby_parser31.rb', line 10129 def _reduce_221(val, _values, result) lhs, _, (id, _line), (op, _), rhs = val result = s(:op_asgn, lhs, rhs, id.to_sym, op.to_sym).line lhs.line result end |
#_reduce_222(val, _values, result) ⇒ Object
10137 10138 10139 10140 10141 10142 10143 10144 |
# File 'lib/ruby_parser31.rb', line 10137 def _reduce_222(val, _values, result) lhs1, _, (lhs2, _line), op, rhs = val lhs = s(:colon2, lhs1, lhs2.to_sym).line lhs1.line result = new_const_op_asgn [lhs, op, rhs] result end |
#_reduce_223(val, _values, result) ⇒ Object
10146 10147 10148 10149 10150 10151 10152 10153 |
# File 'lib/ruby_parser31.rb', line 10146 def _reduce_223(val, _values, result) _, lhs, op, rhs = val lhs = wrap :colon3, lhs result = new_const_op_asgn [lhs, op, rhs] result end |
#_reduce_224(val, _values, result) ⇒ Object
10155 10156 10157 10158 10159 10160 10161 |
# File 'lib/ruby_parser31.rb', line 10155 def _reduce_224(val, _values, result) # TODO: lhs = var_field val[0] asgn = new_op_asgn val result = self.backref_assign_error asgn result end |
#_reduce_225(val, _values, result) ⇒ Object
10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 |
# File 'lib/ruby_parser31.rb', line 10163 def _reduce_225(val, _values, result) v1, v2 = val[0], val[2] if v1.sexp_type == :lit and v2.sexp_type == :lit and Integer === v1.last and Integer === v2.last then result = s(:lit, (v1.last)..(v2.last)).line v1.line else result = s(:dot2, v1, v2).line v1.line end result end |
#_reduce_226(val, _values, result) ⇒ Object
10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 |
# File 'lib/ruby_parser31.rb', line 10174 def _reduce_226(val, _values, result) v1, v2 = val[0], val[2] if v1.sexp_type == :lit and v2.sexp_type == :lit and Integer === v1.last and Integer === v2.last then result = s(:lit, (v1.last)...(v2.last)).line v1.line else result = s(:dot3, v1, v2).line v1.line end result end |
#_reduce_227(val, _values, result) ⇒ Object
10185 10186 10187 10188 10189 10190 10191 10192 |
# File 'lib/ruby_parser31.rb', line 10185 def _reduce_227(val, _values, result) v1, _ = val v2 = nil result = s(:dot2, v1, v2).line v1.line result end |
#_reduce_228(val, _values, result) ⇒ Object
10194 10195 10196 10197 10198 10199 10200 10201 |
# File 'lib/ruby_parser31.rb', line 10194 def _reduce_228(val, _values, result) v1, _ = val v2 = nil result = s(:dot3, v1, v2).line v1.line result end |
#_reduce_229(val, _values, result) ⇒ Object
10203 10204 10205 10206 10207 10208 10209 10210 |
# File 'lib/ruby_parser31.rb', line 10203 def _reduce_229(val, _values, result) _, v2, = val v1 = nil result = s(:dot2, v1, v2).line v2.line result end |
#_reduce_23(val, _values, result) ⇒ Object
9072 9073 9074 9075 9076 |
# File 'lib/ruby_parser31.rb', line 9072 def _reduce_23(val, _values, result) lexer.lex_state = EXPR_FNAME result end |
#_reduce_230(val, _values, result) ⇒ Object
10212 10213 10214 10215 10216 10217 10218 10219 |
# File 'lib/ruby_parser31.rb', line 10212 def _reduce_230(val, _values, result) _, v2 = val v1 = nil result = s(:dot3, v1, v2).line v2.line result end |
#_reduce_231(val, _values, result) ⇒ Object
10221 10222 10223 10224 10225 |
# File 'lib/ruby_parser31.rb', line 10221 def _reduce_231(val, _values, result) result = new_call val[0], :+, argl(val[2]) result end |
#_reduce_232(val, _values, result) ⇒ Object
10227 10228 10229 10230 10231 |
# File 'lib/ruby_parser31.rb', line 10227 def _reduce_232(val, _values, result) result = new_call val[0], :-, argl(val[2]) result end |
#_reduce_233(val, _values, result) ⇒ Object
10233 10234 10235 10236 10237 |
# File 'lib/ruby_parser31.rb', line 10233 def _reduce_233(val, _values, result) result = new_call val[0], :*, argl(val[2]) result end |
#_reduce_234(val, _values, result) ⇒ Object
10239 10240 10241 10242 10243 |
# File 'lib/ruby_parser31.rb', line 10239 def _reduce_234(val, _values, result) result = new_call val[0], :"/", argl(val[2]) result end |
#_reduce_235(val, _values, result) ⇒ Object
10245 10246 10247 10248 10249 |
# File 'lib/ruby_parser31.rb', line 10245 def _reduce_235(val, _values, result) result = new_call val[0], :"%", argl(val[2]) result end |
#_reduce_236(val, _values, result) ⇒ Object
10251 10252 10253 10254 10255 |
# File 'lib/ruby_parser31.rb', line 10251 def _reduce_236(val, _values, result) result = new_call val[0], :**, argl(val[2]) result end |
#_reduce_237(val, _values, result) ⇒ Object
10257 10258 10259 10260 10261 10262 10263 10264 |
# File 'lib/ruby_parser31.rb', line 10257 def _reduce_237(val, _values, result) _, num, _, arg = val lit = wrap :lit, num result = new_call(new_call(lit, :"**", argl(arg)), :"-@") result end |
#_reduce_238(val, _values, result) ⇒ Object
10266 10267 10268 10269 10270 |
# File 'lib/ruby_parser31.rb', line 10266 def _reduce_238(val, _values, result) result = new_call val[1], :"+@" result end |
#_reduce_239(val, _values, result) ⇒ Object
10272 10273 10274 10275 10276 |
# File 'lib/ruby_parser31.rb', line 10272 def _reduce_239(val, _values, result) result = new_call val[1], :"-@" result end |
#_reduce_24(val, _values, result) ⇒ Object
9078 9079 9080 9081 9082 9083 |
# File 'lib/ruby_parser31.rb', line 9078 def _reduce_24(val, _values, result) (_, line), lhs, _, rhs = val result = s(:alias, lhs, rhs).line(line).line line result end |
#_reduce_240(val, _values, result) ⇒ Object
10278 10279 10280 10281 10282 |
# File 'lib/ruby_parser31.rb', line 10278 def _reduce_240(val, _values, result) result = new_call val[0], :"|", argl(val[2]) result end |
#_reduce_241(val, _values, result) ⇒ Object
10284 10285 10286 10287 10288 |
# File 'lib/ruby_parser31.rb', line 10284 def _reduce_241(val, _values, result) result = new_call val[0], :"^", argl(val[2]) result end |
#_reduce_242(val, _values, result) ⇒ Object
10290 10291 10292 10293 10294 |
# File 'lib/ruby_parser31.rb', line 10290 def _reduce_242(val, _values, result) result = new_call val[0], :"&", argl(val[2]) result end |
#_reduce_243(val, _values, result) ⇒ Object
10296 10297 10298 10299 10300 |
# File 'lib/ruby_parser31.rb', line 10296 def _reduce_243(val, _values, result) result = new_call val[0], :"<=>", argl(val[2]) result end |
#_reduce_245(val, _values, result) ⇒ Object
reduce 244 omitted
10304 10305 10306 10307 10308 |
# File 'lib/ruby_parser31.rb', line 10304 def _reduce_245(val, _values, result) result = new_call val[0], :"==", argl(val[2]) result end |
#_reduce_246(val, _values, result) ⇒ Object
10310 10311 10312 10313 10314 |
# File 'lib/ruby_parser31.rb', line 10310 def _reduce_246(val, _values, result) result = new_call val[0], :"===", argl(val[2]) result end |
#_reduce_247(val, _values, result) ⇒ Object
10316 10317 10318 10319 10320 |
# File 'lib/ruby_parser31.rb', line 10316 def _reduce_247(val, _values, result) result = new_call val[0], :"!=", argl(val[2]) result end |
#_reduce_248(val, _values, result) ⇒ Object
10322 10323 10324 10325 10326 10327 |
# File 'lib/ruby_parser31.rb', line 10322 def _reduce_248(val, _values, result) lhs, _, rhs = val result = new_match lhs, rhs result end |
#_reduce_249(val, _values, result) ⇒ Object
10329 10330 10331 10332 10333 10334 |
# File 'lib/ruby_parser31.rb', line 10329 def _reduce_249(val, _values, result) lhs, _, rhs = val result = s(:not, new_match(lhs, rhs)).line lhs.line result end |
#_reduce_25(val, _values, result) ⇒ Object
9085 9086 9087 9088 9089 9090 |
# File 'lib/ruby_parser31.rb', line 9085 def _reduce_25(val, _values, result) (_, line), (lhs, _), (rhs, _) = val result = s(:valias, lhs.to_sym, rhs.to_sym).line line result end |
#_reduce_250(val, _values, result) ⇒ Object
10336 10337 10338 10339 10340 10341 10342 |
# File 'lib/ruby_parser31.rb', line 10336 def _reduce_250(val, _values, result) _, arg = val result = new_call arg, :"!" result.line arg.line result end |
#_reduce_251(val, _values, result) ⇒ Object
10344 10345 10346 10347 10348 |
# File 'lib/ruby_parser31.rb', line 10344 def _reduce_251(val, _values, result) result = new_call value_expr(val[1]), :"~" result end |
#_reduce_252(val, _values, result) ⇒ Object
10350 10351 10352 10353 10354 10355 10356 |
# File 'lib/ruby_parser31.rb', line 10350 def _reduce_252(val, _values, result) val[0] = value_expr val[0] val[2] = value_expr val[2] result = new_call val[0], :"\<\<", argl(val[2]) result end |
#_reduce_253(val, _values, result) ⇒ Object
10358 10359 10360 10361 10362 10363 10364 |
# File 'lib/ruby_parser31.rb', line 10358 def _reduce_253(val, _values, result) val[0] = value_expr val[0] val[2] = value_expr val[2] result = new_call val[0], :">>", argl(val[2]) result end |
#_reduce_254(val, _values, result) ⇒ Object
10366 10367 10368 10369 10370 |
# File 'lib/ruby_parser31.rb', line 10366 def _reduce_254(val, _values, result) result = logical_op :and, val[0], val[2] result end |
#_reduce_255(val, _values, result) ⇒ Object
10372 10373 10374 10375 10376 |
# File 'lib/ruby_parser31.rb', line 10372 def _reduce_255(val, _values, result) result = logical_op :or, val[0], val[2] result end |
#_reduce_256(val, _values, result) ⇒ Object
10378 10379 10380 10381 10382 10383 |
# File 'lib/ruby_parser31.rb', line 10378 def _reduce_256(val, _values, result) (_, line), _, arg = val result = s(:defined, arg).line line result end |
#_reduce_257(val, _values, result) ⇒ Object
10385 10386 10387 10388 10389 10390 |
# File 'lib/ruby_parser31.rb', line 10385 def _reduce_257(val, _values, result) c, _, t, _, _, f = val result = s(:if, c, t, f).line c.line result end |
#_reduce_258(val, _values, result) ⇒ Object
10392 10393 10394 10395 10396 |
# File 'lib/ruby_parser31.rb', line 10392 def _reduce_258(val, _values, result) result = new_endless_defn val result end |
#_reduce_259(val, _values, result) ⇒ Object
10398 10399 10400 10401 10402 |
# File 'lib/ruby_parser31.rb', line 10398 def _reduce_259(val, _values, result) result = new_endless_defn val result end |
#_reduce_26(val, _values, result) ⇒ Object
9092 9093 9094 9095 9096 9097 |
# File 'lib/ruby_parser31.rb', line 9092 def _reduce_26(val, _values, result) (_, line), (lhs, _), (rhs, _) = val result = s(:valias, lhs.to_sym, :"$#{rhs}").line line result end |
#_reduce_260(val, _values, result) ⇒ Object
10404 10405 10406 10407 10408 |
# File 'lib/ruby_parser31.rb', line 10404 def _reduce_260(val, _values, result) result = new_endless_defs val result end |
#_reduce_261(val, _values, result) ⇒ Object
10410 10411 10412 10413 10414 |
# File 'lib/ruby_parser31.rb', line 10410 def _reduce_261(val, _values, result) result = new_endless_defs val result end |
#_reduce_267(val, _values, result) ⇒ Object
reduce 266 omitted
10426 10427 10428 10429 10430 10431 |
# File 'lib/ruby_parser31.rb', line 10426 def _reduce_267(val, _values, result) lhs, (op, _), rhs = val result = new_call lhs, op.to_sym, argl(rhs) result end |
#_reduce_268(val, _values, result) ⇒ Object
10433 10434 10435 10436 10437 10438 10439 |
# File 'lib/ruby_parser31.rb', line 10433 def _reduce_268(val, _values, result) lhs, (op, _), rhs = val warn "comparison '%s' after comparison", op result = new_call lhs, op.to_sym, argl(rhs) result end |
#_reduce_269(val, _values, result) ⇒ Object
10441 10442 10443 10444 10445 |
# File 'lib/ruby_parser31.rb', line 10441 def _reduce_269(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_27(val, _values, result) ⇒ Object
9099 9100 9101 9102 9103 |
# File 'lib/ruby_parser31.rb', line 9099 def _reduce_27(val, _values, result) yyerror "can't make alias for the number variables" result end |
#_reduce_271(val, _values, result) ⇒ Object
reduce 270 omitted
10449 10450 10451 10452 10453 |
# File 'lib/ruby_parser31.rb', line 10449 def _reduce_271(val, _values, result) result = args [val[0]] result end |
#_reduce_272(val, _values, result) ⇒ Object
10455 10456 10457 10458 10459 |
# File 'lib/ruby_parser31.rb', line 10455 def _reduce_272(val, _values, result) result = args [val[0], array_to_hash(val[2])] result end |
#_reduce_273(val, _values, result) ⇒ Object
10461 10462 10463 10464 10465 |
# File 'lib/ruby_parser31.rb', line 10461 def _reduce_273(val, _values, result) result = args [array_to_hash(val[0])] result end |
#_reduce_275(val, _values, result) ⇒ Object
reduce 274 omitted
10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 |
# File 'lib/ruby_parser31.rb', line 10469 def _reduce_275(val, _values, result) body, (_, line), resbody = val body = value_expr body resbody = remove_begin resbody ary = s(:array).line line result = new_rescue(body, new_resbody(ary, resbody)) result end |
#_reduce_276(val, _values, result) ⇒ Object
10480 10481 10482 10483 10484 10485 10486 10487 |
# File 'lib/ruby_parser31.rb', line 10480 def _reduce_276(val, _values, result) _, args, (_, line_max) = val result = args result.line_max = line_max if args result end |
#_reduce_277(val, _values, result) ⇒ Object
10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 |
# File 'lib/ruby_parser31.rb', line 10489 def _reduce_277(val, _values, result) yyerror "Unexpected ..." unless self.lexer.is_local_id(:"*") && self.lexer.is_local_id(:"**") && self.lexer.is_local_id(:"&") result = call_args val result end |
#_reduce_278(val, _values, result) ⇒ Object
10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 |
# File 'lib/ruby_parser31.rb', line 10500 def _reduce_278(val, _values, result) yyerror "Unexpected ..." unless self.lexer.is_local_id(:"*") && self.lexer.is_local_id(:"**") && self.lexer.is_local_id(:"&") result = call_args val result end |
#_reduce_28(val, _values, result) ⇒ Object
9105 9106 9107 9108 9109 |
# File 'lib/ruby_parser31.rb', line 9105 def _reduce_28(val, _values, result) result = val[1] result end |
#_reduce_283(val, _values, result) ⇒ Object
reduce 282 omitted
10519 10520 10521 10522 10523 |
# File 'lib/ruby_parser31.rb', line 10519 def _reduce_283(val, _values, result) result = args val result end |
#_reduce_284(val, _values, result) ⇒ Object
10525 10526 10527 10528 10529 |
# File 'lib/ruby_parser31.rb', line 10525 def _reduce_284(val, _values, result) result = args [val[0], array_to_hash(val[2])] result end |
#_reduce_285(val, _values, result) ⇒ Object
10531 10532 10533 10534 10535 |
# File 'lib/ruby_parser31.rb', line 10531 def _reduce_285(val, _values, result) result = args [array_to_hash(val[0])] result end |
#_reduce_286(val, _values, result) ⇒ Object
10537 10538 10539 10540 10541 10542 |
# File 'lib/ruby_parser31.rb', line 10537 def _reduce_286(val, _values, result) warning "parenthesize argument(s) for future version" result = call_args val result end |
#_reduce_287(val, _values, result) ⇒ Object
10544 10545 10546 10547 10548 |
# File 'lib/ruby_parser31.rb', line 10544 def _reduce_287(val, _values, result) result = call_args val result end |
#_reduce_288(val, _values, result) ⇒ Object
10550 10551 10552 10553 10554 |
# File 'lib/ruby_parser31.rb', line 10550 def _reduce_288(val, _values, result) result = call_args [array_to_hash(val[0]), val[1]] result end |
#_reduce_289(val, _values, result) ⇒ Object
10556 10557 10558 10559 10560 |
# File 'lib/ruby_parser31.rb', line 10556 def _reduce_289(val, _values, result) result = call_args [val[0], array_to_hash(val[2]), val[3]] result end |
#_reduce_29(val, _values, result) ⇒ Object
9111 9112 9113 9114 9115 9116 |
# File 'lib/ruby_parser31.rb', line 9111 def _reduce_29(val, _values, result) t, _, c = val result = new_if c, t, nil result end |
#_reduce_290(val, _values, result) ⇒ Object
10562 10563 10564 10565 10566 |
# File 'lib/ruby_parser31.rb', line 10562 def _reduce_290(val, _values, result) result = call_args val result end |
#_reduce_291(val, _values, result) ⇒ Object
10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 |
# File 'lib/ruby_parser31.rb', line 10568 def _reduce_291(val, _values, result) # parse26.y line 2200 # If call_args starts with a open paren '(' or # '[', look-ahead reading of the letters calls # CMDARG_PUSH(0), but the push must be done # after CMDARG_PUSH(1). So this code makes them # consistent by first cancelling the premature # CMDARG_PUSH(0), doing CMDARG_PUSH(1), and # finally redoing CMDARG_PUSH(0). result = yychar = self.last_token_type.first lookahead = [:tLPAREN, :tLPAREN_ARG, :tLPAREN2, :tLBRACK, :tLBRACK2].include?(yychar) lexer.cmdarg.pop if lookahead lexer.cmdarg.push true lexer.cmdarg.push false if lookahead result end |
#_reduce_292(val, _values, result) ⇒ Object
10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 |
# File 'lib/ruby_parser31.rb', line 10588 def _reduce_292(val, _values, result) yychar, args = val # call_args can be followed by tLBRACE_ARG (that # does CMDARG_PUSH(0) in the lexer) but the push # must be done after CMDARG_POP() in the parser. # So this code does CMDARG_POP() to pop 0 pushed # by tLBRACE_ARG, CMDARG_POP() to pop 1 pushed # by command_args, and CMDARG_PUSH(0) to restore # back the flag set by tLBRACE_ARG. lookahead = [:tLBRACE_ARG].include?(yychar) lexer.cmdarg.pop if lookahead lexer.cmdarg.pop lexer.cmdarg.push false if lookahead result = args result end |
#_reduce_293(val, _values, result) ⇒ Object
10608 10609 10610 10611 10612 10613 |
# File 'lib/ruby_parser31.rb', line 10608 def _reduce_293(val, _values, result) _, arg = val result = s(:block_pass, arg).line arg.line result end |
#_reduce_294(val, _values, result) ⇒ Object
10615 10616 10617 10618 10619 10620 |
# File 'lib/ruby_parser31.rb', line 10615 def _reduce_294(val, _values, result) (_, line), = val result = s(:block_pass).line line result end |
#_reduce_295(val, _values, result) ⇒ Object
10622 10623 10624 10625 10626 |
# File 'lib/ruby_parser31.rb', line 10622 def _reduce_295(val, _values, result) result = val[1] result end |
#_reduce_297(val, _values, result) ⇒ Object
reduce 296 omitted
10630 10631 10632 10633 10634 10635 10636 10637 |
# File 'lib/ruby_parser31.rb', line 10630 def _reduce_297(val, _values, result) arg, = val lineno = arg.line result = s(:array, arg).line lineno result end |
#_reduce_298(val, _values, result) ⇒ Object
10639 10640 10641 10642 10643 10644 |
# File 'lib/ruby_parser31.rb', line 10639 def _reduce_298(val, _values, result) _, arg = val result = s(:array, s(:splat, arg).line(arg.line)).line arg.line result end |
#_reduce_299(val, _values, result) ⇒ Object
10646 10647 10648 10649 10650 10651 |
# File 'lib/ruby_parser31.rb', line 10646 def _reduce_299(val, _values, result) args, _, id = val result = self.list_append args, id result end |
#_reduce_3(val, _values, result) ⇒ Object
8962 8963 8964 8965 8966 8967 |
# File 'lib/ruby_parser31.rb', line 8962 def _reduce_3(val, _values, result) stmt, _ = val result = stmt result end |
#_reduce_30(val, _values, result) ⇒ Object
9118 9119 9120 9121 9122 9123 |
# File 'lib/ruby_parser31.rb', line 9118 def _reduce_30(val, _values, result) f, _, c = val result = new_if c, nil, f result end |
#_reduce_300(val, _values, result) ⇒ Object
10653 10654 10655 10656 10657 10658 |
# File 'lib/ruby_parser31.rb', line 10653 def _reduce_300(val, _values, result) args, _, (_, line), id = val result = self.list_append args, s(:splat, id).line(line) result end |
#_reduce_301(val, _values, result) ⇒ Object
10660 10661 10662 10663 10664 |
# File 'lib/ruby_parser31.rb', line 10660 def _reduce_301(val, _values, result) result = new_masgn_arg val[0] result end |
#_reduce_302(val, _values, result) ⇒ Object
10666 10667 10668 10669 10670 |
# File 'lib/ruby_parser31.rb', line 10666 def _reduce_302(val, _values, result) result = new_masgn_arg val[0], :wrap result end |
#_reduce_303(val, _values, result) ⇒ Object
10672 10673 10674 10675 10676 |
# File 'lib/ruby_parser31.rb', line 10672 def _reduce_303(val, _values, result) result = val[0] << val[2] result end |
#_reduce_304(val, _values, result) ⇒ Object
10678 10679 10680 10681 10682 10683 |
# File 'lib/ruby_parser31.rb', line 10678 def _reduce_304(val, _values, result) arg, _, _, splat = val result = self.arg_concat arg, splat result end |
#_reduce_305(val, _values, result) ⇒ Object
10685 10686 10687 10688 10689 10690 |
# File 'lib/ruby_parser31.rb', line 10685 def _reduce_305(val, _values, result) _, arg = val result = s(:splat, arg).line arg.line result end |
#_reduce_31(val, _values, result) ⇒ Object
9125 9126 9127 9128 9129 9130 |
# File 'lib/ruby_parser31.rb', line 9125 def _reduce_31(val, _values, result) e, _, c = val result = new_while e, c, true result end |
#_reduce_316(val, _values, result) ⇒ Object
reduce 315 omitted
10712 10713 10714 10715 10716 10717 10718 |
# File 'lib/ruby_parser31.rb', line 10712 def _reduce_316(val, _values, result) (msg, line), = val result = new_call nil, msg.to_sym result.line line result end |
#_reduce_317(val, _values, result) ⇒ Object
10720 10721 10722 10723 10724 |
# File 'lib/ruby_parser31.rb', line 10720 def _reduce_317(val, _values, result) lexer.cmdarg.push false result end |
#_reduce_318(val, _values, result) ⇒ Object
10726 10727 10728 10729 10730 10731 |
# File 'lib/ruby_parser31.rb', line 10726 def _reduce_318(val, _values, result) lexer.cmdarg.pop result = new_begin val result end |
#_reduce_319(val, _values, result) ⇒ Object
10733 10734 10735 10736 10737 |
# File 'lib/ruby_parser31.rb', line 10733 def _reduce_319(val, _values, result) lexer.lex_state = EXPR_ENDARG result end |
#_reduce_32(val, _values, result) ⇒ Object
9132 9133 9134 9135 9136 9137 |
# File 'lib/ruby_parser31.rb', line 9132 def _reduce_32(val, _values, result) e, _, c = val result = new_until e, c, true result end |
#_reduce_320(val, _values, result) ⇒ Object
10739 10740 10741 10742 10743 10744 |
# File 'lib/ruby_parser31.rb', line 10739 def _reduce_320(val, _values, result) (_, line), _, _ = val result = s(:begin).line line result end |
#_reduce_321(val, _values, result) ⇒ Object
10746 10747 10748 10749 10750 |
# File 'lib/ruby_parser31.rb', line 10746 def _reduce_321(val, _values, result) lexer.lex_state = EXPR_ENDARG result end |
#_reduce_322(val, _values, result) ⇒ Object
10752 10753 10754 10755 10756 10757 10758 |
# File 'lib/ruby_parser31.rb', line 10752 def _reduce_322(val, _values, result) _, stmt, _, _, = val # warning "(...) interpreted as grouped expression" result = stmt result end |
#_reduce_323(val, _values, result) ⇒ Object
10760 10761 10762 10763 10764 10765 10766 |
# File 'lib/ruby_parser31.rb', line 10760 def _reduce_323(val, _values, result) (_, line), stmt, _ = val result = stmt || s(:nil).line(line) result.paren = true result end |
#_reduce_324(val, _values, result) ⇒ Object
10768 10769 10770 10771 10772 10773 10774 |
# File 'lib/ruby_parser31.rb', line 10768 def _reduce_324(val, _values, result) expr, _, (id, _line) = val result = s(:colon2, expr, id.to_sym).line expr.line result end |
#_reduce_325(val, _values, result) ⇒ Object
10776 10777 10778 10779 10780 |
# File 'lib/ruby_parser31.rb', line 10776 def _reduce_325(val, _values, result) result = wrap :colon3, val[1] result end |
#_reduce_326(val, _values, result) ⇒ Object
10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 |
# File 'lib/ruby_parser31.rb', line 10782 def _reduce_326(val, _values, result) (_, line), args, (_, line_max) = val result = args || s(:array) result.sexp_type = :array # aref_args is :args result.line line result.line_max = line_max result end |
#_reduce_327(val, _values, result) ⇒ Object
10793 10794 10795 10796 10797 |
# File 'lib/ruby_parser31.rb', line 10793 def _reduce_327(val, _values, result) result = self.lexer.lineno result end |
#_reduce_328(val, _values, result) ⇒ Object
10799 10800 10801 10802 10803 |
# File 'lib/ruby_parser31.rb', line 10799 def _reduce_328(val, _values, result) result = new_hash val result end |
#_reduce_329(val, _values, result) ⇒ Object
10805 10806 10807 10808 10809 10810 |
# File 'lib/ruby_parser31.rb', line 10805 def _reduce_329(val, _values, result) (_, line), = val result = s(:return).line line result end |
#_reduce_33(val, _values, result) ⇒ Object
9139 9140 9141 9142 9143 9144 9145 9146 |
# File 'lib/ruby_parser31.rb', line 9139 def _reduce_33(val, _values, result) body, _, resbody = val resbody = new_resbody s(:array).line(resbody.line), resbody result = new_rescue body, resbody result end |
#_reduce_330(val, _values, result) ⇒ Object
10812 10813 10814 10815 10816 10817 10818 |
# File 'lib/ruby_parser31.rb', line 10812 def _reduce_330(val, _values, result) (_, line), _, args, _ = val result = new_yield(args).line line result end |
#_reduce_331(val, _values, result) ⇒ Object
10820 10821 10822 10823 10824 10825 10826 |
# File 'lib/ruby_parser31.rb', line 10820 def _reduce_331(val, _values, result) (_, line), _, _ = val result = new_yield.line line result end |
#_reduce_332(val, _values, result) ⇒ Object
10828 10829 10830 10831 10832 10833 10834 |
# File 'lib/ruby_parser31.rb', line 10828 def _reduce_332(val, _values, result) (_, line), = val result = new_yield.line line result end |
#_reduce_333(val, _values, result) ⇒ Object
10836 10837 10838 10839 10840 10841 10842 |
# File 'lib/ruby_parser31.rb', line 10836 def _reduce_333(val, _values, result) (_, line), _, _, arg, _ = val result = s(:defined, arg).line line result end |
#_reduce_334(val, _values, result) ⇒ Object
10844 10845 10846 10847 10848 10849 |
# File 'lib/ruby_parser31.rb', line 10844 def _reduce_334(val, _values, result) _, _, lhs, _ = val result = new_call lhs, :"!" result end |
#_reduce_335(val, _values, result) ⇒ Object
10851 10852 10853 10854 10855 |
# File 'lib/ruby_parser31.rb', line 10851 def _reduce_335(val, _values, result) debug 9 result end |
#_reduce_336(val, _values, result) ⇒ Object
10857 10858 10859 10860 10861 10862 10863 10864 10865 |
# File 'lib/ruby_parser31.rb', line 10857 def _reduce_336(val, _values, result) call, iter = val iter.insert 1, call result = iter # FIX: probably not: call.line = iter.line result end |
#_reduce_338(val, _values, result) ⇒ Object
reduce 337 omitted
10869 10870 10871 10872 10873 10874 10875 10876 |
# File 'lib/ruby_parser31.rb', line 10869 def _reduce_338(val, _values, result) call, iter = val[0], val[1] block_dup_check call, iter iter.insert 1, call # FIX result = iter result end |
#_reduce_339(val, _values, result) ⇒ Object
10878 10879 10880 10881 10882 10883 |
# File 'lib/ruby_parser31.rb', line 10878 def _reduce_339(val, _values, result) expr, = val result = expr result end |
#_reduce_34(val, _values, result) ⇒ Object
9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 |
# File 'lib/ruby_parser31.rb', line 9148 def _reduce_34(val, _values, result) (_, line), _, stmt, _ = val if (self.in_def || self.in_single > 0) then debug 3 yyerror "END in method; use at_exit" end result = new_iter s(:postexe).line(line), 0, stmt result end |
#_reduce_340(val, _values, result) ⇒ Object
10885 10886 10887 10888 10889 10890 |
# File 'lib/ruby_parser31.rb', line 10885 def _reduce_340(val, _values, result) _, c, _, t, f, _ = val result = new_if c, t, f result end |
#_reduce_341(val, _values, result) ⇒ Object
10892 10893 10894 10895 10896 10897 |
# File 'lib/ruby_parser31.rb', line 10892 def _reduce_341(val, _values, result) _, c, _, t, f, _ = val result = new_if c, f, t result end |
#_reduce_342(val, _values, result) ⇒ Object
10899 10900 10901 10902 10903 10904 |
# File 'lib/ruby_parser31.rb', line 10899 def _reduce_342(val, _values, result) _, cond, body, _ = val result = new_while body, cond, true result end |
#_reduce_343(val, _values, result) ⇒ Object
10906 10907 10908 10909 10910 10911 |
# File 'lib/ruby_parser31.rb', line 10906 def _reduce_343(val, _values, result) _, cond, body, _ = val result = new_until body, cond, true result end |
#_reduce_344(val, _values, result) ⇒ Object
10913 10914 10915 10916 10917 10918 |
# File 'lib/ruby_parser31.rb', line 10913 def _reduce_344(val, _values, result) (_, line), expr, _, body, _ = val result = new_case expr, body, line result end |
#_reduce_345(val, _values, result) ⇒ Object
10920 10921 10922 10923 10924 10925 |
# File 'lib/ruby_parser31.rb', line 10920 def _reduce_345(val, _values, result) (_, line), _, body, _ = val result = new_case nil, body, line result end |
#_reduce_346(val, _values, result) ⇒ Object
10927 10928 10929 10930 10931 10932 10933 |
# File 'lib/ruby_parser31.rb', line 10927 def _reduce_346(val, _values, result) (_, line), expr, _, body, _ = val result = new_case expr, body, line result end |
#_reduce_347(val, _values, result) ⇒ Object
10935 10936 10937 10938 10939 10940 |
# File 'lib/ruby_parser31.rb', line 10935 def _reduce_347(val, _values, result) _, var, _, iter, body, _ = val result = new_for iter, var, body result end |
#_reduce_348(val, _values, result) ⇒ Object
10942 10943 10944 10945 10946 10947 10948 10949 |
# File 'lib/ruby_parser31.rb', line 10942 def _reduce_348(val, _values, result) if (self.in_def || self.in_single > 0) then yyerror "class definition in method body" end self.env.extend result end |
#_reduce_349(val, _values, result) ⇒ Object
10951 10952 10953 10954 10955 10956 |
# File 'lib/ruby_parser31.rb', line 10951 def _reduce_349(val, _values, result) result = new_class val self.env.unextend result end |
#_reduce_350(val, _values, result) ⇒ Object
10958 10959 10960 10961 10962 10963 |
# File 'lib/ruby_parser31.rb', line 10958 def _reduce_350(val, _values, result) result = self.in_def self.in_def = false result end |
#_reduce_351(val, _values, result) ⇒ Object
10965 10966 10967 10968 10969 10970 10971 |
# File 'lib/ruby_parser31.rb', line 10965 def _reduce_351(val, _values, result) result = self.in_single self.in_single = 0 self.env.extend result end |
#_reduce_352(val, _values, result) ⇒ Object
10973 10974 10975 10976 10977 10978 |
# File 'lib/ruby_parser31.rb', line 10973 def _reduce_352(val, _values, result) result = new_sclass val self.env.unextend result end |
#_reduce_353(val, _values, result) ⇒ Object
10980 10981 10982 10983 10984 10985 10986 10987 |
# File 'lib/ruby_parser31.rb', line 10980 def _reduce_353(val, _values, result) yyerror "module definition in method body" if self.in_def or self.in_single > 0 self.env.extend result end |
#_reduce_354(val, _values, result) ⇒ Object
10989 10990 10991 10992 10993 10994 |
# File 'lib/ruby_parser31.rb', line 10989 def _reduce_354(val, _values, result) result = new_module val self.env.unextend result end |
#_reduce_355(val, _values, result) ⇒ Object
10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 |
# File 'lib/ruby_parser31.rb', line 10996 def _reduce_355(val, _values, result) result, in_def = new_defn val lexer.cond.pop # group = local_pop lexer.cmdarg.pop self.env.unextend self.in_def = in_def result end |
#_reduce_356(val, _values, result) ⇒ Object
11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 |
# File 'lib/ruby_parser31.rb', line 11007 def _reduce_356(val, _values, result) result, in_def = new_defs val lexer.cond.pop # group = local_pop lexer.cmdarg.pop self.env.unextend self.in_def = in_def self.in_single -= 1 # TODO: restore cur_arg ? what's cur_arg? result end |
#_reduce_357(val, _values, result) ⇒ Object
11022 11023 11024 11025 11026 11027 |
# File 'lib/ruby_parser31.rb', line 11022 def _reduce_357(val, _values, result) (_, line), = val result = s(:break).line line result end |
#_reduce_358(val, _values, result) ⇒ Object
11029 11030 11031 11032 11033 11034 |
# File 'lib/ruby_parser31.rb', line 11029 def _reduce_358(val, _values, result) (_, line), = val result = s(:next).line line result end |
#_reduce_359(val, _values, result) ⇒ Object
11036 11037 11038 11039 11040 11041 |
# File 'lib/ruby_parser31.rb', line 11036 def _reduce_359(val, _values, result) (_, line), = val result = s(:redo).line line result end |
#_reduce_36(val, _values, result) ⇒ Object
reduce 35 omitted
9163 9164 9165 9166 9167 |
# File 'lib/ruby_parser31.rb', line 9163 def _reduce_36(val, _values, result) result = new_masgn val[0], val[2], :wrap result end |
#_reduce_360(val, _values, result) ⇒ Object
11043 11044 11045 11046 11047 11048 |
# File 'lib/ruby_parser31.rb', line 11043 def _reduce_360(val, _values, result) (_, line), = val result = s(:retry).line line result end |
#_reduce_361(val, _values, result) ⇒ Object
11050 11051 11052 11053 11054 |
# File 'lib/ruby_parser31.rb', line 11050 def _reduce_361(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_369(val, _values, result) ⇒ Object
reduce 368 omitted
11070 11071 11072 11073 11074 |
# File 'lib/ruby_parser31.rb', line 11070 def _reduce_369(val, _values, result) result << self.lexer.comment result end |
#_reduce_37(val, _values, result) ⇒ Object
9169 9170 9171 9172 9173 9174 9175 |
# File 'lib/ruby_parser31.rb', line 9169 def _reduce_37(val, _values, result) lhs, _, rhs = val result = new_assign lhs, s(:svalue, rhs).line(rhs.line) result end |
#_reduce_370(val, _values, result) ⇒ Object
11076 11077 11078 11079 11080 |
# File 'lib/ruby_parser31.rb', line 11076 def _reduce_370(val, _values, result) result << self.lexer.comment result end |
#_reduce_371(val, _values, result) ⇒ Object
11082 11083 11084 11085 11086 11087 |
# File 'lib/ruby_parser31.rb', line 11082 def _reduce_371(val, _values, result) self.in_argdef = true result << self.lexer.comment result end |
#_reduce_38(val, _values, result) ⇒ Object
9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 |
# File 'lib/ruby_parser31.rb', line 9177 def _reduce_38(val, _values, result) # unwraps s(:to_ary, rhs) lhs, _, (_, rhs), _, resbody = val resbody = new_resbody s(:array).line(resbody.line), resbody result = new_masgn lhs, new_rescue(rhs, resbody), :wrap result end |
#_reduce_387(val, _values, result) ⇒ Object
reduce 386 omitted
11119 11120 11121 11122 11123 11124 11125 |
# File 'lib/ruby_parser31.rb', line 11119 def _reduce_387(val, _values, result) (_, line), c, _, t, rest = val result = s(:if, c, t, rest).line line result end |
#_reduce_389(val, _values, result) ⇒ Object
reduce 388 omitted
11129 11130 11131 11132 11133 |
# File 'lib/ruby_parser31.rb', line 11129 def _reduce_389(val, _values, result) result = val[1] result end |
#_reduce_39(val, _values, result) ⇒ Object
9188 9189 9190 9191 9192 |
# File 'lib/ruby_parser31.rb', line 9188 def _reduce_39(val, _values, result) result = new_masgn val[0], val[2] result end |
#_reduce_391(val, _values, result) ⇒ Object
reduce 390 omitted
11137 11138 11139 11140 11141 |
# File 'lib/ruby_parser31.rb', line 11137 def _reduce_391(val, _values, result) val[0].delete_at 1 if val[0][1].nil? # HACK result end |
#_reduce_392(val, _values, result) ⇒ Object
11143 11144 11145 11146 11147 11148 11149 |
# File 'lib/ruby_parser31.rb', line 11143 def _reduce_392(val, _values, result) (sym, line), = val result = s(:dummy, sym).line line result end |
#_reduce_393(val, _values, result) ⇒ Object
11151 11152 11153 11154 11155 11156 |
# File 'lib/ruby_parser31.rb', line 11151 def _reduce_393(val, _values, result) _, args, _ = val result = args result end |
#_reduce_394(val, _values, result) ⇒ Object
11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 |
# File 'lib/ruby_parser31.rb', line 11158 def _reduce_394(val, _values, result) arg, = val line = arg.line arg = arg.last if arg.sexp_type == :dummy result = s(:array, arg).line line result end |
#_reduce_395(val, _values, result) ⇒ Object
11169 11170 11171 11172 11173 11174 11175 11176 11177 |
# File 'lib/ruby_parser31.rb', line 11169 def _reduce_395(val, _values, result) args, _, arg = val arg = arg.last if arg.sexp_type == :dummy result = list_append args, arg result end |
#_reduce_396(val, _values, result) ⇒ Object
11179 11180 11181 11182 11183 11184 11185 |
# File 'lib/ruby_parser31.rb', line 11179 def _reduce_396(val, _values, result) args, = val result = block_var args result end |
#_reduce_397(val, _values, result) ⇒ Object
11187 11188 11189 11190 11191 11192 11193 |
# File 'lib/ruby_parser31.rb', line 11187 def _reduce_397(val, _values, result) args, _, rest = val result = block_var args, rest result end |
#_reduce_398(val, _values, result) ⇒ Object
11195 11196 11197 11198 11199 11200 11201 |
# File 'lib/ruby_parser31.rb', line 11195 def _reduce_398(val, _values, result) lhs, _, splat, _, rhs = val result = block_var lhs, splat, rhs result end |
#_reduce_399(val, _values, result) ⇒ Object
11203 11204 11205 11206 11207 11208 11209 |
# File 'lib/ruby_parser31.rb', line 11203 def _reduce_399(val, _values, result) rest, = val result = block_var rest result end |
#_reduce_400(val, _values, result) ⇒ Object
11211 11212 11213 11214 11215 11216 11217 |
# File 'lib/ruby_parser31.rb', line 11211 def _reduce_400(val, _values, result) splat, _, rest = val result = block_var splat, rest result end |
#_reduce_401(val, _values, result) ⇒ Object
11219 11220 11221 11222 11223 11224 11225 11226 |
# File 'lib/ruby_parser31.rb', line 11219 def _reduce_401(val, _values, result) _, (id, line) = val result = args ["*#{id}".to_sym] result.line line result end |
#_reduce_402(val, _values, result) ⇒ Object
11228 11229 11230 11231 11232 11233 |
# File 'lib/ruby_parser31.rb', line 11228 def _reduce_402(val, _values, result) (_, line), = val result = args([:*]).line line result end |
#_reduce_405(val, _values, result) ⇒ Object
reduce 404 omitted
11239 11240 11241 11242 |
# File 'lib/ruby_parser31.rb', line 11239 def _reduce_405(val, _values, result) self.in_argdef = false result end |
#_reduce_407(val, _values, result) ⇒ Object
reduce 406 omitted
11246 11247 11248 11249 11250 |
# File 'lib/ruby_parser31.rb', line 11246 def _reduce_407(val, _values, result) result = call_args val result end |
#_reduce_408(val, _values, result) ⇒ Object
11252 11253 11254 11255 11256 |
# File 'lib/ruby_parser31.rb', line 11252 def _reduce_408(val, _values, result) result = call_args val result end |
#_reduce_409(val, _values, result) ⇒ Object
11258 11259 11260 11261 11262 |
# File 'lib/ruby_parser31.rb', line 11258 def _reduce_409(val, _values, result) result = call_args val result end |
#_reduce_41(val, _values, result) ⇒ Object
reduce 40 omitted
9196 9197 9198 9199 9200 |
# File 'lib/ruby_parser31.rb', line 9196 def _reduce_41(val, _values, result) result = new_assign val[0], val[2] result end |
#_reduce_410(val, _values, result) ⇒ Object
11264 11265 11266 11267 11268 11269 11270 |
# File 'lib/ruby_parser31.rb', line 11264 def _reduce_410(val, _values, result) (id, line), = val result = call_args [id] result.line line result end |
#_reduce_411(val, _values, result) ⇒ Object
11272 11273 11274 11275 11276 |
# File 'lib/ruby_parser31.rb', line 11272 def _reduce_411(val, _values, result) result = args val result end |
#_reduce_413(val, _values, result) ⇒ Object
reduce 412 omitted
11280 11281 11282 11283 11284 |
# File 'lib/ruby_parser31.rb', line 11280 def _reduce_413(val, _values, result) result = s(:WTF_COMMA!) result end |
#_reduce_414(val, _values, result) ⇒ Object
11286 11287 11288 11289 11290 |
# File 'lib/ruby_parser31.rb', line 11286 def _reduce_414(val, _values, result) result = args val result end |
#_reduce_415(val, _values, result) ⇒ Object
11292 11293 11294 11295 11296 |
# File 'lib/ruby_parser31.rb', line 11292 def _reduce_415(val, _values, result) result = args val result end |
#_reduce_416(val, _values, result) ⇒ Object
11298 11299 11300 11301 11302 |
# File 'lib/ruby_parser31.rb', line 11298 def _reduce_416(val, _values, result) result = args val result end |
#_reduce_417(val, _values, result) ⇒ Object
11304 11305 11306 11307 11308 |
# File 'lib/ruby_parser31.rb', line 11304 def _reduce_417(val, _values, result) result = args val result end |
#_reduce_418(val, _values, result) ⇒ Object
11310 11311 11312 11313 11314 |
# File 'lib/ruby_parser31.rb', line 11310 def _reduce_418(val, _values, result) result = args val result end |
#_reduce_419(val, _values, result) ⇒ Object
11316 11317 11318 11319 11320 11321 |
# File 'lib/ruby_parser31.rb', line 11316 def _reduce_419(val, _values, result) arg, _ = val result = arg << nil result end |
#_reduce_42(val, _values, result) ⇒ Object
9202 9203 9204 9205 9206 |
# File 'lib/ruby_parser31.rb', line 9202 def _reduce_42(val, _values, result) result = new_op_asgn val result end |
#_reduce_420(val, _values, result) ⇒ Object
11323 11324 11325 11326 11327 |
# File 'lib/ruby_parser31.rb', line 11323 def _reduce_420(val, _values, result) result = args val result end |
#_reduce_421(val, _values, result) ⇒ Object
11329 11330 11331 11332 11333 |
# File 'lib/ruby_parser31.rb', line 11329 def _reduce_421(val, _values, result) result = args val result end |
#_reduce_422(val, _values, result) ⇒ Object
11335 11336 11337 11338 11339 |
# File 'lib/ruby_parser31.rb', line 11335 def _reduce_422(val, _values, result) result = args val result end |
#_reduce_423(val, _values, result) ⇒ Object
11341 11342 11343 11344 11345 |
# File 'lib/ruby_parser31.rb', line 11341 def _reduce_423(val, _values, result) result = args val result end |
#_reduce_424(val, _values, result) ⇒ Object
11347 11348 11349 11350 11351 |
# File 'lib/ruby_parser31.rb', line 11347 def _reduce_424(val, _values, result) result = args val result end |
#_reduce_425(val, _values, result) ⇒ Object
11353 11354 11355 11356 11357 |
# File 'lib/ruby_parser31.rb', line 11353 def _reduce_425(val, _values, result) result = args val result end |
#_reduce_426(val, _values, result) ⇒ Object
11359 11360 11361 11362 11363 |
# File 'lib/ruby_parser31.rb', line 11359 def _reduce_426(val, _values, result) result = args val result end |
#_reduce_427(val, _values, result) ⇒ Object
11365 11366 11367 11368 11369 |
# File 'lib/ruby_parser31.rb', line 11365 def _reduce_427(val, _values, result) result = args val result end |
#_reduce_428(val, _values, result) ⇒ Object
11371 11372 11373 11374 11375 |
# File 'lib/ruby_parser31.rb', line 11371 def _reduce_428(val, _values, result) result = args val result end |
#_reduce_429(val, _values, result) ⇒ Object
11377 11378 11379 11380 |
# File 'lib/ruby_parser31.rb', line 11377 def _reduce_429(val, _values, result) result = 0 result end |
#_reduce_43(val, _values, result) ⇒ Object
9208 9209 9210 9211 9212 |
# File 'lib/ruby_parser31.rb', line 9208 def _reduce_43(val, _values, result) result = new_op_asgn1 val result end |
#_reduce_430(val, _values, result) ⇒ Object
11382 11383 11384 11385 11386 |
# File 'lib/ruby_parser31.rb', line 11382 def _reduce_430(val, _values, result) self.lexer.command_start = true result end |
#_reduce_431(val, _values, result) ⇒ Object
11388 11389 11390 11391 11392 11393 11394 |
# File 'lib/ruby_parser31.rb', line 11388 def _reduce_431(val, _values, result) # TODO: current_arg = 0 result = args val self.in_argdef = false result end |
#_reduce_432(val, _values, result) ⇒ Object
11396 11397 11398 11399 11400 11401 11402 |
# File 'lib/ruby_parser31.rb', line 11396 def _reduce_432(val, _values, result) (_, line), = val result = s(:args).line line result end |
#_reduce_433(val, _values, result) ⇒ Object
11404 11405 11406 11407 11408 11409 11410 |
# File 'lib/ruby_parser31.rb', line 11404 def _reduce_433(val, _values, result) # TODO: current_arg = 0 result = args val self.in_argdef = false result end |
#_reduce_435(val, _values, result) ⇒ Object
reduce 434 omitted
11414 11415 11416 11417 11418 |
# File 'lib/ruby_parser31.rb', line 11414 def _reduce_435(val, _values, result) result = args val result end |
#_reduce_436(val, _values, result) ⇒ Object
11420 11421 11422 11423 11424 |
# File 'lib/ruby_parser31.rb', line 11420 def _reduce_436(val, _values, result) result = args val result end |
#_reduce_437(val, _values, result) ⇒ Object
11426 11427 11428 11429 11430 |
# File 'lib/ruby_parser31.rb', line 11426 def _reduce_437(val, _values, result) result = args val result end |
#_reduce_438(val, _values, result) ⇒ Object
11432 11433 11434 11435 11436 |
# File 'lib/ruby_parser31.rb', line 11432 def _reduce_438(val, _values, result) result = wrap :shadow, val[0] result end |
#_reduce_44(val, _values, result) ⇒ Object
9214 9215 9216 9217 9218 9219 9220 9221 9222 |
# File 'lib/ruby_parser31.rb', line 9214 def _reduce_44(val, _values, result) prim, (call_op, _), (id, _), (op_asgn, _), rhs = val result = s(:op_asgn, prim, rhs, id.to_sym, op_asgn.to_sym) result.sexp_type = :safe_op_asgn if call_op == '&.' result.line prim.line result end |
#_reduce_440(val, _values, result) ⇒ Object
reduce 439 omitted
11440 11441 11442 11443 11444 11445 11446 11447 |
# File 'lib/ruby_parser31.rb', line 11440 def _reduce_440(val, _values, result) self.env.extend :dynamic result = lexer.lpar_beg lexer.paren_nest += 1 lexer.lpar_beg = lexer.paren_nest result end |
#_reduce_441(val, _values, result) ⇒ Object
11449 11450 11451 11452 11453 |
# File 'lib/ruby_parser31.rb', line 11449 def _reduce_441(val, _values, result) lexer.cmdarg.push false result end |
#_reduce_442(val, _values, result) ⇒ Object
11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 |
# File 'lib/ruby_parser31.rb', line 11455 def _reduce_442(val, _values, result) (_, line), lpar, args, _cmdarg, body = val lexer.lpar_beg = lpar lexer.cmdarg.pop call = s(:lambda).line line result = new_iter call, args, body result.line line self.env.unextend # TODO: dynapush & dynapop result end |
#_reduce_443(val, _values, result) ⇒ Object
11469 11470 11471 11472 11473 11474 |
# File 'lib/ruby_parser31.rb', line 11469 def _reduce_443(val, _values, result) self.in_argdef = false result = args val result end |
#_reduce_444(val, _values, result) ⇒ Object
11476 11477 11478 11479 11480 11481 11482 |
# File 'lib/ruby_parser31.rb', line 11476 def _reduce_444(val, _values, result) self.in_argdef = false result = val[0] result = 0 if result == s(:args) result end |
#_reduce_445(val, _values, result) ⇒ Object
11484 11485 11486 11487 11488 |
# File 'lib/ruby_parser31.rb', line 11484 def _reduce_445(val, _values, result) result = val[1] result end |
#_reduce_446(val, _values, result) ⇒ Object
11490 11491 11492 11493 11494 |
# File 'lib/ruby_parser31.rb', line 11490 def _reduce_446(val, _values, result) result = val[1] result end |
#_reduce_447(val, _values, result) ⇒ Object
11496 11497 11498 11499 11500 11501 |
# File 'lib/ruby_parser31.rb', line 11496 def _reduce_447(val, _values, result) (_, line), iter, _ = val result = iter.line line result end |
#_reduce_448(val, _values, result) ⇒ Object
11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 |
# File 'lib/ruby_parser31.rb', line 11503 def _reduce_448(val, _values, result) # TODO: ## if (nd_type($1) == NODE_YIELD) { ## compile_error(PARSER_ARG "block given to yield"); cmd, blk = val syntax_error "Both block arg and actual block given." if cmd.block_pass? if inverted? val then val = invert_block_call val cmd, blk = val end result = blk result.insert 1, cmd result end |
#_reduce_449(val, _values, result) ⇒ Object
11524 11525 11526 11527 11528 11529 11530 |
# File 'lib/ruby_parser31.rb', line 11524 def _reduce_449(val, _values, result) lhs, _, (id, _line), args = val result = new_call lhs, id.to_sym, args result end |
#_reduce_45(val, _values, result) ⇒ Object
9224 9225 9226 9227 9228 9229 9230 9231 9232 |
# File 'lib/ruby_parser31.rb', line 9224 def _reduce_45(val, _values, result) prim, (call_op, _), (id, _), (op_asgn, _), rhs = val result = s(:op_asgn, prim, rhs, id.to_sym, op_asgn.to_sym) result.sexp_type = :safe_op_asgn if call_op == '&.' result.line prim.line result end |
#_reduce_450(val, _values, result) ⇒ Object
11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 |
# File 'lib/ruby_parser31.rb', line 11532 def _reduce_450(val, _values, result) iter1, _, (name, _line), args, iter2 = val call = new_call iter1, name.to_sym, args iter2.insert 1, call result = iter2 result end |
#_reduce_451(val, _values, result) ⇒ Object
11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 |
# File 'lib/ruby_parser31.rb', line 11543 def _reduce_451(val, _values, result) iter1, _, (name, _line), args, iter2 = val call = new_call iter1, name.to_sym, args iter2.insert 1, call result = iter2 result end |
#_reduce_452(val, _values, result) ⇒ Object
11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 |
# File 'lib/ruby_parser31.rb', line 11554 def _reduce_452(val, _values, result) call, args = val result = call if args then call.concat args.sexp_body result.line_max = args.line_max end result end |
#_reduce_453(val, _values, result) ⇒ Object
11567 11568 11569 11570 11571 11572 11573 11574 |
# File 'lib/ruby_parser31.rb', line 11567 def _reduce_453(val, _values, result) recv, call_op, (op, op_line), args = val result = new_call recv, op.to_sym, args, call_op result.line_max = op_line unless args result end |
#_reduce_454(val, _values, result) ⇒ Object
11576 11577 11578 11579 11580 11581 11582 |
# File 'lib/ruby_parser31.rb', line 11576 def _reduce_454(val, _values, result) recv, _, (op, _line), args = val result = new_call recv, op.to_sym, args result end |
#_reduce_455(val, _values, result) ⇒ Object
11584 11585 11586 11587 11588 11589 11590 |
# File 'lib/ruby_parser31.rb', line 11584 def _reduce_455(val, _values, result) lhs, _, (id, _line) = val result = new_call lhs, id.to_sym result end |
#_reduce_456(val, _values, result) ⇒ Object
11592 11593 11594 11595 11596 |
# File 'lib/ruby_parser31.rb', line 11592 def _reduce_456(val, _values, result) result = new_call val[0], :call, val[2], val[1] result end |
#_reduce_457(val, _values, result) ⇒ Object
11598 11599 11600 11601 11602 |
# File 'lib/ruby_parser31.rb', line 11598 def _reduce_457(val, _values, result) result = new_call val[0], :call, val[2] result end |
#_reduce_458(val, _values, result) ⇒ Object
11604 11605 11606 11607 11608 |
# File 'lib/ruby_parser31.rb', line 11604 def _reduce_458(val, _values, result) result = new_super val[1] result end |
#_reduce_459(val, _values, result) ⇒ Object
11610 11611 11612 11613 11614 11615 |
# File 'lib/ruby_parser31.rb', line 11610 def _reduce_459(val, _values, result) (_, line), = val result = s(:zsuper).line line result end |
#_reduce_46(val, _values, result) ⇒ Object
9234 9235 9236 9237 9238 9239 9240 |
# File 'lib/ruby_parser31.rb', line 9234 def _reduce_46(val, _values, result) lhs1, _, (lhs2, line), (id, _), rhs = val result = s(:op_asgn, lhs1, rhs, lhs2.to_sym, id.to_sym).line line result end |
#_reduce_460(val, _values, result) ⇒ Object
11617 11618 11619 11620 11621 |
# File 'lib/ruby_parser31.rb', line 11617 def _reduce_460(val, _values, result) result = new_aref val result end |
#_reduce_461(val, _values, result) ⇒ Object
11623 11624 11625 11626 11627 |
# File 'lib/ruby_parser31.rb', line 11623 def _reduce_461(val, _values, result) self.env.extend :dynamic result end |
#_reduce_462(val, _values, result) ⇒ Object
11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 |
# File 'lib/ruby_parser31.rb', line 11629 def _reduce_462(val, _values, result) (_, line), _, body, _ = val result = body result.line line self.env.unextend result end |
#_reduce_463(val, _values, result) ⇒ Object
11640 11641 11642 11643 11644 |
# File 'lib/ruby_parser31.rb', line 11640 def _reduce_463(val, _values, result) self.env.extend :dynamic result end |
#_reduce_464(val, _values, result) ⇒ Object
11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 |
# File 'lib/ruby_parser31.rb', line 11646 def _reduce_464(val, _values, result) (_, line), _, body, _ = val result = body result.line line self.env.unextend result end |
#_reduce_465(val, _values, result) ⇒ Object
11657 11658 11659 11660 |
# File 'lib/ruby_parser31.rb', line 11657 def _reduce_465(val, _values, result) self.env.extend :dynamic; result = self.lexer.lineno result end |
#_reduce_466(val, _values, result) ⇒ Object
11662 11663 11664 11665 |
# File 'lib/ruby_parser31.rb', line 11662 def _reduce_466(val, _values, result) result = lexer.cmdarg.store(false) result end |
#_reduce_467(val, _values, result) ⇒ Object
11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 |
# File 'lib/ruby_parser31.rb', line 11667 def _reduce_467(val, _values, result) line, cmdarg, param, cmpstmt = val result = new_brace_body param, cmpstmt, line self.env.unextend lexer.cmdarg.restore cmdarg lexer.cmdarg.pop # because of: cmdarg_stack >> 1 ? result end |
#_reduce_468(val, _values, result) ⇒ Object
11678 11679 11680 11681 |
# File 'lib/ruby_parser31.rb', line 11678 def _reduce_468(val, _values, result) self.env.extend :dynamic; result = self.lexer.lineno result end |
#_reduce_469(val, _values, result) ⇒ Object
11683 11684 11685 11686 |
# File 'lib/ruby_parser31.rb', line 11683 def _reduce_469(val, _values, result) lexer.cmdarg.push false result end |
#_reduce_47(val, _values, result) ⇒ Object
9242 9243 9244 9245 9246 9247 9248 |
# File 'lib/ruby_parser31.rb', line 9242 def _reduce_47(val, _values, result) lhs1, _, (lhs2, line), (id, _), rhs = val result = s(:op_asgn, lhs1, rhs, lhs2.to_sym, id.to_sym).line line result end |
#_reduce_470(val, _values, result) ⇒ Object
11688 11689 11690 11691 11692 11693 11694 11695 11696 |
# File 'lib/ruby_parser31.rb', line 11688 def _reduce_470(val, _values, result) line, _cmdarg, param, cmpstmt = val result = new_do_body param, cmpstmt, line lexer.cmdarg.pop self.env.unextend result end |
#_reduce_471(val, _values, result) ⇒ Object
11698 11699 11700 11701 11702 11703 11704 |
# File 'lib/ruby_parser31.rb', line 11698 def _reduce_471(val, _values, result) arg, = val result = s(:array, arg).line arg.line result end |
#_reduce_472(val, _values, result) ⇒ Object
11706 11707 11708 11709 11710 11711 11712 |
# File 'lib/ruby_parser31.rb', line 11706 def _reduce_472(val, _values, result) _, arg = val result = s(:array, s(:splat, arg).line(arg.line)).line arg.line result end |
#_reduce_473(val, _values, result) ⇒ Object
11714 11715 11716 11717 11718 11719 11720 |
# File 'lib/ruby_parser31.rb', line 11714 def _reduce_473(val, _values, result) args, _, id = val result = self.list_append args, id result end |
#_reduce_474(val, _values, result) ⇒ Object
11722 11723 11724 11725 11726 11727 11728 |
# File 'lib/ruby_parser31.rb', line 11722 def _reduce_474(val, _values, result) args, _, _, id = val result = self.list_append args, s(:splat, id).line(id.line) result end |
#_reduce_475(val, _values, result) ⇒ Object
11730 11731 11732 11733 11734 11735 11736 11737 11738 |
# File 'lib/ruby_parser31.rb', line 11730 def _reduce_475(val, _values, result) (_, line), case_args, _then, body, cases = val result = new_when case_args, body result.line line result << cases if cases result end |
#_reduce_478(val, _values, result) ⇒ Object
reduce 477 omitted
11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 |
# File 'lib/ruby_parser31.rb', line 11744 def _reduce_478(val, _values, result) self.lexer.lex_state = EXPR_BEG|EXPR_LABEL self.lexer.command_start = false result = self.in_kwarg self.in_kwarg = true push_pvtbl push_pktbl result end |
#_reduce_479(val, _values, result) ⇒ Object
11755 11756 11757 11758 11759 11760 11761 11762 |
# File 'lib/ruby_parser31.rb', line 11755 def _reduce_479(val, _values, result) pop_pktbl pop_pvtbl old_kwargs = _values[-3] self.in_kwarg = old_kwargs result end |
#_reduce_48(val, _values, result) ⇒ Object
9250 9251 9252 9253 9254 |
# File 'lib/ruby_parser31.rb', line 9250 def _reduce_48(val, _values, result) result = new_endless_defn val result end |
#_reduce_480(val, _values, result) ⇒ Object
11764 11765 11766 11767 11768 11769 11770 |
# File 'lib/ruby_parser31.rb', line 11764 def _reduce_480(val, _values, result) (_, line), _, pat, _, _, body, cases = val result = new_in pat, body, cases, line result end |
#_reduce_484(val, _values, result) ⇒ Object
reduce 483 omitted
11778 11779 11780 11781 11782 11783 11784 11785 |
# File 'lib/ruby_parser31.rb', line 11778 def _reduce_484(val, _values, result) body, _, cond = val body = remove_begin body result = s(:if, cond, body, nil).line body.line result end |
#_reduce_485(val, _values, result) ⇒ Object
11787 11788 11789 11790 11791 11792 11793 11794 |
# File 'lib/ruby_parser31.rb', line 11787 def _reduce_485(val, _values, result) body, _, cond = val body = remove_begin body result = s(:if, cond, nil, body).line body.line result end |
#_reduce_487(val, _values, result) ⇒ Object
reduce 486 omitted
11798 11799 11800 11801 11802 11803 11804 11805 |
# File 'lib/ruby_parser31.rb', line 11798 def _reduce_487(val, _values, result) expr, _ = val tail = new_array_pattern_tail nil, true, nil, nil result = new_array_pattern nil, expr, tail, expr.line result end |
#_reduce_488(val, _values, result) ⇒ Object
11807 11808 11809 11810 11811 11812 11813 |
# File 'lib/ruby_parser31.rb', line 11807 def _reduce_488(val, _values, result) expr, _, args = val result = new_array_pattern nil, expr, args, expr.line result end |
#_reduce_489(val, _values, result) ⇒ Object
11815 11816 11817 11818 11819 11820 11821 |
# File 'lib/ruby_parser31.rb', line 11815 def _reduce_489(val, _values, result) find, = val result = new_find_pattern nil, find result end |
#_reduce_49(val, _values, result) ⇒ Object
9256 9257 9258 9259 9260 |
# File 'lib/ruby_parser31.rb', line 9256 def _reduce_49(val, _values, result) result = new_endless_defn val result end |
#_reduce_490(val, _values, result) ⇒ Object
11823 11824 11825 11826 11827 11828 |
# File 'lib/ruby_parser31.rb', line 11823 def _reduce_490(val, _values, result) args, = val result = new_array_pattern nil, nil, args, args.line result end |
#_reduce_491(val, _values, result) ⇒ Object
11830 11831 11832 11833 11834 11835 |
# File 'lib/ruby_parser31.rb', line 11830 def _reduce_491(val, _values, result) kwargs, = val result = new_hash_pattern nil, kwargs, kwargs.line result end |
#_reduce_493(val, _values, result) ⇒ Object
reduce 492 omitted
11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 |
# File 'lib/ruby_parser31.rb', line 11839 def _reduce_493(val, _values, result) # NODE *n = NEW_LIST($1, &@$); # n = list_append(p, n, $3); # $$ = new_hash(p, n, &@$); expr, _, var = val id = var.last self.env[id] = :lvar # HACK: need to extend env lhs = s(:lasgn, id).line var.line result = new_assign lhs, expr result end |
#_reduce_495(val, _values, result) ⇒ Object
reduce 494 omitted
11858 11859 11860 11861 11862 11863 11864 |
# File 'lib/ruby_parser31.rb', line 11858 def _reduce_495(val, _values, result) lhs, _, rhs = val result = s(:or, lhs, rhs).line lhs.line result end |
#_reduce_497(val, _values, result) ⇒ Object
reduce 496 omitted
11868 11869 11870 11871 |
# File 'lib/ruby_parser31.rb', line 11868 def _reduce_497(val, _values, result) push_pktbl result end |
#_reduce_498(val, _values, result) ⇒ Object
11873 11874 11875 11876 |
# File 'lib/ruby_parser31.rb', line 11873 def _reduce_498(val, _values, result) push_pktbl result end |
#_reduce_50(val, _values, result) ⇒ Object
9262 9263 9264 9265 9266 |
# File 'lib/ruby_parser31.rb', line 9262 def _reduce_50(val, _values, result) result = new_endless_defs val result end |
#_reduce_501(val, _values, result) ⇒ Object
reduce 500 omitted
11882 11883 11884 11885 11886 11887 11888 11889 |
# File 'lib/ruby_parser31.rb', line 11882 def _reduce_501(val, _values, result) lhs, _, args, _ = val pop_pktbl result = new_array_pattern(lhs, nil, args, lhs.line) result end |
#_reduce_502(val, _values, result) ⇒ Object
11891 11892 11893 11894 11895 11896 11897 11898 |
# File 'lib/ruby_parser31.rb', line 11891 def _reduce_502(val, _values, result) const, _, find, _ = val pop_pktbl result = new_find_pattern(const, find).line const.line result end |
#_reduce_503(val, _values, result) ⇒ Object
11900 11901 11902 11903 11904 11905 11906 11907 |
# File 'lib/ruby_parser31.rb', line 11900 def _reduce_503(val, _values, result) lhs, _, kwargs, _ = val pop_pktbl result = new_hash_pattern(lhs, kwargs, lhs.line) result end |
#_reduce_504(val, _values, result) ⇒ Object
11909 11910 11911 11912 11913 11914 11915 11916 |
# File 'lib/ruby_parser31.rb', line 11909 def _reduce_504(val, _values, result) const, _, _ = val tail = new_array_pattern_tail nil, nil, nil, nil result = new_array_pattern const, nil, tail, const.line result end |
#_reduce_505(val, _values, result) ⇒ Object
11918 11919 11920 11921 11922 11923 11924 11925 |
# File 'lib/ruby_parser31.rb', line 11918 def _reduce_505(val, _values, result) const, _, pre_arg, _ = val pop_pktbl result = new_array_pattern const, nil, pre_arg, const.line result end |
#_reduce_506(val, _values, result) ⇒ Object
11927 11928 11929 11930 11931 11932 11933 11934 |
# File 'lib/ruby_parser31.rb', line 11927 def _reduce_506(val, _values, result) const, _, find, _ = val pop_pktbl result = new_find_pattern(const, find).line const.line result end |
#_reduce_507(val, _values, result) ⇒ Object
11936 11937 11938 11939 11940 11941 11942 |
# File 'lib/ruby_parser31.rb', line 11936 def _reduce_507(val, _values, result) const, _, kwargs, _ = val result = new_hash_pattern const, kwargs, const.line result end |
#_reduce_508(val, _values, result) ⇒ Object
11944 11945 11946 11947 11948 11949 11950 11951 |
# File 'lib/ruby_parser31.rb', line 11944 def _reduce_508(val, _values, result) const, _, _ = val tail = new_array_pattern_tail nil, nil, nil, nil result = new_array_pattern const, nil, tail, const.line result end |
#_reduce_509(val, _values, result) ⇒ Object
11953 11954 11955 11956 11957 11958 11959 |
# File 'lib/ruby_parser31.rb', line 11953 def _reduce_509(val, _values, result) _, pat, _ = val result = new_array_pattern nil, nil, pat, pat.line result end |
#_reduce_51(val, _values, result) ⇒ Object
9268 9269 9270 9271 9272 |
# File 'lib/ruby_parser31.rb', line 9268 def _reduce_51(val, _values, result) result = new_endless_defs val result end |
#_reduce_510(val, _values, result) ⇒ Object
11961 11962 11963 11964 11965 11966 11967 |
# File 'lib/ruby_parser31.rb', line 11961 def _reduce_510(val, _values, result) _, find, _ = val result = new_find_pattern nil, find result end |
#_reduce_511(val, _values, result) ⇒ Object
11969 11970 11971 11972 11973 11974 11975 |
# File 'lib/ruby_parser31.rb', line 11969 def _reduce_511(val, _values, result) (_, line), _ = val result = s(:array_pat).line line result end |
#_reduce_512(val, _values, result) ⇒ Object
11977 11978 11979 11980 11981 11982 11983 |
# File 'lib/ruby_parser31.rb', line 11977 def _reduce_512(val, _values, result) push_pktbl result = self.in_kwarg self.in_kwarg = false result end |
#_reduce_513(val, _values, result) ⇒ Object
11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 |
# File 'lib/ruby_parser31.rb', line 11985 def _reduce_513(val, _values, result) _, in_kwarg, kwargs, _ = val pop_pktbl self.in_kwarg = in_kwarg result = new_hash_pattern(nil, kwargs, kwargs.line) result end |
#_reduce_514(val, _values, result) ⇒ Object
11996 11997 11998 11999 12000 12001 12002 12003 |
# File 'lib/ruby_parser31.rb', line 11996 def _reduce_514(val, _values, result) (_, line), _ = val tail = new_hash_pattern_tail nil, nil, line result = new_hash_pattern nil, tail, line result end |
#_reduce_515(val, _values, result) ⇒ Object
12005 12006 12007 12008 |
# File 'lib/ruby_parser31.rb', line 12005 def _reduce_515(val, _values, result) push_pktbl result end |
#_reduce_516(val, _values, result) ⇒ Object
12010 12011 12012 12013 12014 12015 12016 12017 |
# File 'lib/ruby_parser31.rb', line 12010 def _reduce_516(val, _values, result) _, _, expr, _ = val pop_pktbl result = expr result end |
#_reduce_517(val, _values, result) ⇒ Object
12019 12020 12021 12022 12023 12024 12025 12026 |
# File 'lib/ruby_parser31.rb', line 12019 def _reduce_517(val, _values, result) expr, = val ary = s(:array_TAIL, expr).line expr.line result = new_array_pattern_tail(ary, nil, nil, nil).line expr.line result end |
#_reduce_518(val, _values, result) ⇒ Object
12028 12029 12030 12031 12032 12033 12034 |
# File 'lib/ruby_parser31.rb', line 12028 def _reduce_518(val, _values, result) head, = val result = new_array_pattern_tail head, true, nil, nil result end |
#_reduce_519(val, _values, result) ⇒ Object
12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 |
# File 'lib/ruby_parser31.rb', line 12036 def _reduce_519(val, _values, result) head, tail = val both = array_pat_concat head, tail result = new_array_pattern_tail both, nil, nil, nil result.line head.line result end |
#_reduce_52(val, _values, result) ⇒ Object
9274 9275 9276 9277 9278 |
# File 'lib/ruby_parser31.rb', line 9274 def _reduce_52(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_520(val, _values, result) ⇒ Object
12047 12048 12049 12050 12051 12052 12053 12054 |
# File 'lib/ruby_parser31.rb', line 12047 def _reduce_520(val, _values, result) head, _, (id, _line) = val result = new_array_pattern_tail head, true, id.to_sym, nil result.line head.line result end |
#_reduce_521(val, _values, result) ⇒ Object
12056 12057 12058 12059 12060 12061 12062 12063 |
# File 'lib/ruby_parser31.rb', line 12056 def _reduce_521(val, _values, result) head, _, (id, _line), _, post = val result = new_array_pattern_tail head, true, id.to_sym, post result.line head.line result end |
#_reduce_522(val, _values, result) ⇒ Object
12065 12066 12067 12068 12069 12070 12071 |
# File 'lib/ruby_parser31.rb', line 12065 def _reduce_522(val, _values, result) expr, _ = val result = new_array_pattern_tail(expr, true, nil, nil).line expr.line result end |
#_reduce_523(val, _values, result) ⇒ Object
12073 12074 12075 12076 12077 12078 12079 |
# File 'lib/ruby_parser31.rb', line 12073 def _reduce_523(val, _values, result) head, _, _, post = val result = new_array_pattern_tail(head, true, nil, post).line head.line result end |
#_reduce_525(val, _values, result) ⇒ Object
reduce 524 omitted
12083 12084 12085 12086 12087 12088 |
# File 'lib/ruby_parser31.rb', line 12083 def _reduce_525(val, _values, result) arg, _ = val result = arg result end |
#_reduce_526(val, _values, result) ⇒ Object
12090 12091 12092 12093 12094 12095 12096 12097 |
# File 'lib/ruby_parser31.rb', line 12090 def _reduce_526(val, _values, result) head, tail, _ = val result = s(:PATTERN, *head.sexp_body, *tail.sexp_body) result.line head.line result end |
#_reduce_527(val, _values, result) ⇒ Object
12099 12100 12101 12102 12103 12104 12105 12106 |
# File 'lib/ruby_parser31.rb', line 12099 def _reduce_527(val, _values, result) (id, line), = val result = new_array_pattern_tail nil, true, id, nil result.line line result end |
#_reduce_528(val, _values, result) ⇒ Object
12108 12109 12110 12111 12112 12113 12114 12115 |
# File 'lib/ruby_parser31.rb', line 12108 def _reduce_528(val, _values, result) (id, line), _, rhs = val result = new_array_pattern_tail nil, true, id, rhs result.line line result end |
#_reduce_529(val, _values, result) ⇒ Object
12117 12118 12119 12120 12121 12122 12123 |
# File 'lib/ruby_parser31.rb', line 12117 def _reduce_529(val, _values, result) lhs, _, mid, _, rhs = val result = new_find_pattern_tail lhs, mid, rhs result end |
#_reduce_53(val, _values, result) ⇒ Object
9280 9281 9282 9283 9284 9285 |
# File 'lib/ruby_parser31.rb', line 9280 def _reduce_53(val, _values, result) expr, = val result = value_expr expr result end |
#_reduce_530(val, _values, result) ⇒ Object
12125 12126 12127 12128 12129 12130 12131 |
# File 'lib/ruby_parser31.rb', line 12125 def _reduce_530(val, _values, result) _, (id, line) = val result = [id.to_sym, line] result end |
#_reduce_531(val, _values, result) ⇒ Object
12133 12134 12135 12136 12137 12138 12139 |
# File 'lib/ruby_parser31.rb', line 12133 def _reduce_531(val, _values, result) (_id, line), = val result = [nil, line] result end |
#_reduce_533(val, _values, result) ⇒ Object
reduce 532 omitted
12143 12144 12145 12146 12147 12148 12149 |
# File 'lib/ruby_parser31.rb', line 12143 def _reduce_533(val, _values, result) lhs, _, rhs = val result = array_pat_concat lhs, rhs result end |
#_reduce_534(val, _values, result) ⇒ Object
12151 12152 12153 12154 12155 12156 12157 12158 |
# File 'lib/ruby_parser31.rb', line 12151 def _reduce_534(val, _values, result) expr, = val expr = s(:array_TAIL, expr).line expr.line unless expr.sexp_type == :array_TAIL result = expr result end |
#_reduce_535(val, _values, result) ⇒ Object
12160 12161 12162 12163 12164 12165 12166 |
# File 'lib/ruby_parser31.rb', line 12160 def _reduce_535(val, _values, result) kw_arg, _, rest = val # TODO? new_unique_key_hash(p, $1, &@$) result = new_hash_pattern_tail kw_arg, rest, kw_arg.line result end |
#_reduce_536(val, _values, result) ⇒ Object
12168 12169 12170 12171 12172 12173 12174 |
# File 'lib/ruby_parser31.rb', line 12168 def _reduce_536(val, _values, result) kwarg, = val # TODO? new_unique_key_hash(p, $1, &@$) result = new_hash_pattern_tail kwarg, nil, kwarg.line result end |
#_reduce_537(val, _values, result) ⇒ Object
12176 12177 12178 12179 12180 12181 12182 |
# File 'lib/ruby_parser31.rb', line 12176 def _reduce_537(val, _values, result) kwarg, _ = val # TODO? new_unique_key_hash(p, $1, &@$) result = new_hash_pattern_tail kwarg, nil, kwarg.line result end |
#_reduce_538(val, _values, result) ⇒ Object
12184 12185 12186 12187 12188 12189 12190 |
# File 'lib/ruby_parser31.rb', line 12184 def _reduce_538(val, _values, result) rest, = val result = new_hash_pattern_tail nil, rest, rest.line result end |
#_reduce_54(val, _values, result) ⇒ Object
9287 9288 9289 9290 9291 9292 9293 9294 9295 |
# File 'lib/ruby_parser31.rb', line 9287 def _reduce_54(val, _values, result) expr, (_, line), resbody = val expr = value_expr expr ary = s(:array).line line result = new_rescue(expr, new_resbody(ary, resbody)) result end |
#_reduce_540(val, _values, result) ⇒ Object
reduce 539 omitted
12194 12195 12196 12197 12198 12199 12200 |
# File 'lib/ruby_parser31.rb', line 12194 def _reduce_540(val, _values, result) kwarg, _, kw = val kwarg.concat kw.sexp_body result = kwarg result end |
#_reduce_541(val, _values, result) ⇒ Object
12202 12203 12204 12205 12206 12207 12208 12209 |
# File 'lib/ruby_parser31.rb', line 12202 def _reduce_541(val, _values, result) # TODO: error_duplicate_pattern_key(p, get_id($1), &@1); lhs, rhs = val result = s(:PAIR, lhs, rhs).line lhs.line result end |
#_reduce_542(val, _values, result) ⇒ Object
12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 |
# File 'lib/ruby_parser31.rb', line 12211 def _reduce_542(val, _values, result) lhs, = val # TODO: error_duplicate_pattern_variable(p, get_id($1), &@1); # TODO: if ($1 && !is_local_id(get_id($1))) { # yyerror1(&@1, "key must be valid as local variables"); # } # $$ = list_append(p, NEW_LIST(NEW_LIT(ID2SYM($1), &@$), &@$), # assignable(p, $1, 0, &@$)); case lhs.sexp_type when :lit then assignable [lhs.value, lhs.line] else # TODO or done? debug 10 end # TODO PAIR -> LIST ? result = s(:PAIR, lhs, nil).line lhs.line result end |
#_reduce_543(val, _values, result) ⇒ Object
12237 12238 12239 12240 12241 |
# File 'lib/ruby_parser31.rb', line 12237 def _reduce_543(val, _values, result) result = wrap :lit, val[0] result end |
#_reduce_544(val, _values, result) ⇒ Object
12243 12244 12245 12246 12247 12248 |
# File 'lib/ruby_parser31.rb', line 12243 def _reduce_544(val, _values, result) # you can't actually get here the way I lex labels debug 11 result end |
#_reduce_545(val, _values, result) ⇒ Object
12250 12251 12252 12253 12254 12255 12256 12257 12258 |
# File 'lib/ruby_parser31.rb', line 12250 def _reduce_545(val, _values, result) _, (id, line) = val name = id.to_sym self.assignable [name, line] result = s(:kwrest, :"**#{name}").line line result end |
#_reduce_546(val, _values, result) ⇒ Object
12260 12261 12262 12263 12264 12265 12266 |
# File 'lib/ruby_parser31.rb', line 12260 def _reduce_546(val, _values, result) (_, line), = val result = s(:kwrest, :"**").line line result end |
#_reduce_547(val, _values, result) ⇒ Object
12268 12269 12270 12271 12272 12273 12274 12275 |
# File 'lib/ruby_parser31.rb', line 12268 def _reduce_547(val, _values, result) (_, line), _ = val # TODO: or s(:norest)? s(:**nil)? result = s(:kwrest, :"**nil").line line result end |
#_reduce_551(val, _values, result) ⇒ Object
reduce 550 omitted
12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 |
# File 'lib/ruby_parser31.rb', line 12283 def _reduce_551(val, _values, result) lhs, _, rhs = val lhs = value_expr lhs rhs = value_expr rhs result = s(:dot2, lhs, rhs).line lhs.line result end |
#_reduce_552(val, _values, result) ⇒ Object
12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 |
# File 'lib/ruby_parser31.rb', line 12294 def _reduce_552(val, _values, result) lhs, _, rhs = val lhs = value_expr lhs rhs = value_expr rhs result = s(:dot3, lhs, rhs).line lhs.line result end |
#_reduce_553(val, _values, result) ⇒ Object
12305 12306 12307 12308 12309 12310 12311 |
# File 'lib/ruby_parser31.rb', line 12305 def _reduce_553(val, _values, result) v1, _ = val result = s(:dot2, v1, nil).line v1.line result end |
#_reduce_554(val, _values, result) ⇒ Object
12313 12314 12315 12316 12317 12318 12319 |
# File 'lib/ruby_parser31.rb', line 12313 def _reduce_554(val, _values, result) v1, _ = val result = s(:dot3, v1, nil).line v1.line result end |
#_reduce_558(val, _values, result) ⇒ Object
reduce 557 omitted
12327 12328 12329 12330 12331 12332 12333 |
# File 'lib/ruby_parser31.rb', line 12327 def _reduce_558(val, _values, result) _, v1 = val result = s(:dot2, nil, v1).line v1.line result end |
#_reduce_559(val, _values, result) ⇒ Object
12335 12336 12337 12338 12339 12340 12341 |
# File 'lib/ruby_parser31.rb', line 12335 def _reduce_559(val, _values, result) _, v1 = val result = s(:dot3, nil, v1).line v1.line result end |
#_reduce_564(val, _values, result) ⇒ Object
reduce 563 omitted
12351 12352 12353 12354 12355 |
# File 'lib/ruby_parser31.rb', line 12351 def _reduce_564(val, _values, result) result = ary_to_pat val[0] result end |
#_reduce_565(val, _values, result) ⇒ Object
12357 12358 12359 12360 12361 |
# File 'lib/ruby_parser31.rb', line 12357 def _reduce_565(val, _values, result) result = ary_to_pat val[0] result end |
#_reduce_566(val, _values, result) ⇒ Object
12363 12364 12365 12366 12367 |
# File 'lib/ruby_parser31.rb', line 12363 def _reduce_566(val, _values, result) result = ary_to_pat val[0] result end |
#_reduce_567(val, _values, result) ⇒ Object
12369 12370 12371 12372 12373 |
# File 'lib/ruby_parser31.rb', line 12369 def _reduce_567(val, _values, result) result = ary_to_pat val[0] result end |
#_reduce_568(val, _values, result) ⇒ Object
12375 12376 12377 12378 12379 12380 12381 12382 |
# File 'lib/ruby_parser31.rb', line 12375 def _reduce_568(val, _values, result) # TODO? if (!($$ = gettable(p, $1, &@$))) $$ = NEW_BEGIN(0, &@$); var, = val result = var result end |
#_reduce_57(val, _values, result) ⇒ Object
reduce 56 omitted
9301 9302 9303 9304 9305 9306 |
# File 'lib/ruby_parser31.rb', line 9301 def _reduce_57(val, _values, result) lhs, _, rhs = val result = logical_op :and, lhs, rhs result end |
#_reduce_570(val, _values, result) ⇒ Object
reduce 569 omitted
12386 12387 12388 12389 12390 12391 12392 |
# File 'lib/ruby_parser31.rb', line 12386 def _reduce_570(val, _values, result) # TODO: error_duplicate_pattern_variable(p, $1, &@1); # TODO: assignable(p, $1, 0, &@$); result = wrap :lasgn, val[0] result end |
#_reduce_571(val, _values, result) ⇒ Object
12394 12395 12396 12397 12398 12399 |
# File 'lib/ruby_parser31.rb', line 12394 def _reduce_571(val, _values, result) # TODO: check id against env for lvar or dvar result = wrap :lvar, val[1] result end |
#_reduce_572(val, _values, result) ⇒ Object
12401 12402 12403 12404 12405 12406 |
# File 'lib/ruby_parser31.rb', line 12401 def _reduce_572(val, _values, result) _, var = val result = var result end |
#_reduce_573(val, _values, result) ⇒ Object
12408 12409 12410 12411 12412 12413 |
# File 'lib/ruby_parser31.rb', line 12408 def _reduce_573(val, _values, result) _, _, expr, _ = val result = expr # TODO? s(:begin, expr).line expr.line result end |
#_reduce_574(val, _values, result) ⇒ Object
12415 12416 12417 12418 12419 |
# File 'lib/ruby_parser31.rb', line 12415 def _reduce_574(val, _values, result) result = wrap :colon3, val[1] result end |
#_reduce_575(val, _values, result) ⇒ Object
12421 12422 12423 12424 12425 12426 12427 12428 |
# File 'lib/ruby_parser31.rb', line 12421 def _reduce_575(val, _values, result) lhs, _, (id, _line) = val l = lhs.line result = s(:const, s(:colon2, lhs, id.to_sym).line(l)).line l result end |
#_reduce_576(val, _values, result) ⇒ Object
12430 12431 12432 12433 12434 12435 |
# File 'lib/ruby_parser31.rb', line 12430 def _reduce_576(val, _values, result) # TODO $$ = gettable(p, $1, &@$); result = wrap :const, val[0] result end |
#_reduce_577(val, _values, result) ⇒ Object
12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 |
# File 'lib/ruby_parser31.rb', line 12437 def _reduce_577(val, _values, result) (_, line), klasses, var, _, body, rest = val klasses ||= s(:array) klasses << new_assign(var, s(:gvar, :"$!").line(var.line)) if var klasses.line line result = new_resbody(klasses, body) result << rest if rest # UGH, rewritten above result end |
#_reduce_578(val, _values, result) ⇒ Object
12450 12451 12452 12453 12454 |
# File 'lib/ruby_parser31.rb', line 12450 def _reduce_578(val, _values, result) result = nil result end |
#_reduce_579(val, _values, result) ⇒ Object
12456 12457 12458 12459 12460 12461 |
# File 'lib/ruby_parser31.rb', line 12456 def _reduce_579(val, _values, result) arg, = val result = s(:array, arg).line arg.line result end |
#_reduce_58(val, _values, result) ⇒ Object
9308 9309 9310 9311 9312 9313 |
# File 'lib/ruby_parser31.rb', line 9308 def _reduce_58(val, _values, result) lhs, _, rhs = val result = logical_op :or, lhs, rhs result end |
#_reduce_582(val, _values, result) ⇒ Object
reduce 581 omitted
12467 12468 12469 12470 12471 |
# File 'lib/ruby_parser31.rb', line 12467 def _reduce_582(val, _values, result) result = val[1] result end |
#_reduce_584(val, _values, result) ⇒ Object
reduce 583 omitted
12475 12476 12477 12478 12479 12480 12481 |
# File 'lib/ruby_parser31.rb', line 12475 def _reduce_584(val, _values, result) (_, line), body = val result = body || s(:nil).line(line) result end |
#_reduce_586(val, _values, result) ⇒ Object
reduce 585 omitted
12485 12486 12487 12488 12489 12490 |
# File 'lib/ruby_parser31.rb', line 12485 def _reduce_586(val, _values, result) (lit, line), = val result = s(:lit, lit).line line result end |
#_reduce_588(val, _values, result) ⇒ Object
reduce 587 omitted
12494 12495 12496 12497 12498 12499 12500 |
# File 'lib/ruby_parser31.rb', line 12494 def _reduce_588(val, _values, result) str, = val str = s(:dstr, str.value) if str.sexp_type == :evstr result = str result end |
#_reduce_589(val, _values, result) ⇒ Object
12502 12503 12504 12505 12506 |
# File 'lib/ruby_parser31.rb', line 12502 def _reduce_589(val, _values, result) debug 12 result end |
#_reduce_59(val, _values, result) ⇒ Object
9315 9316 9317 9318 9319 9320 9321 |
# File 'lib/ruby_parser31.rb', line 9315 def _reduce_59(val, _values, result) (_, line), _, expr = val result = new_call(expr, :"!").line line # REFACTOR: call_uni_op result end |
#_reduce_591(val, _values, result) ⇒ Object
reduce 590 omitted
12510 12511 12512 12513 12514 |
# File 'lib/ruby_parser31.rb', line 12510 def _reduce_591(val, _values, result) result = self.literal_concat val[0], val[1] result end |
#_reduce_592(val, _values, result) ⇒ Object
12516 12517 12518 12519 12520 12521 12522 12523 12524 |
# File 'lib/ruby_parser31.rb', line 12516 def _reduce_592(val, _values, result) (_, line), str, (_, func) = val str = dedent str if func =~ RubyLexer::STR_FUNC_DEDENT result = str.line line result end |
#_reduce_593(val, _values, result) ⇒ Object
12526 12527 12528 12529 12530 |
# File 'lib/ruby_parser31.rb', line 12526 def _reduce_593(val, _values, result) result = new_string val result end |
#_reduce_594(val, _values, result) ⇒ Object
12532 12533 12534 12535 12536 12537 |
# File 'lib/ruby_parser31.rb', line 12532 def _reduce_594(val, _values, result) result = new_xstring val # TODO: dedent?!?! SERIOUSLY?!? result end |
#_reduce_595(val, _values, result) ⇒ Object
12539 12540 12541 12542 12543 |
# File 'lib/ruby_parser31.rb', line 12539 def _reduce_595(val, _values, result) result = new_regexp val result end |
#_reduce_596(val, _values, result) ⇒ Object
12545 12546 12547 12548 12549 12550 12551 12552 |
# File 'lib/ruby_parser31.rb', line 12545 def _reduce_596(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_597(val, _values, result) ⇒ Object
12554 12555 12556 12557 12558 12559 12560 12561 |
# File 'lib/ruby_parser31.rb', line 12554 def _reduce_597(val, _values, result) (_, line), list, (_, line_max) = val result = list.line line result.line_max = line_max result end |
#_reduce_598(val, _values, result) ⇒ Object
12563 12564 12565 12566 12567 |
# File 'lib/ruby_parser31.rb', line 12563 def _reduce_598(val, _values, result) result = new_word_list result end |
#_reduce_599(val, _values, result) ⇒ Object
12569 12570 12571 12572 12573 |
# File 'lib/ruby_parser31.rb', line 12569 def _reduce_599(val, _values, result) result = val[0].dup << new_word_list_entry(val) result end |
#_reduce_6(val, _values, result) ⇒ Object
reduce 5 omitted
8973 8974 8975 8976 8977 |
# File 'lib/ruby_parser31.rb', line 8973 def _reduce_6(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_60(val, _values, result) ⇒ Object
9323 9324 9325 9326 9327 9328 9329 9330 |
# File 'lib/ruby_parser31.rb', line 9323 def _reduce_60(val, _values, result) _, cmd = val result = new_call(cmd, :"!").line cmd.line # TODO: fix line number to tBANG... but causes BAD shift/reduce conflict # REFACTOR: call_uni_op -- see parse26.y result end |
#_reduce_601(val, _values, result) ⇒ Object
reduce 600 omitted
12577 12578 12579 12580 12581 |
# File 'lib/ruby_parser31.rb', line 12577 def _reduce_601(val, _values, result) result = self.literal_concat val[0], val[1] result end |
#_reduce_602(val, _values, result) ⇒ Object
12583 12584 12585 12586 12587 12588 12589 12590 |
# File 'lib/ruby_parser31.rb', line 12583 def _reduce_602(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_603(val, _values, result) ⇒ Object
12592 12593 12594 12595 12596 12597 12598 12599 |
# File 'lib/ruby_parser31.rb', line 12592 def _reduce_603(val, _values, result) (_, line), list, (_, line_max), = val result = list.line line result.line_max = line_max result end |
#_reduce_604(val, _values, result) ⇒ Object
12601 12602 12603 12604 12605 |
# File 'lib/ruby_parser31.rb', line 12601 def _reduce_604(val, _values, result) result = new_symbol_list result end |
#_reduce_605(val, _values, result) ⇒ Object
12607 12608 12609 12610 12611 12612 |
# File 'lib/ruby_parser31.rb', line 12607 def _reduce_605(val, _values, result) list, * = val result = list.dup << new_symbol_list_entry(val) result end |
#_reduce_606(val, _values, result) ⇒ Object
12614 12615 12616 12617 12618 12619 12620 12621 |
# File 'lib/ruby_parser31.rb', line 12614 def _reduce_606(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_607(val, _values, result) ⇒ Object
12623 12624 12625 12626 12627 12628 12629 12630 |
# File 'lib/ruby_parser31.rb', line 12623 def _reduce_607(val, _values, result) (_, line), list, (_, line_max) = val result = list.line line result.line_max = line_max result end |
#_reduce_608(val, _values, result) ⇒ Object
12632 12633 12634 12635 12636 12637 12638 12639 |
# File 'lib/ruby_parser31.rb', line 12632 def _reduce_608(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_609(val, _values, result) ⇒ Object
12641 12642 12643 12644 12645 12646 12647 12648 |
# File 'lib/ruby_parser31.rb', line 12641 def _reduce_609(val, _values, result) (_, line), list, (_, line_max) = val result = list.line line result.line_max = line_max result end |
#_reduce_61(val, _values, result) ⇒ Object
9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 |
# File 'lib/ruby_parser31.rb', line 9332 def _reduce_61(val, _values, result) # value_expr($1); self.lexer.lex_state = EXPR_BEG|EXPR_LABEL self.lexer.command_start = false result = self.in_kwarg self.in_kwarg = true self.env.extend result end |
#_reduce_610(val, _values, result) ⇒ Object
12650 12651 12652 12653 12654 |
# File 'lib/ruby_parser31.rb', line 12650 def _reduce_610(val, _values, result) result = new_qword_list result end |
#_reduce_611(val, _values, result) ⇒ Object
12656 12657 12658 12659 12660 |
# File 'lib/ruby_parser31.rb', line 12656 def _reduce_611(val, _values, result) result = val[0].dup << new_qword_list_entry(val) result end |
#_reduce_612(val, _values, result) ⇒ Object
12662 12663 12664 12665 12666 |
# File 'lib/ruby_parser31.rb', line 12662 def _reduce_612(val, _values, result) result = new_qsym_list result end |
#_reduce_613(val, _values, result) ⇒ Object
12668 12669 12670 12671 12672 |
# File 'lib/ruby_parser31.rb', line 12668 def _reduce_613(val, _values, result) result = val[0].dup << new_qsym_list_entry(val) result end |
#_reduce_614(val, _values, result) ⇒ Object
12674 12675 12676 12677 12678 12679 |
# File 'lib/ruby_parser31.rb', line 12674 def _reduce_614(val, _values, result) line = prev_value_to_lineno _values.last result = s(:str, +"").line line result end |
#_reduce_615(val, _values, result) ⇒ Object
12681 12682 12683 12684 12685 12686 |
# File 'lib/ruby_parser31.rb', line 12681 def _reduce_615(val, _values, result) v1, v2 = val result = literal_concat v1, v2 result end |
#_reduce_616(val, _values, result) ⇒ Object
12688 12689 12690 12691 12692 |
# File 'lib/ruby_parser31.rb', line 12688 def _reduce_616(val, _values, result) result = nil result end |
#_reduce_617(val, _values, result) ⇒ Object
12694 12695 12696 12697 12698 12699 |
# File 'lib/ruby_parser31.rb', line 12694 def _reduce_617(val, _values, result) v1, v2 = val result = literal_concat v1, v2 result end |
#_reduce_618(val, _values, result) ⇒ Object
12701 12702 12703 12704 12705 |
# File 'lib/ruby_parser31.rb', line 12701 def _reduce_618(val, _values, result) result = nil result end |
#_reduce_619(val, _values, result) ⇒ Object
12707 12708 12709 12710 12711 12712 |
# File 'lib/ruby_parser31.rb', line 12707 def _reduce_619(val, _values, result) v1, v2 = val result = literal_concat v1, v2 result end |
#_reduce_62(val, _values, result) ⇒ Object
9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 |
# File 'lib/ruby_parser31.rb', line 9343 def _reduce_62(val, _values, result) lhs, _, in_kwarg, rhs = val self.env.unextend self.in_kwarg = in_kwarg rhs = new_in rhs, nil, nil, rhs.line result = new_case lhs, rhs, rhs.line result end |
#_reduce_620(val, _values, result) ⇒ Object
12714 12715 12716 12717 12718 |
# File 'lib/ruby_parser31.rb', line 12714 def _reduce_620(val, _values, result) result = new_string val result end |
#_reduce_621(val, _values, result) ⇒ Object
12720 12721 12722 12723 12724 12725 12726 12727 |
# File 'lib/ruby_parser31.rb', line 12720 def _reduce_621(val, _values, result) result = lexer.lex_strterm lexer.lex_strterm = nil lexer.lex_state = EXPR_BEG result end |
#_reduce_622(val, _values, result) ⇒ Object
12729 12730 12731 12732 12733 12734 12735 |
# File 'lib/ruby_parser31.rb', line 12729 def _reduce_622(val, _values, result) _, strterm, str = val lexer.lex_strterm = strterm result = s(:evstr, str).line str.line result end |
#_reduce_623(val, _values, result) ⇒ Object
12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 |
# File 'lib/ruby_parser31.rb', line 12737 def _reduce_623(val, _values, result) result = [lexer.lex_strterm, lexer.brace_nest, lexer.string_nest, # TODO: remove lexer.lex_state, ] lexer.cmdarg.push false lexer.cond.push false lexer.lex_strterm = nil lexer.brace_nest = 0 lexer.string_nest = 0 lexer.lex_state = EXPR_BEG result end |
#_reduce_624(val, _values, result) ⇒ Object
12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 |
# File 'lib/ruby_parser31.rb', line 12756 def _reduce_624(val, _values, result) (_, line), memo, stmt, _ = val lex_strterm, brace_nest, string_nest, oldlex_state = memo # TODO: heredoc_indent lexer.lex_strterm = lex_strterm lexer.brace_nest = brace_nest lexer.string_nest = string_nest lexer.cond.pop lexer.cmdarg.pop lexer.lex_state = oldlex_state case stmt when Sexp then case stmt.sexp_type when :str, :dstr, :evstr then result = stmt else result = s(:evstr, stmt).line line end when nil then result = s(:evstr).line line else debug 13 raise "unknown string body: #{stmt.inspect}" end result end |
#_reduce_625(val, _values, result) ⇒ Object
12789 12790 12791 12792 12793 |
# File 'lib/ruby_parser31.rb', line 12789 def _reduce_625(val, _values, result) result = wrap :gvar, val[0] result end |
#_reduce_626(val, _values, result) ⇒ Object
12795 12796 12797 12798 12799 |
# File 'lib/ruby_parser31.rb', line 12795 def _reduce_626(val, _values, result) result = wrap :ivar, val[0] result end |
#_reduce_627(val, _values, result) ⇒ Object
12801 12802 12803 12804 12805 |
# File 'lib/ruby_parser31.rb', line 12801 def _reduce_627(val, _values, result) result = wrap :cvar, val[0] result end |
#_reduce_63(val, _values, result) ⇒ Object
9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 |
# File 'lib/ruby_parser31.rb', line 9355 def _reduce_63(val, _values, result) # TODO? value_expr($1); self.lexer.lex_state = EXPR_BEG|EXPR_LABEL self.lexer.command_start = false result = self.in_kwarg self.in_kwarg = true self.env.extend result end |
#_reduce_631(val, _values, result) ⇒ Object
reduce 630 omitted
12813 12814 12815 12816 12817 12818 |
# File 'lib/ruby_parser31.rb', line 12813 def _reduce_631(val, _values, result) lexer.lex_state = EXPR_END result = wrap :lit, val[1] result end |
#_reduce_632(val, _values, result) ⇒ Object
12820 12821 12822 12823 12824 12825 |
# File 'lib/ruby_parser31.rb', line 12820 def _reduce_632(val, _values, result) lexer.lex_state = EXPR_END result = wrap :lit, val[0] result end |
#_reduce_637(val, _values, result) ⇒ Object
reduce 636 omitted
12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 |
# File 'lib/ruby_parser31.rb', line 12835 def _reduce_637(val, _values, result) (_, line), result, _ = val lexer.lex_state = EXPR_END result ||= s(:str, "").line line case result.sexp_type when :dstr then result.sexp_type = :dsym when :str then result = s(:lit, result.last.to_sym).line result.line when :evstr then result = s(:dsym, "", result).line result.line else debug 14 end result end |
#_reduce_639(val, _values, result) ⇒ Object
reduce 638 omitted
12858 12859 12860 12861 12862 12863 |
# File 'lib/ruby_parser31.rb', line 12858 def _reduce_639(val, _values, result) _, (num, line) = val result = [-num, line] result end |
#_reduce_64(val, _values, result) ⇒ Object
9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 |
# File 'lib/ruby_parser31.rb', line 9366 def _reduce_64(val, _values, result) self.env.unextend expr, _, old_kwarg, pat = val expr = value_expr expr self.in_kwarg = old_kwarg pat_in = new_in pat, nil, nil, expr.line result = new_case expr, pat_in, expr.line result end |
#_reduce_644(val, _values, result) ⇒ Object
reduce 643 omitted
12873 12874 12875 12876 |
# File 'lib/ruby_parser31.rb', line 12873 def _reduce_644(val, _values, result) result = wrap :ivar, val[0] result end |
#_reduce_645(val, _values, result) ⇒ Object
12878 12879 12880 12881 |
# File 'lib/ruby_parser31.rb', line 12878 def _reduce_645(val, _values, result) result = wrap :gvar, val[0] result end |
#_reduce_646(val, _values, result) ⇒ Object
12883 12884 12885 12886 |
# File 'lib/ruby_parser31.rb', line 12883 def _reduce_646(val, _values, result) result = wrap :cvar, val[0] result end |
#_reduce_652(val, _values, result) ⇒ Object
reduce 651 omitted
12898 12899 12900 12901 |
# File 'lib/ruby_parser31.rb', line 12898 def _reduce_652(val, _values, result) (_, line), = val; result = s(:nil).line line result end |
#_reduce_653(val, _values, result) ⇒ Object
12903 12904 12905 12906 |
# File 'lib/ruby_parser31.rb', line 12903 def _reduce_653(val, _values, result) (_, line), = val; result = s(:self).line line result end |
#_reduce_654(val, _values, result) ⇒ Object
12908 12909 12910 12911 |
# File 'lib/ruby_parser31.rb', line 12908 def _reduce_654(val, _values, result) (_, line), = val; result = s(:true).line line result end |
#_reduce_655(val, _values, result) ⇒ Object
12913 12914 12915 12916 |
# File 'lib/ruby_parser31.rb', line 12913 def _reduce_655(val, _values, result) (_, line), = val; result = s(:false).line line result end |
#_reduce_656(val, _values, result) ⇒ Object
12918 12919 12920 12921 |
# File 'lib/ruby_parser31.rb', line 12918 def _reduce_656(val, _values, result) (_, line), = val; result = s(:str, self.file).line line result end |
#_reduce_657(val, _values, result) ⇒ Object
12923 12924 12925 12926 |
# File 'lib/ruby_parser31.rb', line 12923 def _reduce_657(val, _values, result) (_, line), = val; result = s(:lit, line).line line result end |
#_reduce_658(val, _values, result) ⇒ Object
12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 |
# File 'lib/ruby_parser31.rb', line 12928 def _reduce_658(val, _values, result) (_, l), = val result = if defined? Encoding then s(:colon2, s(:const, :Encoding).line(l), :UTF_8).line l else s(:str, "Unsupported!").line l end result end |
#_reduce_659(val, _values, result) ⇒ Object
12940 12941 12942 12943 12944 12945 12946 12947 12948 |
# File 'lib/ruby_parser31.rb', line 12940 def _reduce_659(val, _values, result) raise "NO: #{val.inspect}" if Sexp === val.first (var, line), = val result = Sexp === var ? var : self.gettable(var) result.line line result end |
#_reduce_66(val, _values, result) ⇒ Object
reduce 65 omitted
9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 |
# File 'lib/ruby_parser31.rb', line 9382 def _reduce_66(val, _values, result) # TODO: numparam_name(p, fname); (id, line), = val old_in_def = self.in_def self.in_def = true # group = local_push self.env.extend lexer.cmdarg.push false lexer.cond.push false result = [id.to_sym, line, old_in_def] result end |
#_reduce_660(val, _values, result) ⇒ Object
12950 12951 12952 12953 12954 12955 |
# File 'lib/ruby_parser31.rb', line 12950 def _reduce_660(val, _values, result) var = val[0] result = Sexp === var ? var : self.gettable(var) result end |
#_reduce_661(val, _values, result) ⇒ Object
12957 12958 12959 12960 12961 |
# File 'lib/ruby_parser31.rb', line 12957 def _reduce_661(val, _values, result) result = self.assignable val[0] result end |
#_reduce_662(val, _values, result) ⇒ Object
12963 12964 12965 12966 12967 12968 |
# File 'lib/ruby_parser31.rb', line 12963 def _reduce_662(val, _values, result) result = self.assignable val[0] debug 15 result end |
#_reduce_663(val, _values, result) ⇒ Object
12970 12971 12972 12973 12974 12975 |
# File 'lib/ruby_parser31.rb', line 12970 def _reduce_663(val, _values, result) (ref, line), = val result = s(:nth_ref, ref).line line result end |
#_reduce_664(val, _values, result) ⇒ Object
12977 12978 12979 12980 12981 12982 |
# File 'lib/ruby_parser31.rb', line 12977 def _reduce_664(val, _values, result) (ref, line), = val result = s(:back_ref, ref).line line result end |
#_reduce_665(val, _values, result) ⇒ Object
12984 12985 12986 12987 12988 12989 |
# File 'lib/ruby_parser31.rb', line 12984 def _reduce_665(val, _values, result) lexer.lex_state = EXPR_BEG lexer.command_start = true result end |
#_reduce_666(val, _values, result) ⇒ Object
12991 12992 12993 12994 12995 |
# File 'lib/ruby_parser31.rb', line 12991 def _reduce_666(val, _values, result) result = val[2] result end |
#_reduce_667(val, _values, result) ⇒ Object
12997 12998 12999 13000 13001 |
# File 'lib/ruby_parser31.rb', line 12997 def _reduce_667(val, _values, result) result = nil result end |
#_reduce_669(val, _values, result) ⇒ Object
reduce 668 omitted
13005 13006 13007 13008 13009 13010 |
# File 'lib/ruby_parser31.rb', line 13005 def _reduce_669(val, _values, result) self.in_argdef = false result = end_args val result end |
#_reduce_67(val, _values, result) ⇒ Object
9398 9399 9400 9401 9402 |
# File 'lib/ruby_parser31.rb', line 9398 def _reduce_67(val, _values, result) result = val result end |
#_reduce_670(val, _values, result) ⇒ Object
13012 13013 13014 13015 13016 13017 |
# File 'lib/ruby_parser31.rb', line 13012 def _reduce_670(val, _values, result) self.in_argdef = false result = end_args val result end |
#_reduce_672(val, _values, result) ⇒ Object
reduce 671 omitted
13021 13022 13023 13024 13025 13026 13027 13028 |
# File 'lib/ruby_parser31.rb', line 13021 def _reduce_672(val, _values, result) result = self.in_kwarg self.in_kwarg = true self.in_argdef = true self.lexer.lex_state |= EXPR_LABEL result end |
#_reduce_673(val, _values, result) ⇒ Object
13030 13031 13032 13033 13034 13035 |
# File 'lib/ruby_parser31.rb', line 13030 def _reduce_673(val, _values, result) self.in_argdef = false result = end_args val result end |
#_reduce_674(val, _values, result) ⇒ Object
13037 13038 13039 13040 13041 |
# File 'lib/ruby_parser31.rb', line 13037 def _reduce_674(val, _values, result) result = args val result end |
#_reduce_675(val, _values, result) ⇒ Object
13043 13044 13045 13046 13047 |
# File 'lib/ruby_parser31.rb', line 13043 def _reduce_675(val, _values, result) result = args val result end |
#_reduce_676(val, _values, result) ⇒ Object
13049 13050 13051 13052 13053 |
# File 'lib/ruby_parser31.rb', line 13049 def _reduce_676(val, _values, result) result = args val result end |
#_reduce_679(val, _values, result) ⇒ Object
reduce 678 omitted
13059 13060 13061 13062 13063 |
# File 'lib/ruby_parser31.rb', line 13059 def _reduce_679(val, _values, result) result = val[1] result end |
#_reduce_68(val, _values, result) ⇒ Object
9404 9405 9406 9407 9408 9409 |
# File 'lib/ruby_parser31.rb', line 9404 def _reduce_68(val, _values, result) lexer.lex_state = EXPR_FNAME self.in_argdef = true result end |
#_reduce_680(val, _values, result) ⇒ Object
13065 13066 13067 13068 13069 |
# File 'lib/ruby_parser31.rb', line 13065 def _reduce_680(val, _values, result) result = nil result end |
#_reduce_681(val, _values, result) ⇒ Object
13071 13072 13073 13074 13075 |
# File 'lib/ruby_parser31.rb', line 13071 def _reduce_681(val, _values, result) result = args val result end |
#_reduce_682(val, _values, result) ⇒ Object
13077 13078 13079 13080 13081 |
# File 'lib/ruby_parser31.rb', line 13077 def _reduce_682(val, _values, result) result = args val result end |
#_reduce_683(val, _values, result) ⇒ Object
13083 13084 13085 13086 13087 |
# File 'lib/ruby_parser31.rb', line 13083 def _reduce_683(val, _values, result) result = args val result end |
#_reduce_684(val, _values, result) ⇒ Object
13089 13090 13091 13092 13093 |
# File 'lib/ruby_parser31.rb', line 13089 def _reduce_684(val, _values, result) result = args val result end |
#_reduce_685(val, _values, result) ⇒ Object
13095 13096 13097 13098 13099 |
# File 'lib/ruby_parser31.rb', line 13095 def _reduce_685(val, _values, result) result = args val result end |
#_reduce_686(val, _values, result) ⇒ Object
13101 13102 13103 13104 13105 |
# File 'lib/ruby_parser31.rb', line 13101 def _reduce_686(val, _values, result) result = args val result end |
#_reduce_687(val, _values, result) ⇒ Object
13107 13108 13109 13110 13111 |
# File 'lib/ruby_parser31.rb', line 13107 def _reduce_687(val, _values, result) result = args val result end |
#_reduce_688(val, _values, result) ⇒ Object
13113 13114 13115 13116 13117 |
# File 'lib/ruby_parser31.rb', line 13113 def _reduce_688(val, _values, result) result = args val result end |
#_reduce_689(val, _values, result) ⇒ Object
13119 13120 13121 13122 13123 |
# File 'lib/ruby_parser31.rb', line 13119 def _reduce_689(val, _values, result) result = args val result end |
#_reduce_69(val, _values, result) ⇒ Object
9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 |
# File 'lib/ruby_parser31.rb', line 9411 def _reduce_69(val, _values, result) lexer.lex_state = EXPR_ENDFN|EXPR_LABEL self.in_single += 1 # TODO: remove? # self.in_def = true # local_push # self.env.extend # lexer.cmdarg.push false # lexer.cond.push false result = val result end |
#_reduce_690(val, _values, result) ⇒ Object
13125 13126 13127 13128 13129 |
# File 'lib/ruby_parser31.rb', line 13125 def _reduce_690(val, _values, result) result = args val result end |
#_reduce_691(val, _values, result) ⇒ Object
13131 13132 13133 13134 13135 |
# File 'lib/ruby_parser31.rb', line 13131 def _reduce_691(val, _values, result) result = args val result end |
#_reduce_692(val, _values, result) ⇒ Object
13137 13138 13139 13140 13141 |
# File 'lib/ruby_parser31.rb', line 13137 def _reduce_692(val, _values, result) result = args val result end |
#_reduce_693(val, _values, result) ⇒ Object
13143 13144 13145 13146 13147 |
# File 'lib/ruby_parser31.rb', line 13143 def _reduce_693(val, _values, result) result = args val result end |
#_reduce_694(val, _values, result) ⇒ Object
13149 13150 13151 13152 13153 |
# File 'lib/ruby_parser31.rb', line 13149 def _reduce_694(val, _values, result) result = args val result end |
#_reduce_695(val, _values, result) ⇒ Object
13155 13156 13157 13158 13159 |
# File 'lib/ruby_parser31.rb', line 13155 def _reduce_695(val, _values, result) result = args val result end |
#_reduce_696(val, _values, result) ⇒ Object
13161 13162 13163 13164 13165 13166 |
# File 'lib/ruby_parser31.rb', line 13161 def _reduce_696(val, _values, result) (_, line), = val result = s(:forward_args).line line result end |
#_reduce_697(val, _values, result) ⇒ Object
13168 13169 13170 13171 13172 |
# File 'lib/ruby_parser31.rb', line 13168 def _reduce_697(val, _values, result) yyerror "formal argument cannot be a constant" result end |
#_reduce_698(val, _values, result) ⇒ Object
13174 13175 13176 13177 13178 |
# File 'lib/ruby_parser31.rb', line 13174 def _reduce_698(val, _values, result) yyerror "formal argument cannot be an instance variable" result end |
#_reduce_699(val, _values, result) ⇒ Object
13180 13181 13182 13183 13184 |
# File 'lib/ruby_parser31.rb', line 13180 def _reduce_699(val, _values, result) yyerror "formal argument cannot be a global variable" result end |
#_reduce_70(val, _values, result) ⇒ Object
9425 9426 9427 9428 9429 |
# File 'lib/ruby_parser31.rb', line 9425 def _reduce_70(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_700(val, _values, result) ⇒ Object
13186 13187 13188 13189 13190 |
# File 'lib/ruby_parser31.rb', line 13186 def _reduce_700(val, _values, result) yyerror "formal argument cannot be a class variable" result end |
#_reduce_702(val, _values, result) ⇒ Object
reduce 701 omitted
13194 13195 13196 13197 13198 13199 13200 13201 13202 |
# File 'lib/ruby_parser31.rb', line 13194 def _reduce_702(val, _values, result) (id, line), = val identifier = id.to_sym self.env[identifier] = :lvar result = [identifier, line] result end |
#_reduce_705(val, _values, result) ⇒ Object
reduce 704 omitted
13208 13209 13210 13211 13212 13213 13214 |
# File 'lib/ruby_parser31.rb', line 13208 def _reduce_705(val, _values, result) _, margs, _ = val result = margs result end |
#_reduce_706(val, _values, result) ⇒ Object
13216 13217 13218 13219 13220 |
# File 'lib/ruby_parser31.rb', line 13216 def _reduce_706(val, _values, result) result = new_arg val result end |
#_reduce_707(val, _values, result) ⇒ Object
13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 |
# File 'lib/ruby_parser31.rb', line 13222 def _reduce_707(val, _values, result) list, _, item = val if list.sexp_type == :args then result = list else result = s(:args, list).line list.line end if Sexp === item then line_max = item.line_max else item, line_max = item end result << item result.line_max = line_max result end |
#_reduce_708(val, _values, result) ⇒ Object
13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 |
# File 'lib/ruby_parser31.rb', line 13243 def _reduce_708(val, _values, result) label, = val # arg_var(p, formal_argument(p, $1)); # p->cur_arg = get_id($1); # p->max_numparam = ORDINAL_PARAM; self.in_argdef = false result = label result end |
#_reduce_709(val, _values, result) ⇒ Object
13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 |
# File 'lib/ruby_parser31.rb', line 13254 def _reduce_709(val, _values, result) # TODO: new_kw_arg (label, line), arg = val identifier = label.to_sym self.env[identifier] = :lvar self.in_argdef = true kwarg = s(:kwarg, identifier, arg).line line result = s(:array, kwarg).line line result end |
#_reduce_71(val, _values, result) ⇒ Object
9431 9432 9433 9434 9435 |
# File 'lib/ruby_parser31.rb', line 9431 def _reduce_71(val, _values, result) lexer.cond.push true result end |
#_reduce_710(val, _values, result) ⇒ Object
13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 |
# File 'lib/ruby_parser31.rb', line 13268 def _reduce_710(val, _values, result) (label, line), = val id = label.to_sym self.env[id] = :lvar self.in_argdef = true result = s(:array, s(:kwarg, id).line(line)).line line result end |
#_reduce_711(val, _values, result) ⇒ Object
13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 |
# File 'lib/ruby_parser31.rb', line 13280 def _reduce_711(val, _values, result) # TODO: new_kw_arg (label, line), expr = val id = label.to_sym self.env[id] = :lvar self.in_argdef = true result = s(:array, s(:kwarg, id, expr).line(line)).line line result end |
#_reduce_712(val, _values, result) ⇒ Object
13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 |
# File 'lib/ruby_parser31.rb', line 13292 def _reduce_712(val, _values, result) # TODO: new_kw_arg (label, line), = val id = label.to_sym self.env[id] = :lvar self.in_argdef = true result = s(:array, s(:kwarg, id).line(line)).line line result end |
#_reduce_714(val, _values, result) ⇒ Object
reduce 713 omitted
13306 13307 13308 13309 13310 13311 |
# File 'lib/ruby_parser31.rb', line 13306 def _reduce_714(val, _values, result) list, _, item = val result = list << item.last result end |
#_reduce_716(val, _values, result) ⇒ Object
reduce 715 omitted
13315 13316 13317 13318 13319 |
# File 'lib/ruby_parser31.rb', line 13315 def _reduce_716(val, _values, result) result = args val result end |
#_reduce_719(val, _values, result) ⇒ Object
reduce 718 omitted
13325 13326 13327 13328 13329 13330 |
# File 'lib/ruby_parser31.rb', line 13325 def _reduce_719(val, _values, result) (_, line), _ = val result = [:"**nil", line] result end |
#_reduce_72(val, _values, result) ⇒ Object
9437 9438 9439 9440 9441 |
# File 'lib/ruby_parser31.rb', line 9437 def _reduce_72(val, _values, result) lexer.cond.pop result end |
#_reduce_720(val, _values, result) ⇒ Object
13332 13333 13334 13335 13336 13337 13338 13339 13340 |
# File 'lib/ruby_parser31.rb', line 13332 def _reduce_720(val, _values, result) _, (id, line) = val name = id.to_sym self.assignable [name, line] result = [:"**#{name}", line] result end |
#_reduce_721(val, _values, result) ⇒ Object
13342 13343 13344 13345 13346 13347 13348 13349 |
# File 'lib/ruby_parser31.rb', line 13342 def _reduce_721(val, _values, result) (_, line), = val id = :"**" self.env[id] = :lvar result = [id, line] result end |
#_reduce_722(val, _values, result) ⇒ Object
13351 13352 13353 13354 13355 13356 13357 13358 13359 |
# File 'lib/ruby_parser31.rb', line 13351 def _reduce_722(val, _values, result) lhs, _, rhs = val self.in_argdef = true result = self.assignable lhs, rhs # TODO: detect duplicate names # TODO? p->cur_arg = 0; result end |
#_reduce_723(val, _values, result) ⇒ Object
13361 13362 13363 13364 13365 13366 13367 13368 |
# File 'lib/ruby_parser31.rb', line 13361 def _reduce_723(val, _values, result) lhs, _, rhs = val self.in_argdef = true result = self.assignable lhs, rhs # TODO? p->cur_arg = 0; result end |
#_reduce_724(val, _values, result) ⇒ Object
13370 13371 13372 13373 13374 13375 |
# File 'lib/ruby_parser31.rb', line 13370 def _reduce_724(val, _values, result) optblk, = val result = s(:block, optblk).line optblk.line result end |
#_reduce_725(val, _values, result) ⇒ Object
13377 13378 13379 13380 13381 13382 13383 |
# File 'lib/ruby_parser31.rb', line 13377 def _reduce_725(val, _values, result) optarg, _, optblk = val result = optarg result << optblk result end |
#_reduce_726(val, _values, result) ⇒ Object
13385 13386 13387 13388 13389 13390 |
# File 'lib/ruby_parser31.rb', line 13385 def _reduce_726(val, _values, result) opt, = val result = s(:block, opt).line opt.line result end |
#_reduce_727(val, _values, result) ⇒ Object
13392 13393 13394 13395 13396 |
# File 'lib/ruby_parser31.rb', line 13392 def _reduce_727(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_73(val, _values, result) ⇒ Object
9443 9444 9445 9446 9447 9448 |
# File 'lib/ruby_parser31.rb', line 9443 def _reduce_73(val, _values, result) _, expr, _, _ = val result = expr result end |
#_reduce_730(val, _values, result) ⇒ Object
reduce 729 omitted
13402 13403 13404 13405 13406 13407 13408 13409 13410 |
# File 'lib/ruby_parser31.rb', line 13402 def _reduce_730(val, _values, result) # TODO: differs from parse.y - needs tests _, (id, line) = val name = id.to_sym self.assignable [name, line] result = [:"*#{name}", line] result end |
#_reduce_731(val, _values, result) ⇒ Object
13412 13413 13414 13415 13416 13417 13418 13419 |
# File 'lib/ruby_parser31.rb', line 13412 def _reduce_731(val, _values, result) (_, line), = val name = :"*" self.env[name] = :lvar result = [name, line] result end |
#_reduce_734(val, _values, result) ⇒ Object
reduce 733 omitted
13425 13426 13427 13428 13429 13430 13431 13432 13433 |
# File 'lib/ruby_parser31.rb', line 13425 def _reduce_734(val, _values, result) _, (id, line) = val identifier = id.to_sym self.env[identifier] = :lvar result = ["&#{identifier}".to_sym, line] result end |
#_reduce_735(val, _values, result) ⇒ Object
13435 13436 13437 13438 13439 13440 13441 |
# File 'lib/ruby_parser31.rb', line 13435 def _reduce_735(val, _values, result) (_, line), = val result = [:&, line] result end |
#_reduce_736(val, _values, result) ⇒ Object
13443 13444 13445 13446 13447 13448 |
# File 'lib/ruby_parser31.rb', line 13443 def _reduce_736(val, _values, result) _, arg = val result = arg result end |
#_reduce_737(val, _values, result) ⇒ Object
13450 13451 13452 13453 13454 |
# File 'lib/ruby_parser31.rb', line 13450 def _reduce_737(val, _values, result) result = nil result end |
#_reduce_739(val, _values, result) ⇒ Object
reduce 738 omitted
13458 13459 13460 13461 13462 |
# File 'lib/ruby_parser31.rb', line 13458 def _reduce_739(val, _values, result) lexer.lex_state = EXPR_BEG result end |
#_reduce_740(val, _values, result) ⇒ Object
13464 13465 13466 13467 13468 13469 13470 |
# File 'lib/ruby_parser31.rb', line 13464 def _reduce_740(val, _values, result) result = val[2] yyerror "Can't define single method for literals." if result.sexp_type == :lit result end |
#_reduce_741(val, _values, result) ⇒ Object
13472 13473 13474 13475 13476 |
# File 'lib/ruby_parser31.rb', line 13472 def _reduce_741(val, _values, result) result = s(:array).line lexer.lineno result end |
#_reduce_744(val, _values, result) ⇒ Object
reduce 743 omitted
13482 13483 13484 13485 13486 13487 13488 13489 13490 |
# File 'lib/ruby_parser31.rb', line 13482 def _reduce_744(val, _values, result) list = val[0].dup more = val[2].sexp_body list.push(*more) unless more.empty? result = list result.sexp_type = :hash result end |
#_reduce_745(val, _values, result) ⇒ Object
13492 13493 13494 13495 13496 13497 |
# File 'lib/ruby_parser31.rb', line 13492 def _reduce_745(val, _values, result) v1, _, v2 = val result = s(:array, v1, v2).line v1.line result end |
#_reduce_746(val, _values, result) ⇒ Object
13499 13500 13501 13502 13503 13504 13505 13506 |
# File 'lib/ruby_parser31.rb', line 13499 def _reduce_746(val, _values, result) label, arg = val lit = wrap :lit, label result = s(:array, lit, arg).line lit.line result end |
#_reduce_747(val, _values, result) ⇒ Object
13508 13509 13510 13511 13512 13513 13514 13515 |
# File 'lib/ruby_parser31.rb', line 13508 def _reduce_747(val, _values, result) lit = wrap :lit, val[0] arg = nil result = s(:array, lit, arg).line lit.line result end |
#_reduce_748(val, _values, result) ⇒ Object
13517 13518 13519 13520 13521 13522 13523 13524 13525 |
# File 'lib/ruby_parser31.rb', line 13517 def _reduce_748(val, _values, result) (_, line), sym, _, value = val sym.sexp_type = :dsym result = s(:array, sym, value).line line result end |
#_reduce_749(val, _values, result) ⇒ Object
13527 13528 13529 13530 13531 13532 13533 |
# File 'lib/ruby_parser31.rb', line 13527 def _reduce_749(val, _values, result) _, arg = val line = arg.line result = s(:array, s(:kwsplat, arg).line(line)).line line result end |
#_reduce_77(val, _values, result) ⇒ Object
reduce 76 omitted
9456 9457 9458 9459 9460 9461 |
# File 'lib/ruby_parser31.rb', line 9456 def _reduce_77(val, _values, result) blk, _, (msg, _line), args = val result = new_call(blk, msg.to_sym, args).line blk.line result end |
#_reduce_770(val, _values, result) ⇒ Object
reduce 769 omitted
13575 13576 13577 13578 13579 13580 |
# File 'lib/ruby_parser31.rb', line 13575 def _reduce_770(val, _values, result) _, close = val # TODO: include lineno in close? result = [close, lexer.lineno] result end |
#_reduce_771(val, _values, result) ⇒ Object
13582 13583 13584 13585 13586 13587 |
# File 'lib/ruby_parser31.rb', line 13582 def _reduce_771(val, _values, result) _, close = val result = [close, lexer.lineno] result end |
#_reduce_772(val, _values, result) ⇒ Object
13589 13590 13591 13592 13593 13594 |
# File 'lib/ruby_parser31.rb', line 13589 def _reduce_772(val, _values, result) _, close = val result = [close, lexer.lineno] result end |
#_reduce_776(val, _values, result) ⇒ Object
reduce 775 omitted
13602 13603 13604 13605 |
# File 'lib/ruby_parser31.rb', line 13602 def _reduce_776(val, _values, result) yyerrok result end |
#_reduce_779(val, _values, result) ⇒ Object
reduce 778 omitted
13611 13612 13613 13614 |
# File 'lib/ruby_parser31.rb', line 13611 def _reduce_779(val, _values, result) yyerrok result end |
#_reduce_78(val, _values, result) ⇒ Object
9463 9464 9465 9466 9467 9468 |
# File 'lib/ruby_parser31.rb', line 9463 def _reduce_78(val, _values, result) # self.env.extend(:dynamic) result = self.lexer.lineno result end |
#_reduce_780(val, _values, result) ⇒ Object
13616 13617 13618 13619 |
# File 'lib/ruby_parser31.rb', line 13616 def _reduce_780(val, _values, result) result = nil; result end |
#_reduce_79(val, _values, result) ⇒ Object
9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 |
# File 'lib/ruby_parser31.rb', line 9470 def _reduce_79(val, _values, result) _, line, body, _ = val result = body result.line line # self.env.unextend result end |
#_reduce_80(val, _values, result) ⇒ Object
9481 9482 9483 9484 9485 9486 |
# File 'lib/ruby_parser31.rb', line 9481 def _reduce_80(val, _values, result) (msg, line), = val result = new_call(nil, msg.to_sym).line line result end |
#_reduce_81(val, _values, result) ⇒ Object
9488 9489 9490 9491 9492 9493 |
# File 'lib/ruby_parser31.rb', line 9488 def _reduce_81(val, _values, result) call, args = val result = call.concat args.sexp_body result end |
#_reduce_82(val, _values, result) ⇒ Object
9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 |
# File 'lib/ruby_parser31.rb', line 9495 def _reduce_82(val, _values, result) call, args, block = val result = call.concat args.sexp_body if block then block_dup_check result, block result, operation = block, result result.insert 1, operation end result end |
#_reduce_83(val, _values, result) ⇒ Object
9510 9511 9512 9513 9514 9515 9516 9517 |
# File 'lib/ruby_parser31.rb', line 9510 def _reduce_83(val, _values, result) lhs, callop, (op, _), args = val result = new_call lhs, op.to_sym, args, callop result.line lhs.line result end |
#_reduce_84(val, _values, result) ⇒ Object
9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 |
# File 'lib/ruby_parser31.rb', line 9519 def _reduce_84(val, _values, result) recv, _, (msg, _line), args, block = val call = new_call recv, msg.to_sym, args, val[1] block_dup_check call, block block.insert 1, call result = block result end |
#_reduce_85(val, _values, result) ⇒ Object
9531 9532 9533 9534 9535 9536 9537 9538 |
# File 'lib/ruby_parser31.rb', line 9531 def _reduce_85(val, _values, result) lhs, _, (id, line), args = val result = new_call lhs, id.to_sym, args result.line line result end |
#_reduce_86(val, _values, result) ⇒ Object
9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 |
# File 'lib/ruby_parser31.rb', line 9540 def _reduce_86(val, _values, result) recv, _, (msg, _line), args, block = val call = new_call recv, msg.to_sym, args block_dup_check call, block block.insert 1, call result = block result end |
#_reduce_87(val, _values, result) ⇒ Object
9552 9553 9554 9555 9556 |
# File 'lib/ruby_parser31.rb', line 9552 def _reduce_87(val, _values, result) result = new_super val[1] result end |
#_reduce_88(val, _values, result) ⇒ Object
9558 9559 9560 9561 9562 9563 9564 |
# File 'lib/ruby_parser31.rb', line 9558 def _reduce_88(val, _values, result) (_, line), args = val result = new_yield args result.line line # TODO: push to new_yield result end |
#_reduce_89(val, _values, result) ⇒ Object
9566 9567 9568 9569 9570 9571 |
# File 'lib/ruby_parser31.rb', line 9566 def _reduce_89(val, _values, result) line = val[0].last result = s(:return, ret_args(val[1])).line(line) result end |
#_reduce_9(val, _values, result) ⇒ Object
reduce 8 omitted
8983 8984 8985 8986 8987 8988 8989 8990 8991 |
# File 'lib/ruby_parser31.rb', line 8983 def _reduce_9(val, _values, result) if (self.in_def || self.in_single > 0) then debug 1 yyerror "BEGIN in method" end self.env.extend result end |
#_reduce_90(val, _values, result) ⇒ Object
9573 9574 9575 9576 9577 9578 |
# File 'lib/ruby_parser31.rb', line 9573 def _reduce_90(val, _values, result) (_, line), args = val result = s(:break, ret_args(args)).line line result end |
#_reduce_91(val, _values, result) ⇒ Object
9580 9581 9582 9583 9584 9585 |
# File 'lib/ruby_parser31.rb', line 9580 def _reduce_91(val, _values, result) line = val[0].last result = s(:next, ret_args(val[1])).line(line) result end |
#_reduce_93(val, _values, result) ⇒ Object
reduce 92 omitted
9589 9590 9591 9592 9593 |
# File 'lib/ruby_parser31.rb', line 9589 def _reduce_93(val, _values, result) result = val[1] result end |
#_reduce_95(val, _values, result) ⇒ Object
reduce 94 omitted
9597 9598 9599 9600 9601 9602 9603 9604 |
# File 'lib/ruby_parser31.rb', line 9597 def _reduce_95(val, _values, result) _, arg, _ = val l = arg.line result = s(:masgn, s(:array, arg).line(l)).line l result end |
#_reduce_96(val, _values, result) ⇒ Object
9606 9607 9608 9609 9610 9611 |
# File 'lib/ruby_parser31.rb', line 9606 def _reduce_96(val, _values, result) head, = val result = s(:masgn, head).line head.line result end |
#_reduce_97(val, _values, result) ⇒ Object
9613 9614 9615 9616 9617 9618 |
# File 'lib/ruby_parser31.rb', line 9613 def _reduce_97(val, _values, result) lhs, rhs = val result = s(:masgn, lhs << rhs.compact).line lhs.line result end |
#_reduce_98(val, _values, result) ⇒ Object
9620 9621 9622 9623 9624 9625 9626 |
# File 'lib/ruby_parser31.rb', line 9620 def _reduce_98(val, _values, result) head, _, tail = val head << s(:splat, tail).line(tail.line) result = s(:masgn, head).line head.line result end |
#_reduce_99(val, _values, result) ⇒ Object
9628 9629 9630 9631 9632 9633 9634 9635 9636 |
# File 'lib/ruby_parser31.rb', line 9628 def _reduce_99(val, _values, result) ary1, _, splat, _, ary2 = val result = list_append ary1, s(:splat, splat).line(splat.line) result.concat ary2.sexp_body result = s(:masgn, result).line result.line result end |
#_reduce_none(val, _values, result) ⇒ Object
13621 13622 13623 |
# File 'lib/ruby_parser31.rb', line 13621 def _reduce_none(val, _values, result) val[0] end |