Class: Ruby26Parser
- Inherits:
-
RubyParser::Parser
- Object
- Racc::Parser
- RubyParser::Parser
- Ruby26Parser
- Includes:
- RubyLexer::State::Values
- Defined in:
- lib/ruby_parser26.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", "@3", "compstmt", "opt_rescue", "k_else", "opt_ensure", "@4", "stmts", "stmt_or_begin", "@5", "fitem", "undef_list", "expr_value", "command_asgn", "mlhs", "command_call", "lhs", "mrhs", "mrhs_arg", "expr", "@6", "command_rhs", "var_lhs", "primary_value", "opt_call_args", "rbracket", "call_op", "backref", "opt_nl", "arg", "expr_value_do", "do", "@7", "@8", "command", "block_command", "block_call", "call_op2", "operation2", "command_args", "cmd_brace_block", "brace_body", "fcall", "@9", "operation", "k_return", "call_args", "mlhs_basic", "mlhs_inner", "rparen", "mlhs_head", "mlhs_item", "mlhs_node", "mlhs_post", "user_variable", "keyword_variable", "cname", "cpath", "fname", "op", "reswords", "symbol", "@10", "arg_rhs", "simple_numeric", "rel_expr", "primary", "relop", "arg_value", "aref_args", "args", "trailer", "assocs", "paren_args", "opt_paren_args", "opt_block_arg", "block_arg", "@11", "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", "k_for", "for_var", "k_class", "superclass", "term", "k_module", "k_def", "f_arglist", "singleton", "dot_or_colon", "@12", "@13", "@14", "@15", "@16", "@17", "@18", "@19", "@20", "@21", "@22", "@23", "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", "block_args_tail", "f_block_kwarg", "f_kwrest", "opt_f_block_arg", "f_block_arg", "opt_block_args_tail", "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", "@24", "@25", "f_args", "do_block", "do_body", "operation3", "@26", "@27", "@28", "@29", "case_args", "@30", "@31", "cases", "@32", "exc_list", "exc_var", "numeric", "string", "string1", "string_contents", "xstring_contents", "regexp_contents", "word_list", "word", "string_content", "symbol_list", "qword_list", "qsym_list", "string_dvar", "@33", "@34", "ssym", "dsym", "sym", "@35", "args_tail", "@36", "f_kwarg", "opt_args_tail", "f_optarg", "f_arg_asgn", "f_arg_item", "f_label", "f_kw", "f_block_kw", "kwrest_mark", "f_opt", "f_block_opt", "restarg_mark", "blkarg_mark", "@37", "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_106(val, _values, result) ⇒ Object
- #_reduce_107(val, _values, result) ⇒ Object
- #_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_12(val, _values, result) ⇒ Object
-
#_reduce_120(val, _values, result) ⇒ Object
reduce 119 omitted.
- #_reduce_121(val, _values, result) ⇒ Object
- #_reduce_122(val, _values, result) ⇒ Object
-
#_reduce_126(val, _values, result) ⇒ Object
reduce 125 omitted.
-
#_reduce_128(val, _values, result) ⇒ Object
reduce 127 omitted.
- #_reduce_13(val, _values, result) ⇒ Object
-
#_reduce_130(val, _values, result) ⇒ Object
reduce 129 omitted.
- #_reduce_131(val, _values, result) ⇒ Object
- #_reduce_132(val, _values, result) ⇒ Object
- #_reduce_14(val, _values, result) ⇒ Object
- #_reduce_15(val, _values, result) ⇒ Object
- #_reduce_16(val, _values, result) ⇒ Object
-
#_reduce_19(val, _values, result) ⇒ Object
reduce 18 omitted.
- #_reduce_2(val, _values, result) ⇒ Object
- #_reduce_20(val, _values, result) ⇒ Object
-
#_reduce_204(val, _values, result) ⇒ Object
reduce 203 omitted.
- #_reduce_205(val, _values, result) ⇒ Object
- #_reduce_206(val, _values, result) ⇒ Object
- #_reduce_207(val, _values, result) ⇒ Object
- #_reduce_208(val, _values, result) ⇒ Object
- #_reduce_209(val, _values, result) ⇒ Object
- #_reduce_210(val, _values, result) ⇒ Object
- #_reduce_211(val, _values, result) ⇒ Object
- #_reduce_212(val, _values, result) ⇒ Object
- #_reduce_213(val, _values, result) ⇒ Object
- #_reduce_214(val, _values, result) ⇒ Object
- #_reduce_215(val, _values, result) ⇒ Object
- #_reduce_216(val, _values, result) ⇒ Object
- #_reduce_217(val, _values, result) ⇒ Object
- #_reduce_218(val, _values, result) ⇒ Object
- #_reduce_219(val, _values, result) ⇒ Object
-
#_reduce_22(val, _values, result) ⇒ Object
reduce 21 omitted.
- #_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_231(val, _values, result) ⇒ Object
reduce 230 omitted.
- #_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_249(val, _values, result) ⇒ Object
reduce 248 omitted.
- #_reduce_25(val, _values, result) ⇒ Object
- #_reduce_250(val, _values, result) ⇒ Object
- #_reduce_251(val, _values, result) ⇒ Object
-
#_reduce_253(val, _values, result) ⇒ Object
reduce 252 omitted.
- #_reduce_254(val, _values, result) ⇒ Object
- #_reduce_255(val, _values, result) ⇒ Object
-
#_reduce_257(val, _values, result) ⇒ Object
reduce 256 omitted.
- #_reduce_258(val, _values, result) ⇒ Object
- #_reduce_26(val, _values, result) ⇒ Object
-
#_reduce_263(val, _values, result) ⇒ Object
reduce 262 omitted.
- #_reduce_264(val, _values, result) ⇒ Object
- #_reduce_265(val, _values, result) ⇒ Object
- #_reduce_266(val, _values, result) ⇒ Object
- #_reduce_267(val, _values, result) ⇒ Object
- #_reduce_268(val, _values, result) ⇒ Object
- #_reduce_269(val, _values, result) ⇒ Object
- #_reduce_27(val, _values, result) ⇒ Object
- #_reduce_270(val, _values, result) ⇒ Object
- #_reduce_271(val, _values, result) ⇒ Object
- #_reduce_272(val, _values, result) ⇒ Object
- #_reduce_273(val, _values, result) ⇒ Object
- #_reduce_274(val, _values, result) ⇒ Object
-
#_reduce_276(val, _values, result) ⇒ Object
reduce 275 omitted.
- #_reduce_277(val, _values, result) ⇒ Object
- #_reduce_278(val, _values, result) ⇒ Object
- #_reduce_279(val, _values, result) ⇒ Object
- #_reduce_28(val, _values, result) ⇒ Object
- #_reduce_280(val, _values, result) ⇒ Object
- #_reduce_281(val, _values, result) ⇒ Object
- #_reduce_282(val, _values, result) ⇒ Object
- #_reduce_283(val, _values, result) ⇒ Object
- #_reduce_284(val, _values, result) ⇒ Object
- #_reduce_29(val, _values, result) ⇒ Object
-
#_reduce_295(val, _values, result) ⇒ Object
reduce 294 omitted.
- #_reduce_296(val, _values, result) ⇒ Object
- #_reduce_297(val, _values, result) ⇒ Object
- #_reduce_298(val, _values, result) ⇒ Object
- #_reduce_299(val, _values, result) ⇒ Object
- #_reduce_3(val, _values, result) ⇒ Object
- #_reduce_30(val, _values, result) ⇒ Object
- #_reduce_300(val, _values, result) ⇒ Object
- #_reduce_301(val, _values, result) ⇒ Object
- #_reduce_302(val, _values, result) ⇒ Object
- #_reduce_303(val, _values, result) ⇒ Object
- #_reduce_304(val, _values, result) ⇒ Object
- #_reduce_305(val, _values, result) ⇒ Object
- #_reduce_306(val, _values, result) ⇒ Object
- #_reduce_307(val, _values, result) ⇒ Object
- #_reduce_308(val, _values, result) ⇒ Object
- #_reduce_309(val, _values, result) ⇒ Object
- #_reduce_31(val, _values, result) ⇒ Object
- #_reduce_310(val, _values, result) ⇒ Object
- #_reduce_311(val, _values, result) ⇒ Object
- #_reduce_312(val, _values, result) ⇒ Object
- #_reduce_313(val, _values, result) ⇒ Object
- #_reduce_314(val, _values, result) ⇒ Object
- #_reduce_315(val, _values, result) ⇒ Object
- #_reduce_316(val, _values, result) ⇒ Object
-
#_reduce_318(val, _values, result) ⇒ Object
reduce 317 omitted.
- #_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_337(val, _values, result) ⇒ Object
- #_reduce_338(val, _values, result) ⇒ Object
- #_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_35(val, _values, result) ⇒ Object
-
#_reduce_351(val, _values, result) ⇒ Object
reduce 350 omitted.
- #_reduce_352(val, _values, result) ⇒ Object
- #_reduce_353(val, _values, result) ⇒ Object
-
#_reduce_369(val, _values, result) ⇒ Object
reduce 368 omitted.
-
#_reduce_37(val, _values, result) ⇒ Object
reduce 36 omitted.
-
#_reduce_371(val, _values, result) ⇒ Object
reduce 370 omitted.
-
#_reduce_373(val, _values, result) ⇒ Object
reduce 372 omitted.
-
#_reduce_375(val, _values, result) ⇒ Object
reduce 374 omitted.
- #_reduce_376(val, _values, result) ⇒ Object
- #_reduce_377(val, _values, result) ⇒ Object
- #_reduce_378(val, _values, result) ⇒ Object
- #_reduce_379(val, _values, result) ⇒ Object
- #_reduce_38(val, _values, result) ⇒ Object
- #_reduce_380(val, _values, result) ⇒ Object
- #_reduce_381(val, _values, result) ⇒ Object
- #_reduce_382(val, _values, result) ⇒ Object
- #_reduce_383(val, _values, result) ⇒ Object
- #_reduce_384(val, _values, result) ⇒ Object
- #_reduce_385(val, _values, result) ⇒ Object
- #_reduce_386(val, _values, result) ⇒ Object
- #_reduce_387(val, _values, result) ⇒ Object
- #_reduce_388(val, _values, result) ⇒ Object
- #_reduce_389(val, _values, result) ⇒ Object
- #_reduce_39(val, _values, result) ⇒ Object
-
#_reduce_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_403(val, _values, result) ⇒ Object
- #_reduce_404(val, _values, result) ⇒ Object
- #_reduce_405(val, _values, result) ⇒ Object
- #_reduce_406(val, _values, result) ⇒ Object
- #_reduce_407(val, _values, result) ⇒ Object
- #_reduce_408(val, _values, result) ⇒ Object
- #_reduce_409(val, _values, result) ⇒ Object
-
#_reduce_41(val, _values, result) ⇒ Object
reduce 40 omitted.
- #_reduce_410(val, _values, result) ⇒ Object
-
#_reduce_412(val, _values, result) ⇒ Object
reduce 411 omitted.
- #_reduce_413(val, _values, result) ⇒ Object
- #_reduce_414(val, _values, result) ⇒ Object
- #_reduce_415(val, _values, result) ⇒ Object
-
#_reduce_417(val, _values, result) ⇒ Object
reduce 416 omitted.
- #_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_434(val, _values, result) ⇒ Object
- #_reduce_435(val, _values, result) ⇒ Object
- #_reduce_436(val, _values, result) ⇒ Object
- #_reduce_437(val, _values, result) ⇒ Object
- #_reduce_438(val, _values, result) ⇒ Object
- #_reduce_439(val, _values, result) ⇒ Object
- #_reduce_44(val, _values, result) ⇒ Object
- #_reduce_440(val, _values, result) ⇒ Object
- #_reduce_441(val, _values, result) ⇒ Object
- #_reduce_442(val, _values, result) ⇒ Object
- #_reduce_443(val, _values, result) ⇒ Object
- #_reduce_444(val, _values, result) ⇒ Object
- #_reduce_445(val, _values, result) ⇒ Object
- #_reduce_446(val, _values, result) ⇒ Object
- #_reduce_447(val, _values, result) ⇒ Object
- #_reduce_448(val, _values, result) ⇒ Object
- #_reduce_449(val, _values, result) ⇒ Object
- #_reduce_45(val, _values, result) ⇒ Object
- #_reduce_450(val, _values, result) ⇒ Object
- #_reduce_451(val, _values, result) ⇒ Object
- #_reduce_452(val, _values, result) ⇒ Object
- #_reduce_453(val, _values, result) ⇒ Object
-
#_reduce_456(val, _values, result) ⇒ Object
reduce 455 omitted.
- #_reduce_457(val, _values, result) ⇒ Object
- #_reduce_458(val, _values, result) ⇒ Object
- #_reduce_46(val, _values, result) ⇒ Object
-
#_reduce_461(val, _values, result) ⇒ Object
reduce 460 omitted.
-
#_reduce_463(val, _values, result) ⇒ Object
reduce 462 omitted.
-
#_reduce_465(val, _values, result) ⇒ Object
reduce 464 omitted.
-
#_reduce_467(val, _values, result) ⇒ Object
reduce 466 omitted.
- #_reduce_468(val, _values, result) ⇒ Object
- #_reduce_47(val, _values, result) ⇒ Object
-
#_reduce_470(val, _values, result) ⇒ Object
reduce 469 omitted.
- #_reduce_471(val, _values, result) ⇒ Object
- #_reduce_472(val, _values, result) ⇒ Object
- #_reduce_473(val, _values, result) ⇒ Object
- #_reduce_474(val, _values, result) ⇒ Object
- #_reduce_475(val, _values, result) ⇒ Object
- #_reduce_476(val, _values, result) ⇒ Object
- #_reduce_477(val, _values, result) ⇒ Object
- #_reduce_478(val, _values, result) ⇒ Object
- #_reduce_48(val, _values, result) ⇒ Object
-
#_reduce_480(val, _values, result) ⇒ Object
reduce 479 omitted.
- #_reduce_481(val, _values, result) ⇒ Object
- #_reduce_482(val, _values, result) ⇒ Object
- #_reduce_483(val, _values, result) ⇒ Object
- #_reduce_484(val, _values, result) ⇒ Object
- #_reduce_485(val, _values, result) ⇒ Object
- #_reduce_486(val, _values, result) ⇒ Object
- #_reduce_487(val, _values, result) ⇒ Object
- #_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_492(val, _values, result) ⇒ Object
- #_reduce_493(val, _values, result) ⇒ Object
- #_reduce_494(val, _values, result) ⇒ Object
- #_reduce_495(val, _values, result) ⇒ Object
- #_reduce_496(val, _values, result) ⇒ Object
- #_reduce_497(val, _values, result) ⇒ Object
- #_reduce_498(val, _values, result) ⇒ Object
- #_reduce_499(val, _values, result) ⇒ Object
- #_reduce_50(val, _values, result) ⇒ Object
- #_reduce_500(val, _values, result) ⇒ Object
- #_reduce_501(val, _values, result) ⇒ Object
- #_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_510(val, _values, result) ⇒ Object
reduce 509 omitted.
- #_reduce_511(val, _values, result) ⇒ Object
-
#_reduce_516(val, _values, result) ⇒ Object
reduce 515 omitted.
-
#_reduce_518(val, _values, result) ⇒ Object
reduce 517 omitted.
-
#_reduce_528(val, _values, result) ⇒ Object
reduce 527 omitted.
- #_reduce_529(val, _values, result) ⇒ Object
-
#_reduce_53(val, _values, result) ⇒ Object
reduce 52 omitted.
- #_reduce_530(val, _values, result) ⇒ Object
- #_reduce_531(val, _values, result) ⇒ Object
- #_reduce_532(val, _values, result) ⇒ Object
- #_reduce_533(val, _values, result) ⇒ Object
- #_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_539(val, _values, result) ⇒ Object
- #_reduce_54(val, _values, result) ⇒ Object
- #_reduce_540(val, _values, result) ⇒ Object
- #_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_548(val, _values, result) ⇒ Object
- #_reduce_549(val, _values, result) ⇒ Object
- #_reduce_55(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_555(val, _values, result) ⇒ Object
- #_reduce_556(val, _values, result) ⇒ Object
- #_reduce_557(val, _values, result) ⇒ Object
- #_reduce_558(val, _values, result) ⇒ Object
- #_reduce_559(val, _values, result) ⇒ Object
- #_reduce_56(val, _values, result) ⇒ Object
- #_reduce_560(val, _values, result) ⇒ Object
- #_reduce_561(val, _values, result) ⇒ Object
- #_reduce_562(val, _values, result) ⇒ Object
- #_reduce_563(val, _values, result) ⇒ Object
- #_reduce_564(val, _values, result) ⇒ Object
- #_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_569(val, _values, result) ⇒ Object
- #_reduce_570(val, _values, result) ⇒ Object
- #_reduce_571(val, _values, result) ⇒ Object
-
#_reduce_573(val, _values, result) ⇒ Object
reduce 572 omitted.
-
#_reduce_576(val, _values, result) ⇒ Object
reduce 575 omitted.
- #_reduce_577(val, _values, result) ⇒ Object
- #_reduce_578(val, _values, result) ⇒ Object
-
#_reduce_58(val, _values, result) ⇒ Object
reduce 57 omitted.
-
#_reduce_580(val, _values, result) ⇒ Object
reduce 579 omitted.
- #_reduce_581(val, _values, result) ⇒ Object
- #_reduce_582(val, _values, result) ⇒ Object
- #_reduce_583(val, _values, result) ⇒ Object
-
#_reduce_585(val, _values, result) ⇒ Object
reduce 584 omitted.
-
#_reduce_587(val, _values, result) ⇒ Object
reduce 586 omitted.
- #_reduce_59(val, _values, result) ⇒ Object
-
#_reduce_590(val, _values, result) ⇒ Object
reduce 589 omitted.
- #_reduce_591(val, _values, result) ⇒ Object
- #_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_6(val, _values, result) ⇒ Object
reduce 5 omitted.
- #_reduce_60(val, _values, result) ⇒ Object
-
#_reduce_600(val, _values, result) ⇒ Object
reduce 599 omitted.
- #_reduce_601(val, _values, result) ⇒ Object
-
#_reduce_604(val, _values, result) ⇒ Object
reduce 603 omitted.
- #_reduce_605(val, _values, result) ⇒ Object
- #_reduce_606(val, _values, result) ⇒ Object
-
#_reduce_608(val, _values, result) ⇒ Object
reduce 607 omitted.
- #_reduce_609(val, _values, result) ⇒ Object
- #_reduce_61(val, _values, result) ⇒ Object
- #_reduce_610(val, _values, result) ⇒ Object
-
#_reduce_613(val, _values, result) ⇒ Object
reduce 612 omitted.
- #_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_638(val, _values, result) ⇒ Object
reduce 637 omitted.
- #_reduce_639(val, _values, result) ⇒ Object
-
#_reduce_643(val, _values, result) ⇒ Object
reduce 642 omitted.
-
#_reduce_646(val, _values, result) ⇒ Object
reduce 645 omitted.
- #_reduce_647(val, _values, result) ⇒ Object
-
#_reduce_65(val, _values, result) ⇒ Object
reduce 64 omitted.
- #_reduce_66(val, _values, result) ⇒ Object
- #_reduce_67(val, _values, result) ⇒ Object
- #_reduce_68(val, _values, result) ⇒ Object
- #_reduce_69(val, _values, result) ⇒ Object
- #_reduce_70(val, _values, result) ⇒ Object
- #_reduce_71(val, _values, result) ⇒ Object
- #_reduce_72(val, _values, result) ⇒ Object
- #_reduce_73(val, _values, result) ⇒ Object
- #_reduce_74(val, _values, result) ⇒ Object
- #_reduce_75(val, _values, result) ⇒ Object
- #_reduce_76(val, _values, result) ⇒ Object
- #_reduce_77(val, _values, result) ⇒ Object
- #_reduce_78(val, _values, result) ⇒ Object
- #_reduce_79(val, _values, result) ⇒ Object
-
#_reduce_81(val, _values, result) ⇒ Object
reduce 80 omitted.
-
#_reduce_83(val, _values, result) ⇒ Object
reduce 82 omitted.
- #_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_92(val, _values, result) ⇒ Object
- #_reduce_93(val, _values, result) ⇒ Object
-
#_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
7516 7517 7518 7519 7520 |
# File 'lib/ruby_parser26.rb', line 7516 def _reduce_1(val, _values, result) self.lexer.lex_state = EXPR_BEG result end |
#_reduce_10(val, _values, result) ⇒ Object
7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 |
# File 'lib/ruby_parser26.rb', line 7562 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
8178 8179 8180 8181 8182 |
# File 'lib/ruby_parser26.rb', line 8178 def _reduce_100(val, _values, result) result = self.assignable val[0] result end |
#_reduce_101(val, _values, result) ⇒ Object
8184 8185 8186 8187 8188 |
# File 'lib/ruby_parser26.rb', line 8184 def _reduce_101(val, _values, result) result = self.assignable val[0] result end |
#_reduce_102(val, _values, result) ⇒ Object
8190 8191 8192 8193 8194 |
# File 'lib/ruby_parser26.rb', line 8190 def _reduce_102(val, _values, result) result = self.aryset val[0], val[2] result end |
#_reduce_103(val, _values, result) ⇒ Object
8196 8197 8198 8199 8200 8201 8202 |
# File 'lib/ruby_parser26.rb', line 8196 def _reduce_103(val, _values, result) lhs, call_op, (id, _line) = val result = new_attrasgn lhs, id, call_op result end |
#_reduce_104(val, _values, result) ⇒ Object
8204 8205 8206 8207 8208 8209 |
# File 'lib/ruby_parser26.rb', line 8204 def _reduce_104(val, _values, result) recv, _, (id, _line) = val result = new_attrasgn recv, id result end |
#_reduce_105(val, _values, result) ⇒ Object
8211 8212 8213 8214 8215 8216 8217 |
# File 'lib/ruby_parser26.rb', line 8211 def _reduce_105(val, _values, result) lhs, call_op, (id, _line) = val result = new_attrasgn lhs, id, call_op result end |
#_reduce_106(val, _values, result) ⇒ Object
8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 |
# File 'lib/ruby_parser26.rb', line 8219 def _reduce_106(val, _values, result) if (self.in_def || self.in_single > 0) then debug 14 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_107(val, _values, result) ⇒ Object
8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 |
# File 'lib/ruby_parser26.rb', line 8233 def _reduce_107(val, _values, result) if (self.in_def || self.in_single > 0) then debug 15 yyerror "dynamic constant assignment" end _, (id, l) = val result = s(:const, nil, s(:colon3, id.to_sym).line(l)).line l result end |
#_reduce_108(val, _values, result) ⇒ Object
8246 8247 8248 8249 8250 8251 8252 |
# File 'lib/ruby_parser26.rb', line 8246 def _reduce_108(val, _values, result) ref, = val self.backref_assign_error ref result end |
#_reduce_109(val, _values, result) ⇒ Object
8254 8255 8256 8257 8258 8259 8260 |
# File 'lib/ruby_parser26.rb', line 8254 def _reduce_109(val, _values, result) var, = val result = self.assignable var result end |
#_reduce_11(val, _values, result) ⇒ Object
7574 7575 7576 7577 |
# File 'lib/ruby_parser26.rb', line 7574 def _reduce_11(val, _values, result) result = lexer.lineno result end |
#_reduce_110(val, _values, result) ⇒ Object
8262 8263 8264 8265 8266 8267 8268 8269 8270 |
# File 'lib/ruby_parser26.rb', line 8262 def _reduce_110(val, _values, result) var, = val result = self.assignable var debug 16 result end |
#_reduce_111(val, _values, result) ⇒ Object
8272 8273 8274 8275 8276 8277 8278 |
# File 'lib/ruby_parser26.rb', line 8272 def _reduce_111(val, _values, result) lhs, _, args, _ = val result = self.aryset lhs, args result end |
#_reduce_112(val, _values, result) ⇒ Object
8280 8281 8282 8283 8284 8285 8286 |
# File 'lib/ruby_parser26.rb', line 8280 def _reduce_112(val, _values, result) lhs, op, (id, _line) = val result = new_attrasgn lhs, id, op result end |
#_reduce_113(val, _values, result) ⇒ Object
8288 8289 8290 8291 8292 8293 8294 |
# File 'lib/ruby_parser26.rb', line 8288 def _reduce_113(val, _values, result) lhs, _, (id, _line) = val result = new_attrasgn lhs, id result end |
#_reduce_114(val, _values, result) ⇒ Object
8296 8297 8298 8299 8300 8301 8302 |
# File 'lib/ruby_parser26.rb', line 8296 def _reduce_114(val, _values, result) lhs, call_op, (id, _line) = val result = new_attrasgn lhs, id, call_op result end |
#_reduce_115(val, _values, result) ⇒ Object
8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 |
# File 'lib/ruby_parser26.rb', line 8304 def _reduce_115(val, _values, result) expr, _, (id, _line) = val if (self.in_def || self.in_single > 0) then debug 17 yyerror "dynamic constant assignment" end l = expr.line result = s(:const, s(:colon2, expr, id.to_sym).line(l)).line l result end |
#_reduce_116(val, _values, result) ⇒ Object
8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 |
# File 'lib/ruby_parser26.rb', line 8318 def _reduce_116(val, _values, result) _, (id, l) = val if (self.in_def || self.in_single > 0) then debug 18 yyerror "dynamic constant assignment" end result = s(:const, s(:colon3, id.to_sym).line(l)).line l result end |
#_reduce_117(val, _values, result) ⇒ Object
8331 8332 8333 8334 8335 |
# File 'lib/ruby_parser26.rb', line 8331 def _reduce_117(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_118(val, _values, result) ⇒ Object
8337 8338 8339 8340 8341 |
# File 'lib/ruby_parser26.rb', line 8337 def _reduce_118(val, _values, result) yyerror "class/module name must be CONSTANT" result end |
#_reduce_12(val, _values, result) ⇒ Object
7579 7580 7581 7582 7583 7584 |
# File 'lib/ruby_parser26.rb', line 7579 def _reduce_12(val, _values, result) _, line, stmt, _ = val result = new_iter s(:preexe).line(line), 0, stmt result end |
#_reduce_120(val, _values, result) ⇒ Object
reduce 119 omitted
8345 8346 8347 8348 8349 |
# File 'lib/ruby_parser26.rb', line 8345 def _reduce_120(val, _values, result) result = wrap :colon3, val[1] result end |
#_reduce_121(val, _values, result) ⇒ Object
8351 8352 8353 8354 8355 8356 |
# File 'lib/ruby_parser26.rb', line 8351 def _reduce_121(val, _values, result) (id, line), = val result = [id.to_sym, line] # TODO: sexp? result end |
#_reduce_122(val, _values, result) ⇒ Object
8358 8359 8360 8361 8362 8363 8364 8365 |
# File 'lib/ruby_parser26.rb', line 8358 def _reduce_122(val, _values, result) pval, _, (name, _line) = val result = s(:colon2, pval, name.to_sym) result.line pval.line result end |
#_reduce_126(val, _values, result) ⇒ Object
reduce 125 omitted
8373 8374 8375 8376 8377 |
# File 'lib/ruby_parser26.rb', line 8373 def _reduce_126(val, _values, result) lexer.lex_state = EXPR_END result end |
#_reduce_128(val, _values, result) ⇒ Object
reduce 127 omitted
8381 8382 8383 8384 8385 |
# File 'lib/ruby_parser26.rb', line 8381 def _reduce_128(val, _values, result) result = wrap :lit, val[0] result end |
#_reduce_13(val, _values, result) ⇒ Object
7586 7587 7588 7589 7590 7591 7592 7593 |
# File 'lib/ruby_parser26.rb', line 7586 def _reduce_13(val, _values, result) res = _values[-2] # TODO: move down to main match so I can just use val yyerror "else without rescue is useless" unless res result end |
#_reduce_130(val, _values, result) ⇒ Object
reduce 129 omitted
8389 8390 8391 8392 8393 |
# File 'lib/ruby_parser26.rb', line 8389 def _reduce_130(val, _values, result) result = new_undef val[0] result end |
#_reduce_131(val, _values, result) ⇒ Object
8395 8396 8397 8398 8399 |
# File 'lib/ruby_parser26.rb', line 8395 def _reduce_131(val, _values, result) lexer.lex_state = EXPR_FNAME result end |
#_reduce_132(val, _values, result) ⇒ Object
8401 8402 8403 8404 8405 |
# File 'lib/ruby_parser26.rb', line 8401 def _reduce_132(val, _values, result) result = new_undef val[0], val[3] result end |
#_reduce_14(val, _values, result) ⇒ Object
7595 7596 7597 7598 7599 7600 7601 |
# File 'lib/ruby_parser26.rb', line 7595 def _reduce_14(val, _values, result) body, resc, _, _, els, ens = val result = new_body [body, resc, els, ens] result end |
#_reduce_15(val, _values, result) ⇒ Object
7603 7604 7605 7606 7607 7608 7609 |
# File 'lib/ruby_parser26.rb', line 7603 def _reduce_15(val, _values, result) body, resc, ens = val result = new_body [body, resc, nil, ens] result end |
#_reduce_16(val, _values, result) ⇒ Object
7611 7612 7613 7614 7615 |
# File 'lib/ruby_parser26.rb', line 7611 def _reduce_16(val, _values, result) result = new_compstmt val result end |
#_reduce_19(val, _values, result) ⇒ Object
reduce 18 omitted
7621 7622 7623 7624 7625 |
# File 'lib/ruby_parser26.rb', line 7621 def _reduce_19(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_2(val, _values, result) ⇒ Object
7522 7523 7524 7525 7526 7527 7528 7529 |
# File 'lib/ruby_parser26.rb', line 7522 def _reduce_2(val, _values, result) result = new_compstmt val lexer.cond.pop # local_pop lexer.cmdarg.pop result end |
#_reduce_20(val, _values, result) ⇒ Object
7627 7628 7629 7630 7631 7632 |
# File 'lib/ruby_parser26.rb', line 7627 def _reduce_20(val, _values, result) result = val[1] debug 12 result end |
#_reduce_204(val, _values, result) ⇒ Object
reduce 203 omitted
8549 8550 8551 8552 8553 |
# File 'lib/ruby_parser26.rb', line 8549 def _reduce_204(val, _values, result) result = new_assign val[0], val[2] result end |
#_reduce_205(val, _values, result) ⇒ Object
8555 8556 8557 8558 8559 |
# File 'lib/ruby_parser26.rb', line 8555 def _reduce_205(val, _values, result) result = new_op_asgn val result end |
#_reduce_206(val, _values, result) ⇒ Object
8561 8562 8563 8564 8565 |
# File 'lib/ruby_parser26.rb', line 8561 def _reduce_206(val, _values, result) result = new_op_asgn1 val result end |
#_reduce_207(val, _values, result) ⇒ Object
8567 8568 8569 8570 8571 |
# File 'lib/ruby_parser26.rb', line 8567 def _reduce_207(val, _values, result) result = new_op_asgn2 val result end |
#_reduce_208(val, _values, result) ⇒ Object
8573 8574 8575 8576 8577 |
# File 'lib/ruby_parser26.rb', line 8573 def _reduce_208(val, _values, result) result = new_op_asgn2 val result end |
#_reduce_209(val, _values, result) ⇒ Object
8579 8580 8581 8582 8583 8584 8585 |
# File 'lib/ruby_parser26.rb', line 8579 def _reduce_209(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_210(val, _values, result) ⇒ Object
8587 8588 8589 8590 8591 8592 8593 8594 |
# File 'lib/ruby_parser26.rb', line 8587 def _reduce_210(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_211(val, _values, result) ⇒ Object
8596 8597 8598 8599 8600 8601 8602 8603 |
# File 'lib/ruby_parser26.rb', line 8596 def _reduce_211(val, _values, result) _, lhs, op, rhs = val lhs = wrap :colon3, lhs result = new_const_op_asgn [lhs, op, rhs] result end |
#_reduce_212(val, _values, result) ⇒ Object
8605 8606 8607 8608 8609 8610 8611 |
# File 'lib/ruby_parser26.rb', line 8605 def _reduce_212(val, _values, result) # TODO: lhs = var_field val[0] asgn = new_op_asgn val result = self.backref_assign_error asgn result end |
#_reduce_213(val, _values, result) ⇒ Object
8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 |
# File 'lib/ruby_parser26.rb', line 8613 def _reduce_213(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_214(val, _values, result) ⇒ Object
8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 |
# File 'lib/ruby_parser26.rb', line 8624 def _reduce_214(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_215(val, _values, result) ⇒ Object
8635 8636 8637 8638 8639 8640 8641 8642 |
# File 'lib/ruby_parser26.rb', line 8635 def _reduce_215(val, _values, result) v1, _ = val v2 = nil result = s(:dot2, v1, v2).line v1.line result end |
#_reduce_216(val, _values, result) ⇒ Object
8644 8645 8646 8647 8648 8649 8650 8651 |
# File 'lib/ruby_parser26.rb', line 8644 def _reduce_216(val, _values, result) v1, _ = val v2 = nil result = s(:dot3, v1, v2).line v1.line result end |
#_reduce_217(val, _values, result) ⇒ Object
8653 8654 8655 8656 8657 |
# File 'lib/ruby_parser26.rb', line 8653 def _reduce_217(val, _values, result) result = new_call val[0], :+, argl(val[2]) result end |
#_reduce_218(val, _values, result) ⇒ Object
8659 8660 8661 8662 8663 |
# File 'lib/ruby_parser26.rb', line 8659 def _reduce_218(val, _values, result) result = new_call val[0], :-, argl(val[2]) result end |
#_reduce_219(val, _values, result) ⇒ Object
8665 8666 8667 8668 8669 |
# File 'lib/ruby_parser26.rb', line 8665 def _reduce_219(val, _values, result) result = new_call val[0], :*, argl(val[2]) result end |
#_reduce_22(val, _values, result) ⇒ Object
reduce 21 omitted
7636 7637 7638 7639 7640 |
# File 'lib/ruby_parser26.rb', line 7636 def _reduce_22(val, _values, result) yyerror "BEGIN is permitted only at toplevel" result end |
#_reduce_220(val, _values, result) ⇒ Object
8671 8672 8673 8674 8675 |
# File 'lib/ruby_parser26.rb', line 8671 def _reduce_220(val, _values, result) result = new_call val[0], :"/", argl(val[2]) result end |
#_reduce_221(val, _values, result) ⇒ Object
8677 8678 8679 8680 8681 |
# File 'lib/ruby_parser26.rb', line 8677 def _reduce_221(val, _values, result) result = new_call val[0], :"%", argl(val[2]) result end |
#_reduce_222(val, _values, result) ⇒ Object
8683 8684 8685 8686 8687 |
# File 'lib/ruby_parser26.rb', line 8683 def _reduce_222(val, _values, result) result = new_call val[0], :**, argl(val[2]) result end |
#_reduce_223(val, _values, result) ⇒ Object
8689 8690 8691 8692 8693 8694 8695 8696 |
# File 'lib/ruby_parser26.rb', line 8689 def _reduce_223(val, _values, result) _, (num, line), _, arg = val lit = s(:lit, num).line line result = new_call(new_call(lit, :"**", argl(arg)), :"-@") result end |
#_reduce_224(val, _values, result) ⇒ Object
8698 8699 8700 8701 8702 |
# File 'lib/ruby_parser26.rb', line 8698 def _reduce_224(val, _values, result) result = new_call val[1], :"+@" result end |
#_reduce_225(val, _values, result) ⇒ Object
8704 8705 8706 8707 8708 |
# File 'lib/ruby_parser26.rb', line 8704 def _reduce_225(val, _values, result) result = new_call val[1], :"-@" result end |
#_reduce_226(val, _values, result) ⇒ Object
8710 8711 8712 8713 8714 |
# File 'lib/ruby_parser26.rb', line 8710 def _reduce_226(val, _values, result) result = new_call val[0], :"|", argl(val[2]) result end |
#_reduce_227(val, _values, result) ⇒ Object
8716 8717 8718 8719 8720 |
# File 'lib/ruby_parser26.rb', line 8716 def _reduce_227(val, _values, result) result = new_call val[0], :"^", argl(val[2]) result end |
#_reduce_228(val, _values, result) ⇒ Object
8722 8723 8724 8725 8726 |
# File 'lib/ruby_parser26.rb', line 8722 def _reduce_228(val, _values, result) result = new_call val[0], :"&", argl(val[2]) result end |
#_reduce_229(val, _values, result) ⇒ Object
8728 8729 8730 8731 8732 |
# File 'lib/ruby_parser26.rb', line 8728 def _reduce_229(val, _values, result) result = new_call val[0], :"<=>", argl(val[2]) result end |
#_reduce_23(val, _values, result) ⇒ Object
7642 7643 7644 7645 7646 |
# File 'lib/ruby_parser26.rb', line 7642 def _reduce_23(val, _values, result) result = val[2] # wtf? result end |
#_reduce_231(val, _values, result) ⇒ Object
reduce 230 omitted
8736 8737 8738 8739 8740 |
# File 'lib/ruby_parser26.rb', line 8736 def _reduce_231(val, _values, result) result = new_call val[0], :"==", argl(val[2]) result end |
#_reduce_232(val, _values, result) ⇒ Object
8742 8743 8744 8745 8746 |
# File 'lib/ruby_parser26.rb', line 8742 def _reduce_232(val, _values, result) result = new_call val[0], :"===", argl(val[2]) result end |
#_reduce_233(val, _values, result) ⇒ Object
8748 8749 8750 8751 8752 |
# File 'lib/ruby_parser26.rb', line 8748 def _reduce_233(val, _values, result) result = new_call val[0], :"!=", argl(val[2]) result end |
#_reduce_234(val, _values, result) ⇒ Object
8754 8755 8756 8757 8758 8759 |
# File 'lib/ruby_parser26.rb', line 8754 def _reduce_234(val, _values, result) lhs, _, rhs = val result = new_match lhs, rhs result end |
#_reduce_235(val, _values, result) ⇒ Object
8761 8762 8763 8764 8765 8766 |
# File 'lib/ruby_parser26.rb', line 8761 def _reduce_235(val, _values, result) lhs, _, rhs = val result = s(:not, new_match(lhs, rhs)).line lhs.line result end |
#_reduce_236(val, _values, result) ⇒ Object
8768 8769 8770 8771 8772 8773 8774 |
# File 'lib/ruby_parser26.rb', line 8768 def _reduce_236(val, _values, result) _, arg = val result = new_call arg, :"!" result.line arg.line result end |
#_reduce_237(val, _values, result) ⇒ Object
8776 8777 8778 8779 8780 |
# File 'lib/ruby_parser26.rb', line 8776 def _reduce_237(val, _values, result) result = new_call value_expr(val[1]), :"~" result end |
#_reduce_238(val, _values, result) ⇒ Object
8782 8783 8784 8785 8786 8787 8788 |
# File 'lib/ruby_parser26.rb', line 8782 def _reduce_238(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_239(val, _values, result) ⇒ Object
8790 8791 8792 8793 8794 8795 8796 |
# File 'lib/ruby_parser26.rb', line 8790 def _reduce_239(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_24(val, _values, result) ⇒ Object
7648 7649 7650 7651 7652 |
# File 'lib/ruby_parser26.rb', line 7648 def _reduce_24(val, _values, result) lexer.lex_state = EXPR_FNAME result end |
#_reduce_240(val, _values, result) ⇒ Object
8798 8799 8800 8801 8802 |
# File 'lib/ruby_parser26.rb', line 8798 def _reduce_240(val, _values, result) result = logical_op :and, val[0], val[2] result end |
#_reduce_241(val, _values, result) ⇒ Object
8804 8805 8806 8807 8808 |
# File 'lib/ruby_parser26.rb', line 8804 def _reduce_241(val, _values, result) result = logical_op :or, val[0], val[2] result end |
#_reduce_242(val, _values, result) ⇒ Object
8810 8811 8812 8813 8814 8815 |
# File 'lib/ruby_parser26.rb', line 8810 def _reduce_242(val, _values, result) (_, line), _, arg = val result = s(:defined, arg).line line result end |
#_reduce_243(val, _values, result) ⇒ Object
8817 8818 8819 8820 8821 8822 |
# File 'lib/ruby_parser26.rb', line 8817 def _reduce_243(val, _values, result) c, _, t, _, _, f = val result = s(:if, c, t, f).line c.line result end |
#_reduce_249(val, _values, result) ⇒ Object
reduce 248 omitted
8834 8835 8836 8837 8838 8839 |
# File 'lib/ruby_parser26.rb', line 8834 def _reduce_249(val, _values, result) lhs, (op, _), rhs = val result = new_call lhs, op.to_sym, argl(rhs) result end |
#_reduce_25(val, _values, result) ⇒ Object
7654 7655 7656 7657 7658 7659 |
# File 'lib/ruby_parser26.rb', line 7654 def _reduce_25(val, _values, result) (_, line), lhs, _, rhs = val result = s(:alias, lhs, rhs).line(line).line line result end |
#_reduce_250(val, _values, result) ⇒ Object
8841 8842 8843 8844 8845 8846 8847 |
# File 'lib/ruby_parser26.rb', line 8841 def _reduce_250(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_251(val, _values, result) ⇒ Object
8849 8850 8851 8852 8853 |
# File 'lib/ruby_parser26.rb', line 8849 def _reduce_251(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_253(val, _values, result) ⇒ Object
reduce 252 omitted
8857 8858 8859 8860 8861 |
# File 'lib/ruby_parser26.rb', line 8857 def _reduce_253(val, _values, result) result = args [val[0]] result end |
#_reduce_254(val, _values, result) ⇒ Object
8863 8864 8865 8866 8867 |
# File 'lib/ruby_parser26.rb', line 8863 def _reduce_254(val, _values, result) result = args [val[0], array_to_hash(val[2])] result end |
#_reduce_255(val, _values, result) ⇒ Object
8869 8870 8871 8872 8873 |
# File 'lib/ruby_parser26.rb', line 8869 def _reduce_255(val, _values, result) result = args [array_to_hash(val[0])] result end |
#_reduce_257(val, _values, result) ⇒ Object
reduce 256 omitted
8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 |
# File 'lib/ruby_parser26.rb', line 8877 def _reduce_257(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_258(val, _values, result) ⇒ Object
8888 8889 8890 8891 8892 8893 8894 8895 |
# File 'lib/ruby_parser26.rb', line 8888 def _reduce_258(val, _values, result) _, args, (_, line_max) = val result = args result.line_max = line_max if args result end |
#_reduce_26(val, _values, result) ⇒ Object
7661 7662 7663 7664 7665 7666 |
# File 'lib/ruby_parser26.rb', line 7661 def _reduce_26(val, _values, result) (_, line), (lhs, _), (rhs, _) = val result = s(:valias, lhs.to_sym, rhs.to_sym).line line result end |
#_reduce_263(val, _values, result) ⇒ Object
reduce 262 omitted
8905 8906 8907 8908 8909 |
# File 'lib/ruby_parser26.rb', line 8905 def _reduce_263(val, _values, result) result = args val result end |
#_reduce_264(val, _values, result) ⇒ Object
8911 8912 8913 8914 8915 |
# File 'lib/ruby_parser26.rb', line 8911 def _reduce_264(val, _values, result) result = args [val[0], array_to_hash(val[2])] result end |
#_reduce_265(val, _values, result) ⇒ Object
8917 8918 8919 8920 8921 |
# File 'lib/ruby_parser26.rb', line 8917 def _reduce_265(val, _values, result) result = args [array_to_hash(val[0])] result end |
#_reduce_266(val, _values, result) ⇒ Object
8923 8924 8925 8926 8927 8928 |
# File 'lib/ruby_parser26.rb', line 8923 def _reduce_266(val, _values, result) warning "parenthesize argument(s) for future version" result = call_args val result end |
#_reduce_267(val, _values, result) ⇒ Object
8930 8931 8932 8933 8934 |
# File 'lib/ruby_parser26.rb', line 8930 def _reduce_267(val, _values, result) result = call_args val result end |
#_reduce_268(val, _values, result) ⇒ Object
8936 8937 8938 8939 8940 |
# File 'lib/ruby_parser26.rb', line 8936 def _reduce_268(val, _values, result) result = call_args [array_to_hash(val[0]), val[1]] result end |
#_reduce_269(val, _values, result) ⇒ Object
8942 8943 8944 8945 8946 |
# File 'lib/ruby_parser26.rb', line 8942 def _reduce_269(val, _values, result) result = call_args [val[0], array_to_hash(val[2]), val[3]] result end |
#_reduce_27(val, _values, result) ⇒ Object
7668 7669 7670 7671 7672 7673 |
# File 'lib/ruby_parser26.rb', line 7668 def _reduce_27(val, _values, result) (_, line), (lhs, _), (rhs, _) = val result = s(:valias, lhs.to_sym, :"$#{rhs}").line line result end |
#_reduce_270(val, _values, result) ⇒ Object
8948 8949 8950 8951 8952 |
# File 'lib/ruby_parser26.rb', line 8948 def _reduce_270(val, _values, result) result = call_args val result end |
#_reduce_271(val, _values, result) ⇒ Object
8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 |
# File 'lib/ruby_parser26.rb', line 8954 def _reduce_271(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_272(val, _values, result) ⇒ Object
8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 |
# File 'lib/ruby_parser26.rb', line 8974 def _reduce_272(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_273(val, _values, result) ⇒ Object
8994 8995 8996 8997 8998 8999 |
# File 'lib/ruby_parser26.rb', line 8994 def _reduce_273(val, _values, result) _, arg = val result = s(:block_pass, arg).line arg.line result end |
#_reduce_274(val, _values, result) ⇒ Object
9001 9002 9003 9004 9005 |
# File 'lib/ruby_parser26.rb', line 9001 def _reduce_274(val, _values, result) result = val[1] result end |
#_reduce_276(val, _values, result) ⇒ Object
reduce 275 omitted
9009 9010 9011 9012 9013 9014 9015 9016 |
# File 'lib/ruby_parser26.rb', line 9009 def _reduce_276(val, _values, result) arg, = val lineno = arg.line || lexer.lineno # HACK result = s(:array, arg).line lineno result end |
#_reduce_277(val, _values, result) ⇒ Object
9018 9019 9020 9021 9022 9023 |
# File 'lib/ruby_parser26.rb', line 9018 def _reduce_277(val, _values, result) _, arg = val result = s(:array, s(:splat, arg).line(arg.line)).line arg.line result end |
#_reduce_278(val, _values, result) ⇒ Object
9025 9026 9027 9028 9029 9030 |
# File 'lib/ruby_parser26.rb', line 9025 def _reduce_278(val, _values, result) args, _, id = val result = self.list_append args, id result end |
#_reduce_279(val, _values, result) ⇒ Object
9032 9033 9034 9035 9036 9037 9038 9039 |
# File 'lib/ruby_parser26.rb', line 9032 def _reduce_279(val, _values, result) # TODO: the line number from tSTAR has been dropped args, _, _, id = val line = lexer.lineno result = self.list_append args, s(:splat, id).line(line) result end |
#_reduce_28(val, _values, result) ⇒ Object
7675 7676 7677 7678 7679 |
# File 'lib/ruby_parser26.rb', line 7675 def _reduce_28(val, _values, result) yyerror "can't make alias for the number variables" result end |
#_reduce_280(val, _values, result) ⇒ Object
9041 9042 9043 9044 9045 |
# File 'lib/ruby_parser26.rb', line 9041 def _reduce_280(val, _values, result) result = new_masgn_arg val[0] result end |
#_reduce_281(val, _values, result) ⇒ Object
9047 9048 9049 9050 9051 |
# File 'lib/ruby_parser26.rb', line 9047 def _reduce_281(val, _values, result) result = new_masgn_arg val[0], :wrap result end |
#_reduce_282(val, _values, result) ⇒ Object
9053 9054 9055 9056 9057 |
# File 'lib/ruby_parser26.rb', line 9053 def _reduce_282(val, _values, result) result = val[0] << val[2] result end |
#_reduce_283(val, _values, result) ⇒ Object
9059 9060 9061 9062 9063 9064 9065 |
# File 'lib/ruby_parser26.rb', line 9059 def _reduce_283(val, _values, result) # TODO: make all tXXXX terminals include lexer.lineno arg, _, _, splat = val result = self.arg_concat arg, splat result end |
#_reduce_284(val, _values, result) ⇒ Object
9067 9068 9069 9070 9071 9072 |
# File 'lib/ruby_parser26.rb', line 9067 def _reduce_284(val, _values, result) _, arg = val result = s(:splat, arg).line arg.line result end |
#_reduce_29(val, _values, result) ⇒ Object
7681 7682 7683 7684 7685 |
# File 'lib/ruby_parser26.rb', line 7681 def _reduce_29(val, _values, result) result = val[1] result end |
#_reduce_295(val, _values, result) ⇒ Object
reduce 294 omitted
9094 9095 9096 9097 9098 9099 9100 |
# File 'lib/ruby_parser26.rb', line 9094 def _reduce_295(val, _values, result) (msg, line), = val result = new_call nil, msg.to_sym result.line line result end |
#_reduce_296(val, _values, result) ⇒ Object
9102 9103 9104 9105 9106 |
# File 'lib/ruby_parser26.rb', line 9102 def _reduce_296(val, _values, result) lexer.cmdarg.push false result end |
#_reduce_297(val, _values, result) ⇒ Object
9108 9109 9110 9111 9112 9113 |
# File 'lib/ruby_parser26.rb', line 9108 def _reduce_297(val, _values, result) lexer.cmdarg.pop result = new_begin val result end |
#_reduce_298(val, _values, result) ⇒ Object
9115 9116 9117 9118 9119 9120 |
# File 'lib/ruby_parser26.rb', line 9115 def _reduce_298(val, _values, result) lexer.lex_state = EXPR_ENDARG result = lexer.lineno result end |
#_reduce_299(val, _values, result) ⇒ Object
9122 9123 9124 9125 9126 9127 |
# File 'lib/ruby_parser26.rb', line 9122 def _reduce_299(val, _values, result) _, line, _ = val result = s(:begin).line line result end |
#_reduce_3(val, _values, result) ⇒ Object
7531 7532 7533 7534 7535 7536 |
# File 'lib/ruby_parser26.rb', line 7531 def _reduce_3(val, _values, result) stmt, _ = val result = stmt result end |
#_reduce_30(val, _values, result) ⇒ Object
7687 7688 7689 7690 7691 7692 |
# File 'lib/ruby_parser26.rb', line 7687 def _reduce_30(val, _values, result) t, _, c = val result = new_if c, t, nil result end |
#_reduce_300(val, _values, result) ⇒ Object
9129 9130 9131 9132 9133 |
# File 'lib/ruby_parser26.rb', line 9129 def _reduce_300(val, _values, result) lexer.lex_state = EXPR_ENDARG result end |
#_reduce_301(val, _values, result) ⇒ Object
9135 9136 9137 9138 9139 9140 9141 |
# File 'lib/ruby_parser26.rb', line 9135 def _reduce_301(val, _values, result) _, stmt, _, _, = val # warning "(...) interpreted as grouped expression" result = stmt result end |
#_reduce_302(val, _values, result) ⇒ Object
9143 9144 9145 9146 9147 9148 9149 9150 |
# File 'lib/ruby_parser26.rb', line 9143 def _reduce_302(val, _values, result) _, stmt, _ = val result = stmt result ||= s(:nil).line lexer.lineno result.paren = true result end |
#_reduce_303(val, _values, result) ⇒ Object
9152 9153 9154 9155 9156 9157 9158 |
# File 'lib/ruby_parser26.rb', line 9152 def _reduce_303(val, _values, result) expr, _, (id, _line) = val result = s(:colon2, expr, id.to_sym).line expr.line result end |
#_reduce_304(val, _values, result) ⇒ Object
9160 9161 9162 9163 9164 |
# File 'lib/ruby_parser26.rb', line 9160 def _reduce_304(val, _values, result) result = wrap :colon3, val[1] result end |
#_reduce_305(val, _values, result) ⇒ Object
9166 9167 9168 9169 |
# File 'lib/ruby_parser26.rb', line 9166 def _reduce_305(val, _values, result) result = lexer.lineno result end |
#_reduce_306(val, _values, result) ⇒ Object
9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 |
# File 'lib/ruby_parser26.rb', line 9171 def _reduce_306(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_307(val, _values, result) ⇒ Object
9182 9183 9184 9185 9186 |
# File 'lib/ruby_parser26.rb', line 9182 def _reduce_307(val, _values, result) result = self.lexer.lineno result end |
#_reduce_308(val, _values, result) ⇒ Object
9188 9189 9190 9191 9192 |
# File 'lib/ruby_parser26.rb', line 9188 def _reduce_308(val, _values, result) result = new_hash val result end |
#_reduce_309(val, _values, result) ⇒ Object
9194 9195 9196 9197 9198 9199 |
# File 'lib/ruby_parser26.rb', line 9194 def _reduce_309(val, _values, result) (_, line), = val result = s(:return).line line result end |
#_reduce_31(val, _values, result) ⇒ Object
7694 7695 7696 7697 7698 7699 |
# File 'lib/ruby_parser26.rb', line 7694 def _reduce_31(val, _values, result) f, _, c = val result = new_if c, nil, f result end |
#_reduce_310(val, _values, result) ⇒ Object
9201 9202 9203 9204 9205 9206 9207 |
# File 'lib/ruby_parser26.rb', line 9201 def _reduce_310(val, _values, result) (_, line), _, args, _ = val result = new_yield(args).line line result end |
#_reduce_311(val, _values, result) ⇒ Object
9209 9210 9211 9212 9213 9214 9215 |
# File 'lib/ruby_parser26.rb', line 9209 def _reduce_311(val, _values, result) (_, line), _, _ = val result = new_yield.line line result end |
#_reduce_312(val, _values, result) ⇒ Object
9217 9218 9219 9220 9221 9222 9223 |
# File 'lib/ruby_parser26.rb', line 9217 def _reduce_312(val, _values, result) (_, line), = val result = new_yield.line line result end |
#_reduce_313(val, _values, result) ⇒ Object
9225 9226 9227 9228 9229 9230 9231 |
# File 'lib/ruby_parser26.rb', line 9225 def _reduce_313(val, _values, result) (_, line), _, _, arg, _ = val result = s(:defined, arg).line line result end |
#_reduce_314(val, _values, result) ⇒ Object
9233 9234 9235 9236 9237 9238 |
# File 'lib/ruby_parser26.rb', line 9233 def _reduce_314(val, _values, result) _, _, lhs, _ = val result = new_call lhs, :"!" result end |
#_reduce_315(val, _values, result) ⇒ Object
9240 9241 9242 9243 9244 |
# File 'lib/ruby_parser26.rb', line 9240 def _reduce_315(val, _values, result) debug 20 result end |
#_reduce_316(val, _values, result) ⇒ Object
9246 9247 9248 9249 9250 9251 9252 9253 9254 |
# File 'lib/ruby_parser26.rb', line 9246 def _reduce_316(val, _values, result) call, iter = val iter.insert 1, call result = iter # FIX: probably not: call.line = iter.line result end |
#_reduce_318(val, _values, result) ⇒ Object
reduce 317 omitted
9258 9259 9260 9261 9262 9263 9264 9265 |
# File 'lib/ruby_parser26.rb', line 9258 def _reduce_318(val, _values, result) call, iter = val[0], val[1] block_dup_check call, iter iter.insert 1, call # FIX result = iter result end |
#_reduce_319(val, _values, result) ⇒ Object
9267 9268 9269 9270 9271 9272 |
# File 'lib/ruby_parser26.rb', line 9267 def _reduce_319(val, _values, result) expr, = val result = expr result end |
#_reduce_32(val, _values, result) ⇒ Object
7701 7702 7703 7704 7705 7706 |
# File 'lib/ruby_parser26.rb', line 7701 def _reduce_32(val, _values, result) e, _, c = val result = new_while e, c, true result end |
#_reduce_320(val, _values, result) ⇒ Object
9274 9275 9276 9277 9278 9279 |
# File 'lib/ruby_parser26.rb', line 9274 def _reduce_320(val, _values, result) _, c, _, t, f, _ = val result = new_if c, t, f result end |
#_reduce_321(val, _values, result) ⇒ Object
9281 9282 9283 9284 9285 9286 |
# File 'lib/ruby_parser26.rb', line 9281 def _reduce_321(val, _values, result) _, c, _, t, f, _ = val result = new_if c, f, t result end |
#_reduce_322(val, _values, result) ⇒ Object
9288 9289 9290 9291 9292 9293 |
# File 'lib/ruby_parser26.rb', line 9288 def _reduce_322(val, _values, result) _, cond, body, _ = val result = new_while body, cond, true result end |
#_reduce_323(val, _values, result) ⇒ Object
9295 9296 9297 9298 9299 9300 |
# File 'lib/ruby_parser26.rb', line 9295 def _reduce_323(val, _values, result) _, cond, body, _ = val result = new_until body, cond, true result end |
#_reduce_324(val, _values, result) ⇒ Object
9302 9303 9304 9305 9306 9307 |
# File 'lib/ruby_parser26.rb', line 9302 def _reduce_324(val, _values, result) (_, line), expr, _, body, _ = val result = new_case expr, body, line result end |
#_reduce_325(val, _values, result) ⇒ Object
9309 9310 9311 9312 9313 9314 |
# File 'lib/ruby_parser26.rb', line 9309 def _reduce_325(val, _values, result) (_, line), _, body, _ = val result = new_case nil, body, line result end |
#_reduce_326(val, _values, result) ⇒ Object
9316 9317 9318 9319 9320 9321 |
# File 'lib/ruby_parser26.rb', line 9316 def _reduce_326(val, _values, result) _, var, _, iter, body, _ = val result = new_for iter, var, body result end |
#_reduce_327(val, _values, result) ⇒ Object
9323 9324 9325 9326 9327 9328 9329 9330 |
# File 'lib/ruby_parser26.rb', line 9323 def _reduce_327(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_328(val, _values, result) ⇒ Object
9332 9333 9334 9335 9336 9337 |
# File 'lib/ruby_parser26.rb', line 9332 def _reduce_328(val, _values, result) result = new_class val self.env.unextend result end |
#_reduce_329(val, _values, result) ⇒ Object
9339 9340 9341 9342 9343 9344 |
# File 'lib/ruby_parser26.rb', line 9339 def _reduce_329(val, _values, result) result = self.in_def self.in_def = false result end |
#_reduce_33(val, _values, result) ⇒ Object
7708 7709 7710 7711 7712 7713 |
# File 'lib/ruby_parser26.rb', line 7708 def _reduce_33(val, _values, result) e, _, c = val result = new_until e, c, true result end |
#_reduce_330(val, _values, result) ⇒ Object
9346 9347 9348 9349 9350 9351 9352 |
# File 'lib/ruby_parser26.rb', line 9346 def _reduce_330(val, _values, result) result = self.in_single self.in_single = 0 self.env.extend result end |
#_reduce_331(val, _values, result) ⇒ Object
9354 9355 9356 9357 9358 9359 |
# File 'lib/ruby_parser26.rb', line 9354 def _reduce_331(val, _values, result) result = new_sclass val self.env.unextend result end |
#_reduce_332(val, _values, result) ⇒ Object
9361 9362 9363 9364 9365 9366 9367 9368 |
# File 'lib/ruby_parser26.rb', line 9361 def _reduce_332(val, _values, result) yyerror "module definition in method body" if self.in_def or self.in_single > 0 self.env.extend result end |
#_reduce_333(val, _values, result) ⇒ Object
9370 9371 9372 9373 9374 9375 |
# File 'lib/ruby_parser26.rb', line 9370 def _reduce_333(val, _values, result) result = new_module val self.env.unextend result end |
#_reduce_334(val, _values, result) ⇒ Object
9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 |
# File 'lib/ruby_parser26.rb', line 9377 def _reduce_334(val, _values, result) result = self.in_def self.in_def = true # group = local_push self.env.extend lexer.cmdarg.push false lexer.cond.push false result end |
#_reduce_335(val, _values, result) ⇒ Object
9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 |
# File 'lib/ruby_parser26.rb', line 9388 def _reduce_335(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_336(val, _values, result) ⇒ Object
9399 9400 9401 9402 9403 |
# File 'lib/ruby_parser26.rb', line 9399 def _reduce_336(val, _values, result) lexer.lex_state = EXPR_FNAME result end |
#_reduce_337(val, _values, result) ⇒ Object
9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 |
# File 'lib/ruby_parser26.rb', line 9405 def _reduce_337(val, _values, result) result = self.in_def self.in_single += 1 # TODO: remove? self.in_def = true # local_push self.env.extend lexer.cmdarg.push false lexer.cond.push false lexer.lex_state = EXPR_ENDFN|EXPR_LABEL result end |
#_reduce_338(val, _values, result) ⇒ Object
9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 |
# File 'lib/ruby_parser26.rb', line 9420 def _reduce_338(val, _values, result) # [kdef, recv, _, _, (name, line), in_def, args, body, kend] # => # [kdef, recv, (name, line), in_def, args, body, kend] val.delete_at 3 val.delete_at 2 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_339(val, _values, result) ⇒ Object
9442 9443 9444 9445 9446 9447 |
# File 'lib/ruby_parser26.rb', line 9442 def _reduce_339(val, _values, result) (_, line), = val result = s(:break).line line result end |
#_reduce_34(val, _values, result) ⇒ Object
7715 7716 7717 7718 7719 7720 7721 7722 |
# File 'lib/ruby_parser26.rb', line 7715 def _reduce_34(val, _values, result) body, _, resbody = val resbody = new_resbody s(:array).line(resbody.line), resbody result = new_rescue body, resbody result end |
#_reduce_340(val, _values, result) ⇒ Object
9449 9450 9451 9452 9453 9454 |
# File 'lib/ruby_parser26.rb', line 9449 def _reduce_340(val, _values, result) (_, line), = val result = s(:next).line line result end |
#_reduce_341(val, _values, result) ⇒ Object
9456 9457 9458 9459 9460 9461 |
# File 'lib/ruby_parser26.rb', line 9456 def _reduce_341(val, _values, result) (_, line), = val result = s(:redo).line line result end |
#_reduce_342(val, _values, result) ⇒ Object
9463 9464 9465 9466 9467 9468 |
# File 'lib/ruby_parser26.rb', line 9463 def _reduce_342(val, _values, result) (_, line), = val result = s(:retry).line line result end |
#_reduce_343(val, _values, result) ⇒ Object
9470 9471 9472 9473 9474 |
# File 'lib/ruby_parser26.rb', line 9470 def _reduce_343(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_35(val, _values, result) ⇒ Object
7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 |
# File 'lib/ruby_parser26.rb', line 7724 def _reduce_35(val, _values, result) (_, line), _, stmt, _ = val if (self.in_def || self.in_single > 0) then debug 13 yyerror "END in method; use at_exit" end result = new_iter s(:postexe).line(line), 0, stmt result end |
#_reduce_351(val, _values, result) ⇒ Object
reduce 350 omitted
9490 9491 9492 9493 9494 |
# File 'lib/ruby_parser26.rb', line 9490 def _reduce_351(val, _values, result) result << self.lexer.comment result end |
#_reduce_352(val, _values, result) ⇒ Object
9496 9497 9498 9499 9500 |
# File 'lib/ruby_parser26.rb', line 9496 def _reduce_352(val, _values, result) result << self.lexer.comment result end |
#_reduce_353(val, _values, result) ⇒ Object
9502 9503 9504 9505 9506 |
# File 'lib/ruby_parser26.rb', line 9502 def _reduce_353(val, _values, result) result << self.lexer.comment result end |
#_reduce_369(val, _values, result) ⇒ Object
reduce 368 omitted
9538 9539 9540 9541 9542 9543 9544 |
# File 'lib/ruby_parser26.rb', line 9538 def _reduce_369(val, _values, result) (_, line), c, _, t, rest = val result = s(:if, c, t, rest).line line result end |
#_reduce_37(val, _values, result) ⇒ Object
reduce 36 omitted
7739 7740 7741 7742 7743 |
# File 'lib/ruby_parser26.rb', line 7739 def _reduce_37(val, _values, result) result = new_masgn val[0], val[2], :wrap result end |
#_reduce_371(val, _values, result) ⇒ Object
reduce 370 omitted
9548 9549 9550 9551 9552 |
# File 'lib/ruby_parser26.rb', line 9548 def _reduce_371(val, _values, result) result = val[1] result end |
#_reduce_373(val, _values, result) ⇒ Object
reduce 372 omitted
9556 9557 9558 9559 9560 |
# File 'lib/ruby_parser26.rb', line 9556 def _reduce_373(val, _values, result) val[0].delete_at 1 if val[0][1].nil? # HACK result end |
#_reduce_375(val, _values, result) ⇒ Object
reduce 374 omitted
9564 9565 9566 9567 9568 |
# File 'lib/ruby_parser26.rb', line 9564 def _reduce_375(val, _values, result) result = val[1] result end |
#_reduce_376(val, _values, result) ⇒ Object
9570 9571 9572 9573 9574 9575 9576 |
# File 'lib/ruby_parser26.rb', line 9570 def _reduce_376(val, _values, result) sym, = val result = s(:array, sym).line lexer.lineno result end |
#_reduce_377(val, _values, result) ⇒ Object
9578 9579 9580 9581 9582 |
# File 'lib/ruby_parser26.rb', line 9578 def _reduce_377(val, _values, result) result = list_append val[0], val[2] result end |
#_reduce_378(val, _values, result) ⇒ Object
9584 9585 9586 9587 9588 9589 9590 |
# File 'lib/ruby_parser26.rb', line 9584 def _reduce_378(val, _values, result) args, = val result = block_var args result end |
#_reduce_379(val, _values, result) ⇒ Object
9592 9593 9594 9595 9596 9597 9598 |
# File 'lib/ruby_parser26.rb', line 9592 def _reduce_379(val, _values, result) args, _, rest = val result = block_var args, rest result end |
#_reduce_38(val, _values, result) ⇒ Object
7745 7746 7747 7748 7749 7750 7751 |
# File 'lib/ruby_parser26.rb', line 7745 def _reduce_38(val, _values, result) lhs, _, rhs = val result = new_assign lhs, s(:svalue, rhs).line(rhs.line) result end |
#_reduce_380(val, _values, result) ⇒ Object
9600 9601 9602 9603 9604 9605 9606 |
# File 'lib/ruby_parser26.rb', line 9600 def _reduce_380(val, _values, result) lhs, _, splat, _, rhs = val result = block_var lhs, splat, rhs result end |
#_reduce_381(val, _values, result) ⇒ Object
9608 9609 9610 9611 9612 9613 9614 |
# File 'lib/ruby_parser26.rb', line 9608 def _reduce_381(val, _values, result) rest, = val result = block_var rest result end |
#_reduce_382(val, _values, result) ⇒ Object
9616 9617 9618 9619 9620 9621 9622 |
# File 'lib/ruby_parser26.rb', line 9616 def _reduce_382(val, _values, result) splat, _, rest = val result = block_var splat, rest result end |
#_reduce_383(val, _values, result) ⇒ Object
9624 9625 9626 9627 9628 9629 9630 9631 |
# File 'lib/ruby_parser26.rb', line 9624 def _reduce_383(val, _values, result) _, (id, line) = val result = args ["*#{id}".to_sym] result.line line result end |
#_reduce_384(val, _values, result) ⇒ Object
9633 9634 9635 9636 9637 9638 |
# File 'lib/ruby_parser26.rb', line 9633 def _reduce_384(val, _values, result) result = args [:*] result.line lexer.lineno # FIX: tSTAR -> line result end |
#_reduce_385(val, _values, result) ⇒ Object
9640 9641 9642 9643 9644 |
# File 'lib/ruby_parser26.rb', line 9640 def _reduce_385(val, _values, result) result = call_args val result end |
#_reduce_386(val, _values, result) ⇒ Object
9646 9647 9648 9649 9650 |
# File 'lib/ruby_parser26.rb', line 9646 def _reduce_386(val, _values, result) result = call_args val result end |
#_reduce_387(val, _values, result) ⇒ Object
9652 9653 9654 9655 9656 |
# File 'lib/ruby_parser26.rb', line 9652 def _reduce_387(val, _values, result) result = call_args val result end |
#_reduce_388(val, _values, result) ⇒ Object
9658 9659 9660 9661 9662 9663 9664 |
# File 'lib/ruby_parser26.rb', line 9658 def _reduce_388(val, _values, result) (id, line), = val result = call_args [id] result.line line result end |
#_reduce_389(val, _values, result) ⇒ Object
9666 9667 9668 9669 9670 |
# File 'lib/ruby_parser26.rb', line 9666 def _reduce_389(val, _values, result) result = args val result end |
#_reduce_39(val, _values, result) ⇒ Object
7753 7754 7755 7756 7757 |
# File 'lib/ruby_parser26.rb', line 7753 def _reduce_39(val, _values, result) result = new_masgn val[0], val[2] result end |
#_reduce_391(val, _values, result) ⇒ Object
reduce 390 omitted
9674 9675 9676 9677 9678 |
# File 'lib/ruby_parser26.rb', line 9674 def _reduce_391(val, _values, result) result = args val result end |
#_reduce_392(val, _values, result) ⇒ Object
9680 9681 9682 9683 9684 |
# File 'lib/ruby_parser26.rb', line 9680 def _reduce_392(val, _values, result) result = args val result end |
#_reduce_393(val, _values, result) ⇒ Object
9686 9687 9688 9689 9690 |
# File 'lib/ruby_parser26.rb', line 9686 def _reduce_393(val, _values, result) result = args val result end |
#_reduce_394(val, _values, result) ⇒ Object
9692 9693 9694 9695 9696 |
# File 'lib/ruby_parser26.rb', line 9692 def _reduce_394(val, _values, result) result = args val result end |
#_reduce_395(val, _values, result) ⇒ Object
9698 9699 9700 9701 9702 |
# File 'lib/ruby_parser26.rb', line 9698 def _reduce_395(val, _values, result) result = args val result end |
#_reduce_396(val, _values, result) ⇒ Object
9704 9705 9706 9707 9708 |
# File 'lib/ruby_parser26.rb', line 9704 def _reduce_396(val, _values, result) result = args(val) << nil result end |
#_reduce_397(val, _values, result) ⇒ Object
9710 9711 9712 9713 9714 |
# File 'lib/ruby_parser26.rb', line 9710 def _reduce_397(val, _values, result) result = args val result end |
#_reduce_398(val, _values, result) ⇒ Object
9716 9717 9718 9719 9720 |
# File 'lib/ruby_parser26.rb', line 9716 def _reduce_398(val, _values, result) result = args val result end |
#_reduce_399(val, _values, result) ⇒ Object
9722 9723 9724 9725 9726 |
# File 'lib/ruby_parser26.rb', line 9722 def _reduce_399(val, _values, result) result = args val result end |
#_reduce_400(val, _values, result) ⇒ Object
9728 9729 9730 9731 9732 |
# File 'lib/ruby_parser26.rb', line 9728 def _reduce_400(val, _values, result) result = args val result end |
#_reduce_401(val, _values, result) ⇒ Object
9734 9735 9736 9737 9738 |
# File 'lib/ruby_parser26.rb', line 9734 def _reduce_401(val, _values, result) result = args val result end |
#_reduce_402(val, _values, result) ⇒ Object
9740 9741 9742 9743 9744 |
# File 'lib/ruby_parser26.rb', line 9740 def _reduce_402(val, _values, result) result = args val result end |
#_reduce_403(val, _values, result) ⇒ Object
9746 9747 9748 9749 9750 |
# File 'lib/ruby_parser26.rb', line 9746 def _reduce_403(val, _values, result) result = args val result end |
#_reduce_404(val, _values, result) ⇒ Object
9752 9753 9754 9755 9756 |
# File 'lib/ruby_parser26.rb', line 9752 def _reduce_404(val, _values, result) result = args val result end |
#_reduce_405(val, _values, result) ⇒ Object
9758 9759 9760 9761 9762 |
# File 'lib/ruby_parser26.rb', line 9758 def _reduce_405(val, _values, result) result = args val result end |
#_reduce_406(val, _values, result) ⇒ Object
9764 9765 9766 9767 |
# File 'lib/ruby_parser26.rb', line 9764 def _reduce_406(val, _values, result) result = 0 result end |
#_reduce_407(val, _values, result) ⇒ Object
9769 9770 9771 9772 9773 |
# File 'lib/ruby_parser26.rb', line 9769 def _reduce_407(val, _values, result) self.lexer.command_start = true result end |
#_reduce_408(val, _values, result) ⇒ Object
9775 9776 9777 9778 9779 9780 |
# File 'lib/ruby_parser26.rb', line 9775 def _reduce_408(val, _values, result) # TODO: current_arg = 0 result = args val result end |
#_reduce_409(val, _values, result) ⇒ Object
9782 9783 9784 9785 9786 |
# File 'lib/ruby_parser26.rb', line 9782 def _reduce_409(val, _values, result) result = s(:args).line lexer.lineno result end |
#_reduce_41(val, _values, result) ⇒ Object
reduce 40 omitted
7761 7762 7763 7764 7765 |
# File 'lib/ruby_parser26.rb', line 7761 def _reduce_41(val, _values, result) result = new_assign val[0], val[2] result end |
#_reduce_410(val, _values, result) ⇒ Object
9788 9789 9790 9791 9792 9793 |
# File 'lib/ruby_parser26.rb', line 9788 def _reduce_410(val, _values, result) # TODO: current_arg = 0 result = args val result end |
#_reduce_412(val, _values, result) ⇒ Object
reduce 411 omitted
9797 9798 9799 9800 9801 |
# File 'lib/ruby_parser26.rb', line 9797 def _reduce_412(val, _values, result) result = args val result end |
#_reduce_413(val, _values, result) ⇒ Object
9803 9804 9805 9806 9807 |
# File 'lib/ruby_parser26.rb', line 9803 def _reduce_413(val, _values, result) result = args val result end |
#_reduce_414(val, _values, result) ⇒ Object
9809 9810 9811 9812 9813 |
# File 'lib/ruby_parser26.rb', line 9809 def _reduce_414(val, _values, result) result = args val result end |
#_reduce_415(val, _values, result) ⇒ Object
9815 9816 9817 9818 9819 |
# File 'lib/ruby_parser26.rb', line 9815 def _reduce_415(val, _values, result) result = wrap :shadow, val[0] result end |
#_reduce_417(val, _values, result) ⇒ Object
reduce 416 omitted
9823 9824 9825 9826 9827 9828 9829 9830 |
# File 'lib/ruby_parser26.rb', line 9823 def _reduce_417(val, _values, result) self.env.extend :dynamic result = [lexer.lineno, lexer.lpar_beg] lexer.paren_nest += 1 lexer.lpar_beg = lexer.paren_nest result end |
#_reduce_418(val, _values, result) ⇒ Object
9832 9833 9834 9835 9836 |
# File 'lib/ruby_parser26.rb', line 9832 def _reduce_418(val, _values, result) lexer.cmdarg.push false result end |
#_reduce_419(val, _values, result) ⇒ Object
9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 |
# File 'lib/ruby_parser26.rb', line 9838 def _reduce_419(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_42(val, _values, result) ⇒ Object
7767 7768 7769 7770 7771 |
# File 'lib/ruby_parser26.rb', line 7767 def _reduce_42(val, _values, result) result = new_op_asgn val result end |
#_reduce_420(val, _values, result) ⇒ Object
9852 9853 9854 9855 9856 |
# File 'lib/ruby_parser26.rb', line 9852 def _reduce_420(val, _values, result) result = args val result end |
#_reduce_421(val, _values, result) ⇒ Object
9858 9859 9860 9861 9862 9863 |
# File 'lib/ruby_parser26.rb', line 9858 def _reduce_421(val, _values, result) result = val[0] result = 0 if result == s(:args) result end |
#_reduce_422(val, _values, result) ⇒ Object
9865 9866 9867 9868 9869 |
# File 'lib/ruby_parser26.rb', line 9865 def _reduce_422(val, _values, result) result = val[1] result end |
#_reduce_423(val, _values, result) ⇒ Object
9871 9872 9873 9874 9875 |
# File 'lib/ruby_parser26.rb', line 9871 def _reduce_423(val, _values, result) result = val[1] result end |
#_reduce_424(val, _values, result) ⇒ Object
9877 9878 9879 9880 9881 9882 |
# File 'lib/ruby_parser26.rb', line 9877 def _reduce_424(val, _values, result) (_, line), iter, _ = val result = iter.line line result end |
#_reduce_425(val, _values, result) ⇒ Object
9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 |
# File 'lib/ruby_parser26.rb', line 9884 def _reduce_425(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_426(val, _values, result) ⇒ Object
9905 9906 9907 9908 9909 9910 9911 |
# File 'lib/ruby_parser26.rb', line 9905 def _reduce_426(val, _values, result) lhs, _, (id, _line), args = val result = new_call lhs, id.to_sym, args result end |
#_reduce_427(val, _values, result) ⇒ Object
9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 |
# File 'lib/ruby_parser26.rb', line 9913 def _reduce_427(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_428(val, _values, result) ⇒ Object
9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 |
# File 'lib/ruby_parser26.rb', line 9924 def _reduce_428(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_429(val, _values, result) ⇒ Object
9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 |
# File 'lib/ruby_parser26.rb', line 9935 def _reduce_429(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_43(val, _values, result) ⇒ Object
7773 7774 7775 7776 7777 |
# File 'lib/ruby_parser26.rb', line 7773 def _reduce_43(val, _values, result) result = new_op_asgn1 val result end |
#_reduce_430(val, _values, result) ⇒ Object
9948 9949 9950 9951 9952 9953 9954 9955 |
# File 'lib/ruby_parser26.rb', line 9948 def _reduce_430(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_431(val, _values, result) ⇒ Object
9957 9958 9959 9960 9961 9962 9963 |
# File 'lib/ruby_parser26.rb', line 9957 def _reduce_431(val, _values, result) recv, _, (op, _line), args = val result = new_call recv, op.to_sym, args result end |
#_reduce_432(val, _values, result) ⇒ Object
9965 9966 9967 9968 9969 9970 9971 |
# File 'lib/ruby_parser26.rb', line 9965 def _reduce_432(val, _values, result) lhs, _, (id, _line) = val result = new_call lhs, id.to_sym result end |
#_reduce_433(val, _values, result) ⇒ Object
9973 9974 9975 9976 9977 |
# File 'lib/ruby_parser26.rb', line 9973 def _reduce_433(val, _values, result) result = new_call val[0], :call, val[2], val[1] result end |
#_reduce_434(val, _values, result) ⇒ Object
9979 9980 9981 9982 9983 |
# File 'lib/ruby_parser26.rb', line 9979 def _reduce_434(val, _values, result) result = new_call val[0], :call, val[2] result end |
#_reduce_435(val, _values, result) ⇒ Object
9985 9986 9987 9988 9989 |
# File 'lib/ruby_parser26.rb', line 9985 def _reduce_435(val, _values, result) result = new_super val[1] result end |
#_reduce_436(val, _values, result) ⇒ Object
9991 9992 9993 9994 9995 |
# File 'lib/ruby_parser26.rb', line 9991 def _reduce_436(val, _values, result) result = s(:zsuper).line lexer.lineno result end |
#_reduce_437(val, _values, result) ⇒ Object
9997 9998 9999 10000 10001 |
# File 'lib/ruby_parser26.rb', line 9997 def _reduce_437(val, _values, result) result = new_aref val result end |
#_reduce_438(val, _values, result) ⇒ Object
10003 10004 10005 10006 10007 10008 |
# File 'lib/ruby_parser26.rb', line 10003 def _reduce_438(val, _values, result) self.env.extend :dynamic result = self.lexer.lineno result end |
#_reduce_439(val, _values, result) ⇒ Object
10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 |
# File 'lib/ruby_parser26.rb', line 10010 def _reduce_439(val, _values, result) _, line, body, _ = val result = body result.line line self.env.unextend result end |
#_reduce_44(val, _values, result) ⇒ Object
7779 7780 7781 7782 7783 7784 7785 7786 7787 |
# File 'lib/ruby_parser26.rb', line 7779 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
10021 10022 10023 10024 10025 10026 |
# File 'lib/ruby_parser26.rb', line 10021 def _reduce_440(val, _values, result) self.env.extend :dynamic result = self.lexer.lineno result end |
#_reduce_441(val, _values, result) ⇒ Object
10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 |
# File 'lib/ruby_parser26.rb', line 10028 def _reduce_441(val, _values, result) _, line, body, _ = val result = body result.line line self.env.unextend result end |
#_reduce_442(val, _values, result) ⇒ Object
10039 10040 10041 10042 |
# File 'lib/ruby_parser26.rb', line 10039 def _reduce_442(val, _values, result) self.env.extend :dynamic; result = self.lexer.lineno result end |
#_reduce_443(val, _values, result) ⇒ Object
10044 10045 10046 10047 |
# File 'lib/ruby_parser26.rb', line 10044 def _reduce_443(val, _values, result) result = lexer.cmdarg.store(false) result end |
#_reduce_444(val, _values, result) ⇒ Object
10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 |
# File 'lib/ruby_parser26.rb', line 10049 def _reduce_444(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_445(val, _values, result) ⇒ Object
10060 10061 10062 10063 |
# File 'lib/ruby_parser26.rb', line 10060 def _reduce_445(val, _values, result) self.env.extend :dynamic; result = self.lexer.lineno result end |
#_reduce_446(val, _values, result) ⇒ Object
10065 10066 10067 10068 |
# File 'lib/ruby_parser26.rb', line 10065 def _reduce_446(val, _values, result) lexer.cmdarg.push false result end |
#_reduce_447(val, _values, result) ⇒ Object
10070 10071 10072 10073 10074 10075 10076 10077 10078 |
# File 'lib/ruby_parser26.rb', line 10070 def _reduce_447(val, _values, result) line, _cmdarg, param, cmpstmt = val result = new_do_body param, cmpstmt, line lexer.cmdarg.pop self.env.unextend result end |
#_reduce_448(val, _values, result) ⇒ Object
10080 10081 10082 10083 10084 10085 10086 |
# File 'lib/ruby_parser26.rb', line 10080 def _reduce_448(val, _values, result) arg, = val result = s(:array, arg).line arg.line result end |
#_reduce_449(val, _values, result) ⇒ Object
10088 10089 10090 10091 10092 10093 10094 |
# File 'lib/ruby_parser26.rb', line 10088 def _reduce_449(val, _values, result) _, arg = val result = s(:array, s(:splat, arg).line(arg.line)).line arg.line result end |
#_reduce_45(val, _values, result) ⇒ Object
7789 7790 7791 7792 7793 7794 7795 7796 7797 |
# File 'lib/ruby_parser26.rb', line 7789 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
10096 10097 10098 10099 10100 10101 10102 |
# File 'lib/ruby_parser26.rb', line 10096 def _reduce_450(val, _values, result) args, _, id = val result = self.list_append args, id result end |
#_reduce_451(val, _values, result) ⇒ Object
10104 10105 10106 10107 10108 10109 10110 |
# File 'lib/ruby_parser26.rb', line 10104 def _reduce_451(val, _values, result) args, _, _, id = val result = self.list_append args, s(:splat, id).line(id.line) result end |
#_reduce_452(val, _values, result) ⇒ Object
10112 10113 10114 10115 10116 |
# File 'lib/ruby_parser26.rb', line 10112 def _reduce_452(val, _values, result) result = self.lexer.lineno result end |
#_reduce_453(val, _values, result) ⇒ Object
10118 10119 10120 10121 10122 10123 10124 |
# File 'lib/ruby_parser26.rb', line 10118 def _reduce_453(val, _values, result) result = new_when(val[2], val[4]) result.line val[1] result << val[5] if val[5] result end |
#_reduce_456(val, _values, result) ⇒ Object
reduce 455 omitted
10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 |
# File 'lib/ruby_parser26.rb', line 10130 def _reduce_456(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_457(val, _values, result) ⇒ Object
10143 10144 10145 10146 10147 |
# File 'lib/ruby_parser26.rb', line 10143 def _reduce_457(val, _values, result) result = nil result end |
#_reduce_458(val, _values, result) ⇒ Object
10149 10150 10151 10152 10153 10154 |
# File 'lib/ruby_parser26.rb', line 10149 def _reduce_458(val, _values, result) arg, = val result = s(:array, arg).line arg.line result end |
#_reduce_46(val, _values, result) ⇒ Object
7799 7800 7801 7802 7803 7804 7805 |
# File 'lib/ruby_parser26.rb', line 7799 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_461(val, _values, result) ⇒ Object
reduce 460 omitted
10160 10161 10162 10163 10164 |
# File 'lib/ruby_parser26.rb', line 10160 def _reduce_461(val, _values, result) result = val[1] result end |
#_reduce_463(val, _values, result) ⇒ Object
reduce 462 omitted
10168 10169 10170 10171 10172 10173 10174 |
# File 'lib/ruby_parser26.rb', line 10168 def _reduce_463(val, _values, result) (_, line), body = val result = body || s(:nil).line(line) result end |
#_reduce_465(val, _values, result) ⇒ Object
reduce 464 omitted
10178 10179 10180 10181 10182 10183 |
# File 'lib/ruby_parser26.rb', line 10178 def _reduce_465(val, _values, result) (lit, line), = val result = s(:lit, lit).line line result end |
#_reduce_467(val, _values, result) ⇒ Object
reduce 466 omitted
10187 10188 10189 10190 10191 10192 10193 |
# File 'lib/ruby_parser26.rb', line 10187 def _reduce_467(val, _values, result) str, = val str = s(:dstr, str.value) if str.sexp_type == :evstr result = str result end |
#_reduce_468(val, _values, result) ⇒ Object
10195 10196 10197 10198 10199 |
# File 'lib/ruby_parser26.rb', line 10195 def _reduce_468(val, _values, result) debug 37 result end |
#_reduce_47(val, _values, result) ⇒ Object
7807 7808 7809 7810 7811 7812 7813 |
# File 'lib/ruby_parser26.rb', line 7807 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
reduce 469 omitted
10203 10204 10205 10206 10207 |
# File 'lib/ruby_parser26.rb', line 10203 def _reduce_470(val, _values, result) result = self.literal_concat val[0], val[1] result end |
#_reduce_471(val, _values, result) ⇒ Object
10209 10210 10211 10212 10213 10214 10215 10216 10217 |
# File 'lib/ruby_parser26.rb', line 10209 def _reduce_471(val, _values, result) (_, line), str, (_, func) = val str = dedent str if func =~ RubyLexer::STR_FUNC_DEDENT result = str.line line result end |
#_reduce_472(val, _values, result) ⇒ Object
10219 10220 10221 10222 10223 |
# File 'lib/ruby_parser26.rb', line 10219 def _reduce_472(val, _values, result) result = new_string val result end |
#_reduce_473(val, _values, result) ⇒ Object
10225 10226 10227 10228 10229 10230 |
# File 'lib/ruby_parser26.rb', line 10225 def _reduce_473(val, _values, result) result = new_xstring val # TODO: dedent?!?! SERIOUSLY?!? result end |
#_reduce_474(val, _values, result) ⇒ Object
10232 10233 10234 10235 10236 |
# File 'lib/ruby_parser26.rb', line 10232 def _reduce_474(val, _values, result) result = new_regexp val result end |
#_reduce_475(val, _values, result) ⇒ Object
10238 10239 10240 10241 10242 10243 10244 10245 |
# File 'lib/ruby_parser26.rb', line 10238 def _reduce_475(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_476(val, _values, result) ⇒ Object
10247 10248 10249 10250 10251 10252 10253 10254 |
# File 'lib/ruby_parser26.rb', line 10247 def _reduce_476(val, _values, result) (_, line), list, (_, line_max) = val result = list.line line result.line_max = line_max result end |
#_reduce_477(val, _values, result) ⇒ Object
10256 10257 10258 10259 10260 |
# File 'lib/ruby_parser26.rb', line 10256 def _reduce_477(val, _values, result) result = new_word_list result end |
#_reduce_478(val, _values, result) ⇒ Object
10262 10263 10264 10265 10266 |
# File 'lib/ruby_parser26.rb', line 10262 def _reduce_478(val, _values, result) result = val[0].dup << new_word_list_entry(val) result end |
#_reduce_48(val, _values, result) ⇒ Object
7815 7816 7817 7818 7819 |
# File 'lib/ruby_parser26.rb', line 7815 def _reduce_48(val, _values, result) self.backref_assign_error val[0] result end |
#_reduce_480(val, _values, result) ⇒ Object
reduce 479 omitted
10270 10271 10272 10273 10274 |
# File 'lib/ruby_parser26.rb', line 10270 def _reduce_480(val, _values, result) result = self.literal_concat val[0], val[1] result end |
#_reduce_481(val, _values, result) ⇒ Object
10276 10277 10278 10279 10280 10281 10282 10283 |
# File 'lib/ruby_parser26.rb', line 10276 def _reduce_481(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_482(val, _values, result) ⇒ Object
10285 10286 10287 10288 10289 10290 10291 10292 |
# File 'lib/ruby_parser26.rb', line 10285 def _reduce_482(val, _values, result) (_, line), list, (_, line_max), = val result = list.line line result.line_max = line_max result end |
#_reduce_483(val, _values, result) ⇒ Object
10294 10295 10296 10297 10298 |
# File 'lib/ruby_parser26.rb', line 10294 def _reduce_483(val, _values, result) result = new_symbol_list result end |
#_reduce_484(val, _values, result) ⇒ Object
10300 10301 10302 10303 10304 10305 |
# File 'lib/ruby_parser26.rb', line 10300 def _reduce_484(val, _values, result) list, * = val result = list.dup << new_symbol_list_entry(val) result end |
#_reduce_485(val, _values, result) ⇒ Object
10307 10308 10309 10310 10311 10312 10313 10314 |
# File 'lib/ruby_parser26.rb', line 10307 def _reduce_485(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_486(val, _values, result) ⇒ Object
10316 10317 10318 10319 10320 10321 10322 10323 |
# File 'lib/ruby_parser26.rb', line 10316 def _reduce_486(val, _values, result) (_, line), list, (_, line_max) = val result = list.line line result.line_max = line_max result end |
#_reduce_487(val, _values, result) ⇒ Object
10325 10326 10327 10328 10329 10330 10331 10332 |
# File 'lib/ruby_parser26.rb', line 10325 def _reduce_487(val, _values, result) (_, line), _, (_, line_max) = val result = s(:array).line line result.line_max = line_max result end |
#_reduce_488(val, _values, result) ⇒ Object
10334 10335 10336 10337 10338 10339 10340 10341 |
# File 'lib/ruby_parser26.rb', line 10334 def _reduce_488(val, _values, result) (_, line), list, (_, line_max) = val result = list.line line result.line_max = line_max result end |
#_reduce_489(val, _values, result) ⇒ Object
10343 10344 10345 10346 10347 |
# File 'lib/ruby_parser26.rb', line 10343 def _reduce_489(val, _values, result) result = new_qword_list result end |
#_reduce_49(val, _values, result) ⇒ Object
7821 7822 7823 7824 7825 7826 |
# File 'lib/ruby_parser26.rb', line 7821 def _reduce_49(val, _values, result) expr, = val result = value_expr expr result end |
#_reduce_490(val, _values, result) ⇒ Object
10349 10350 10351 10352 10353 |
# File 'lib/ruby_parser26.rb', line 10349 def _reduce_490(val, _values, result) result = val[0].dup << new_qword_list_entry(val) result end |
#_reduce_491(val, _values, result) ⇒ Object
10355 10356 10357 10358 10359 |
# File 'lib/ruby_parser26.rb', line 10355 def _reduce_491(val, _values, result) result = new_qsym_list result end |
#_reduce_492(val, _values, result) ⇒ Object
10361 10362 10363 10364 10365 |
# File 'lib/ruby_parser26.rb', line 10361 def _reduce_492(val, _values, result) result = val[0].dup << new_qsym_list_entry(val) result end |
#_reduce_493(val, _values, result) ⇒ Object
10367 10368 10369 10370 10371 10372 |
# File 'lib/ruby_parser26.rb', line 10367 def _reduce_493(val, _values, result) line = prev_value_to_lineno _values.last result = s(:str, +"").line line result end |
#_reduce_494(val, _values, result) ⇒ Object
10374 10375 10376 10377 10378 10379 |
# File 'lib/ruby_parser26.rb', line 10374 def _reduce_494(val, _values, result) v1, v2 = val result = literal_concat v1, v2 result end |
#_reduce_495(val, _values, result) ⇒ Object
10381 10382 10383 10384 10385 |
# File 'lib/ruby_parser26.rb', line 10381 def _reduce_495(val, _values, result) result = nil result end |
#_reduce_496(val, _values, result) ⇒ Object
10387 10388 10389 10390 10391 10392 |
# File 'lib/ruby_parser26.rb', line 10387 def _reduce_496(val, _values, result) v1, v2 = val result = literal_concat v1, v2 result end |
#_reduce_497(val, _values, result) ⇒ Object
10394 10395 10396 10397 10398 |
# File 'lib/ruby_parser26.rb', line 10394 def _reduce_497(val, _values, result) result = nil result end |
#_reduce_498(val, _values, result) ⇒ Object
10400 10401 10402 10403 10404 10405 |
# File 'lib/ruby_parser26.rb', line 10400 def _reduce_498(val, _values, result) v1, v2 = val result = literal_concat v1, v2 result end |
#_reduce_499(val, _values, result) ⇒ Object
10407 10408 10409 10410 10411 |
# File 'lib/ruby_parser26.rb', line 10407 def _reduce_499(val, _values, result) result = new_string val result end |
#_reduce_50(val, _values, result) ⇒ Object
7828 7829 7830 7831 7832 7833 7834 7835 7836 |
# File 'lib/ruby_parser26.rb', line 7828 def _reduce_50(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_500(val, _values, result) ⇒ Object
10413 10414 10415 10416 10417 10418 10419 10420 |
# File 'lib/ruby_parser26.rb', line 10413 def _reduce_500(val, _values, result) result = lexer.lex_strterm lexer.lex_strterm = nil lexer.lex_state = EXPR_BEG result end |
#_reduce_501(val, _values, result) ⇒ Object
10422 10423 10424 10425 10426 10427 10428 |
# File 'lib/ruby_parser26.rb', line 10422 def _reduce_501(val, _values, result) _, strterm, str = val lexer.lex_strterm = strterm result = s(:evstr, str).line str.line result end |
#_reduce_502(val, _values, result) ⇒ Object
10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 |
# File 'lib/ruby_parser26.rb', line 10430 def _reduce_502(val, _values, result) result = [lexer.lex_strterm, lexer.brace_nest, lexer.string_nest, # TODO: remove lexer.lex_state, lexer.lineno, ] 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_503(val, _values, result) ⇒ Object
10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 |
# File 'lib/ruby_parser26.rb', line 10450 def _reduce_503(val, _values, result) _, memo, stmt, _ = val lex_strterm, brace_nest, string_nest, oldlex_state, line = 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 38 raise "unknown string body: #{stmt.inspect}" end result end |
#_reduce_504(val, _values, result) ⇒ Object
10483 10484 10485 10486 10487 |
# File 'lib/ruby_parser26.rb', line 10483 def _reduce_504(val, _values, result) result = wrap :gvar, val[0] result end |
#_reduce_505(val, _values, result) ⇒ Object
10489 10490 10491 10492 10493 |
# File 'lib/ruby_parser26.rb', line 10489 def _reduce_505(val, _values, result) result = wrap :ivar, val[0] result end |
#_reduce_506(val, _values, result) ⇒ Object
10495 10496 10497 10498 10499 |
# File 'lib/ruby_parser26.rb', line 10495 def _reduce_506(val, _values, result) result = wrap :cvar, val[0] result end |
#_reduce_510(val, _values, result) ⇒ Object
reduce 509 omitted
10507 10508 10509 10510 10511 10512 |
# File 'lib/ruby_parser26.rb', line 10507 def _reduce_510(val, _values, result) lexer.lex_state = EXPR_END result = wrap :lit, val[1] result end |
#_reduce_511(val, _values, result) ⇒ Object
10514 10515 10516 10517 10518 10519 |
# File 'lib/ruby_parser26.rb', line 10514 def _reduce_511(val, _values, result) lexer.lex_state = EXPR_END result = wrap :lit, val[0] result end |
#_reduce_516(val, _values, result) ⇒ Object
reduce 515 omitted
10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 |
# File 'lib/ruby_parser26.rb', line 10529 def _reduce_516(val, _values, result) _, result, _ = val lexer.lex_state = EXPR_END result ||= s(:str, "").line lexer.lineno 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 39 end result end |
#_reduce_518(val, _values, result) ⇒ Object
reduce 517 omitted
10552 10553 10554 10555 10556 10557 |
# File 'lib/ruby_parser26.rb', line 10552 def _reduce_518(val, _values, result) _, (num, line) = val result = [-num, line] result end |
#_reduce_528(val, _values, result) ⇒ Object
reduce 527 omitted
10577 10578 10579 10580 |
# File 'lib/ruby_parser26.rb', line 10577 def _reduce_528(val, _values, result) result = s(:nil).line lexer.lineno result end |
#_reduce_529(val, _values, result) ⇒ Object
10582 10583 10584 10585 |
# File 'lib/ruby_parser26.rb', line 10582 def _reduce_529(val, _values, result) result = s(:self).line lexer.lineno result end |
#_reduce_53(val, _values, result) ⇒ Object
reduce 52 omitted
7842 7843 7844 7845 7846 7847 |
# File 'lib/ruby_parser26.rb', line 7842 def _reduce_53(val, _values, result) lhs, _, rhs = val result = logical_op :and, lhs, rhs result end |
#_reduce_530(val, _values, result) ⇒ Object
10587 10588 10589 10590 |
# File 'lib/ruby_parser26.rb', line 10587 def _reduce_530(val, _values, result) result = s(:true).line lexer.lineno result end |
#_reduce_531(val, _values, result) ⇒ Object
10592 10593 10594 10595 |
# File 'lib/ruby_parser26.rb', line 10592 def _reduce_531(val, _values, result) result = s(:false).line lexer.lineno result end |
#_reduce_532(val, _values, result) ⇒ Object
10597 10598 10599 10600 |
# File 'lib/ruby_parser26.rb', line 10597 def _reduce_532(val, _values, result) result = s(:str, self.file).line lexer.lineno result end |
#_reduce_533(val, _values, result) ⇒ Object
10602 10603 10604 10605 |
# File 'lib/ruby_parser26.rb', line 10602 def _reduce_533(val, _values, result) result = s(:lit, lexer.lineno).line lexer.lineno result end |
#_reduce_534(val, _values, result) ⇒ Object
10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 |
# File 'lib/ruby_parser26.rb', line 10607 def _reduce_534(val, _values, result) l = lexer.lineno 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_535(val, _values, result) ⇒ Object
10619 10620 10621 10622 10623 10624 10625 10626 |
# File 'lib/ruby_parser26.rb', line 10619 def _reduce_535(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_536(val, _values, result) ⇒ Object
10628 10629 10630 10631 10632 10633 |
# File 'lib/ruby_parser26.rb', line 10628 def _reduce_536(val, _values, result) var = val[0] result = Sexp === var ? var : self.gettable(var) result end |
#_reduce_537(val, _values, result) ⇒ Object
10635 10636 10637 10638 10639 |
# File 'lib/ruby_parser26.rb', line 10635 def _reduce_537(val, _values, result) result = self.assignable val[0] result end |
#_reduce_538(val, _values, result) ⇒ Object
10641 10642 10643 10644 10645 10646 |
# File 'lib/ruby_parser26.rb', line 10641 def _reduce_538(val, _values, result) result = self.assignable val[0] debug 40 result end |
#_reduce_539(val, _values, result) ⇒ Object
10648 10649 10650 10651 10652 10653 |
# File 'lib/ruby_parser26.rb', line 10648 def _reduce_539(val, _values, result) (ref, line), = val result = s(:nth_ref, ref).line line result end |
#_reduce_54(val, _values, result) ⇒ Object
7849 7850 7851 7852 7853 7854 |
# File 'lib/ruby_parser26.rb', line 7849 def _reduce_54(val, _values, result) lhs, _, rhs = val result = logical_op :or, lhs, rhs result end |
#_reduce_540(val, _values, result) ⇒ Object
10655 10656 10657 10658 10659 10660 |
# File 'lib/ruby_parser26.rb', line 10655 def _reduce_540(val, _values, result) (ref, line), = val result = s(:back_ref, ref).line line result end |
#_reduce_541(val, _values, result) ⇒ Object
10662 10663 10664 10665 10666 10667 |
# File 'lib/ruby_parser26.rb', line 10662 def _reduce_541(val, _values, result) lexer.lex_state = EXPR_BEG lexer.command_start = true result end |
#_reduce_542(val, _values, result) ⇒ Object
10669 10670 10671 10672 10673 |
# File 'lib/ruby_parser26.rb', line 10669 def _reduce_542(val, _values, result) result = val[2] result end |
#_reduce_543(val, _values, result) ⇒ Object
10675 10676 10677 10678 10679 |
# File 'lib/ruby_parser26.rb', line 10675 def _reduce_543(val, _values, result) result = nil result end |
#_reduce_544(val, _values, result) ⇒ Object
10681 10682 10683 10684 10685 |
# File 'lib/ruby_parser26.rb', line 10681 def _reduce_544(val, _values, result) result = end_args val result end |
#_reduce_545(val, _values, result) ⇒ Object
10687 10688 10689 10690 10691 10692 10693 |
# File 'lib/ruby_parser26.rb', line 10687 def _reduce_545(val, _values, result) result = self.in_kwarg self.in_kwarg = true self.lexer.lex_state |= EXPR_LABEL result end |
#_reduce_546(val, _values, result) ⇒ Object
10695 10696 10697 10698 10699 |
# File 'lib/ruby_parser26.rb', line 10695 def _reduce_546(val, _values, result) result = end_args val result end |
#_reduce_547(val, _values, result) ⇒ Object
10701 10702 10703 10704 10705 |
# File 'lib/ruby_parser26.rb', line 10701 def _reduce_547(val, _values, result) result = args val result end |
#_reduce_548(val, _values, result) ⇒ Object
10707 10708 10709 10710 10711 |
# File 'lib/ruby_parser26.rb', line 10707 def _reduce_548(val, _values, result) result = args val result end |
#_reduce_549(val, _values, result) ⇒ Object
10713 10714 10715 10716 10717 |
# File 'lib/ruby_parser26.rb', line 10713 def _reduce_549(val, _values, result) result = args val result end |
#_reduce_55(val, _values, result) ⇒ Object
7856 7857 7858 7859 7860 7861 7862 |
# File 'lib/ruby_parser26.rb', line 7856 def _reduce_55(val, _values, result) (_, line), _, expr = val result = new_call(expr, :"!").line line # REFACTOR: call_uni_op result end |
#_reduce_551(val, _values, result) ⇒ Object
reduce 550 omitted
10721 10722 10723 10724 10725 |
# File 'lib/ruby_parser26.rb', line 10721 def _reduce_551(val, _values, result) result = val[1] result end |
#_reduce_552(val, _values, result) ⇒ Object
10727 10728 10729 10730 10731 |
# File 'lib/ruby_parser26.rb', line 10727 def _reduce_552(val, _values, result) result = nil result end |
#_reduce_553(val, _values, result) ⇒ Object
10733 10734 10735 10736 10737 |
# File 'lib/ruby_parser26.rb', line 10733 def _reduce_553(val, _values, result) result = args val result end |
#_reduce_554(val, _values, result) ⇒ Object
10739 10740 10741 10742 10743 |
# File 'lib/ruby_parser26.rb', line 10739 def _reduce_554(val, _values, result) result = args val result end |
#_reduce_555(val, _values, result) ⇒ Object
10745 10746 10747 10748 10749 |
# File 'lib/ruby_parser26.rb', line 10745 def _reduce_555(val, _values, result) result = args val result end |
#_reduce_556(val, _values, result) ⇒ Object
10751 10752 10753 10754 10755 |
# File 'lib/ruby_parser26.rb', line 10751 def _reduce_556(val, _values, result) result = args val result end |
#_reduce_557(val, _values, result) ⇒ Object
10757 10758 10759 10760 10761 |
# File 'lib/ruby_parser26.rb', line 10757 def _reduce_557(val, _values, result) result = args val result end |
#_reduce_558(val, _values, result) ⇒ Object
10763 10764 10765 10766 10767 |
# File 'lib/ruby_parser26.rb', line 10763 def _reduce_558(val, _values, result) result = args val result end |
#_reduce_559(val, _values, result) ⇒ Object
10769 10770 10771 10772 10773 |
# File 'lib/ruby_parser26.rb', line 10769 def _reduce_559(val, _values, result) result = args val result end |
#_reduce_56(val, _values, result) ⇒ Object
7864 7865 7866 7867 7868 7869 7870 7871 |
# File 'lib/ruby_parser26.rb', line 7864 def _reduce_56(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_560(val, _values, result) ⇒ Object
10775 10776 10777 10778 10779 |
# File 'lib/ruby_parser26.rb', line 10775 def _reduce_560(val, _values, result) result = args val result end |
#_reduce_561(val, _values, result) ⇒ Object
10781 10782 10783 10784 10785 |
# File 'lib/ruby_parser26.rb', line 10781 def _reduce_561(val, _values, result) result = args val result end |
#_reduce_562(val, _values, result) ⇒ Object
10787 10788 10789 10790 10791 |
# File 'lib/ruby_parser26.rb', line 10787 def _reduce_562(val, _values, result) result = args val result end |
#_reduce_563(val, _values, result) ⇒ Object
10793 10794 10795 10796 10797 |
# File 'lib/ruby_parser26.rb', line 10793 def _reduce_563(val, _values, result) result = args val result end |
#_reduce_564(val, _values, result) ⇒ Object
10799 10800 10801 10802 10803 |
# File 'lib/ruby_parser26.rb', line 10799 def _reduce_564(val, _values, result) result = args val result end |
#_reduce_565(val, _values, result) ⇒ Object
10805 10806 10807 10808 10809 |
# File 'lib/ruby_parser26.rb', line 10805 def _reduce_565(val, _values, result) result = args val result end |
#_reduce_566(val, _values, result) ⇒ Object
10811 10812 10813 10814 10815 |
# File 'lib/ruby_parser26.rb', line 10811 def _reduce_566(val, _values, result) result = args val result end |
#_reduce_567(val, _values, result) ⇒ Object
10817 10818 10819 10820 10821 10822 |
# File 'lib/ruby_parser26.rb', line 10817 def _reduce_567(val, _values, result) result = args val # result.line lexer.lineno result end |
#_reduce_568(val, _values, result) ⇒ Object
10824 10825 10826 10827 10828 |
# File 'lib/ruby_parser26.rb', line 10824 def _reduce_568(val, _values, result) yyerror "formal argument cannot be a constant" result end |
#_reduce_569(val, _values, result) ⇒ Object
10830 10831 10832 10833 10834 |
# File 'lib/ruby_parser26.rb', line 10830 def _reduce_569(val, _values, result) yyerror "formal argument cannot be an instance variable" result end |
#_reduce_570(val, _values, result) ⇒ Object
10836 10837 10838 10839 10840 |
# File 'lib/ruby_parser26.rb', line 10836 def _reduce_570(val, _values, result) yyerror "formal argument cannot be a global variable" result end |
#_reduce_571(val, _values, result) ⇒ Object
10842 10843 10844 10845 10846 |
# File 'lib/ruby_parser26.rb', line 10842 def _reduce_571(val, _values, result) yyerror "formal argument cannot be a class variable" result end |
#_reduce_573(val, _values, result) ⇒ Object
reduce 572 omitted
10850 10851 10852 10853 10854 10855 10856 10857 10858 |
# File 'lib/ruby_parser26.rb', line 10850 def _reduce_573(val, _values, result) (id, line), = val identifier = id.to_sym self.env[identifier] = :lvar result = [identifier, line] result end |
#_reduce_576(val, _values, result) ⇒ Object
reduce 575 omitted
10864 10865 10866 10867 10868 10869 10870 |
# File 'lib/ruby_parser26.rb', line 10864 def _reduce_576(val, _values, result) _, margs, _ = val result = margs result end |
#_reduce_577(val, _values, result) ⇒ Object
10872 10873 10874 10875 10876 |
# File 'lib/ruby_parser26.rb', line 10872 def _reduce_577(val, _values, result) result = new_arg val result end |
#_reduce_578(val, _values, result) ⇒ Object
10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 |
# File 'lib/ruby_parser26.rb', line 10878 def _reduce_578(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_58(val, _values, result) ⇒ Object
reduce 57 omitted
7875 7876 7877 7878 7879 |
# File 'lib/ruby_parser26.rb', line 7875 def _reduce_58(val, _values, result) result = value_expr(val[0]) result end |
#_reduce_580(val, _values, result) ⇒ Object
reduce 579 omitted
10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 |
# File 'lib/ruby_parser26.rb', line 10901 def _reduce_580(val, _values, result) # TODO: new_kw_arg (label, line), arg = val identifier = label.to_sym self.env[identifier] = :lvar kwarg = s(:kwarg, identifier, arg).line line result = s(:array, kwarg).line line result end |
#_reduce_581(val, _values, result) ⇒ Object
10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 |
# File 'lib/ruby_parser26.rb', line 10914 def _reduce_581(val, _values, result) (label, line), = val id = label.to_sym self.env[id] = :lvar result = s(:array, s(:kwarg, id).line(line)).line line result end |
#_reduce_582(val, _values, result) ⇒ Object
10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 |
# File 'lib/ruby_parser26.rb', line 10925 def _reduce_582(val, _values, result) # TODO: new_kw_arg (label, line), expr = val id = label.to_sym self.env[id] = :lvar result = s(:array, s(:kwarg, id, expr).line(line)).line line result end |
#_reduce_583(val, _values, result) ⇒ Object
10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 |
# File 'lib/ruby_parser26.rb', line 10936 def _reduce_583(val, _values, result) # TODO: new_kw_arg (label, line), = val id = label.to_sym self.env[id] = :lvar result = s(:array, s(:kwarg, id).line(line)).line line result end |
#_reduce_585(val, _values, result) ⇒ Object
reduce 584 omitted
10949 10950 10951 10952 10953 10954 |
# File 'lib/ruby_parser26.rb', line 10949 def _reduce_585(val, _values, result) list, _, item = val result = list << item.last result end |
#_reduce_587(val, _values, result) ⇒ Object
reduce 586 omitted
10958 10959 10960 10961 10962 |
# File 'lib/ruby_parser26.rb', line 10958 def _reduce_587(val, _values, result) result = args val result end |
#_reduce_59(val, _values, result) ⇒ Object
7881 7882 7883 7884 7885 |
# File 'lib/ruby_parser26.rb', line 7881 def _reduce_59(val, _values, result) lexer.cond.push true result end |
#_reduce_590(val, _values, result) ⇒ Object
reduce 589 omitted
10968 10969 10970 10971 10972 10973 10974 10975 10976 |
# File 'lib/ruby_parser26.rb', line 10968 def _reduce_590(val, _values, result) _, (id, line) = val name = id.to_sym self.assignable [name, line] result = [:"**#{name}", line] result end |
#_reduce_591(val, _values, result) ⇒ Object
10978 10979 10980 10981 10982 10983 10984 |
# File 'lib/ruby_parser26.rb', line 10978 def _reduce_591(val, _values, result) id = :"**" self.env[id] = :lvar # TODO: needed?!? result = [id, lexer.lineno] # TODO: tPOW/tDSTAR include lineno result end |
#_reduce_592(val, _values, result) ⇒ Object
10986 10987 10988 10989 10990 10991 10992 |
# File 'lib/ruby_parser26.rb', line 10986 def _reduce_592(val, _values, result) lhs, _, rhs = val result = self.assignable lhs, rhs # TODO: detect duplicate names result end |
#_reduce_593(val, _values, result) ⇒ Object
10994 10995 10996 10997 10998 10999 |
# File 'lib/ruby_parser26.rb', line 10994 def _reduce_593(val, _values, result) lhs, _, rhs = val result = self.assignable lhs, rhs result end |
#_reduce_594(val, _values, result) ⇒ Object
11001 11002 11003 11004 11005 11006 |
# File 'lib/ruby_parser26.rb', line 11001 def _reduce_594(val, _values, result) optblk, = val result = s(:block, optblk).line optblk.line result end |
#_reduce_595(val, _values, result) ⇒ Object
11008 11009 11010 11011 11012 11013 11014 |
# File 'lib/ruby_parser26.rb', line 11008 def _reduce_595(val, _values, result) optarg, _, optblk = val result = optarg result << optblk result end |
#_reduce_596(val, _values, result) ⇒ Object
11016 11017 11018 11019 11020 11021 |
# File 'lib/ruby_parser26.rb', line 11016 def _reduce_596(val, _values, result) opt, = val result = s(:block, opt).line opt.line result end |
#_reduce_597(val, _values, result) ⇒ Object
11023 11024 11025 11026 11027 |
# File 'lib/ruby_parser26.rb', line 11023 def _reduce_597(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_6(val, _values, result) ⇒ Object
reduce 5 omitted
7542 7543 7544 7545 7546 |
# File 'lib/ruby_parser26.rb', line 7542 def _reduce_6(val, _values, result) result = self.block_append val[0], val[2] result end |
#_reduce_60(val, _values, result) ⇒ Object
7887 7888 7889 7890 7891 |
# File 'lib/ruby_parser26.rb', line 7887 def _reduce_60(val, _values, result) lexer.cond.pop result end |
#_reduce_600(val, _values, result) ⇒ Object
reduce 599 omitted
11033 11034 11035 11036 11037 11038 11039 11040 11041 |
# File 'lib/ruby_parser26.rb', line 11033 def _reduce_600(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_601(val, _values, result) ⇒ Object
11043 11044 11045 11046 11047 11048 11049 |
# File 'lib/ruby_parser26.rb', line 11043 def _reduce_601(val, _values, result) name = :"*" self.env[name] = :lvar result = [name, lexer.lineno] # FIX: tSTAR to include lineno result end |
#_reduce_604(val, _values, result) ⇒ Object
reduce 603 omitted
11055 11056 11057 11058 11059 11060 11061 11062 11063 |
# File 'lib/ruby_parser26.rb', line 11055 def _reduce_604(val, _values, result) _, (id, line) = val identifier = id.to_sym self.env[identifier] = :lvar result = ["&#{identifier}".to_sym, line] result end |
#_reduce_605(val, _values, result) ⇒ Object
11065 11066 11067 11068 11069 11070 |
# File 'lib/ruby_parser26.rb', line 11065 def _reduce_605(val, _values, result) _, arg = val result = arg result end |
#_reduce_606(val, _values, result) ⇒ Object
11072 11073 11074 11075 11076 |
# File 'lib/ruby_parser26.rb', line 11072 def _reduce_606(val, _values, result) result = nil result end |
#_reduce_608(val, _values, result) ⇒ Object
reduce 607 omitted
11080 11081 11082 11083 11084 |
# File 'lib/ruby_parser26.rb', line 11080 def _reduce_608(val, _values, result) lexer.lex_state = EXPR_BEG result end |
#_reduce_609(val, _values, result) ⇒ Object
11086 11087 11088 11089 11090 11091 11092 |
# File 'lib/ruby_parser26.rb', line 11086 def _reduce_609(val, _values, result) result = val[2] yyerror "Can't define single method for literals." if result.sexp_type == :lit result end |
#_reduce_61(val, _values, result) ⇒ Object
7893 7894 7895 7896 7897 7898 |
# File 'lib/ruby_parser26.rb', line 7893 def _reduce_61(val, _values, result) _, expr, _, _ = val result = expr result end |
#_reduce_610(val, _values, result) ⇒ Object
11094 11095 11096 11097 11098 |
# File 'lib/ruby_parser26.rb', line 11094 def _reduce_610(val, _values, result) result = s(:array).line lexer.lineno result end |
#_reduce_613(val, _values, result) ⇒ Object
reduce 612 omitted
11104 11105 11106 11107 11108 11109 11110 11111 11112 |
# File 'lib/ruby_parser26.rb', line 11104 def _reduce_613(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_614(val, _values, result) ⇒ Object
11114 11115 11116 11117 11118 11119 |
# File 'lib/ruby_parser26.rb', line 11114 def _reduce_614(val, _values, result) v1, _, v2 = val result = s(:array, v1, v2).line v1.line result end |
#_reduce_615(val, _values, result) ⇒ Object
11121 11122 11123 11124 11125 11126 11127 11128 |
# File 'lib/ruby_parser26.rb', line 11121 def _reduce_615(val, _values, result) label, arg = val lit = wrap :lit, label result = s(:array, lit, arg).line lit.line result end |
#_reduce_616(val, _values, result) ⇒ Object
11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/ruby_parser26.rb', line 11130 def _reduce_616(val, _values, result) (_, line), sym, _, value = val sym.sexp_type = :dsym result = s(:array, sym, value).line line result end |
#_reduce_617(val, _values, result) ⇒ Object
11140 11141 11142 11143 11144 11145 11146 |
# File 'lib/ruby_parser26.rb', line 11140 def _reduce_617(val, _values, result) _, arg = val line = arg.line result = s(:array, s(:kwsplat, arg).line(line)).line line result end |
#_reduce_638(val, _values, result) ⇒ Object
reduce 637 omitted
11188 11189 11190 11191 11192 11193 |
# File 'lib/ruby_parser26.rb', line 11188 def _reduce_638(val, _values, result) _, close = val result = [close, lexer.lineno] result end |
#_reduce_639(val, _values, result) ⇒ Object
11195 11196 11197 11198 11199 11200 |
# File 'lib/ruby_parser26.rb', line 11195 def _reduce_639(val, _values, result) _, close = val result = [close, lexer.lineno] result end |
#_reduce_643(val, _values, result) ⇒ Object
reduce 642 omitted
11208 11209 11210 11211 |
# File 'lib/ruby_parser26.rb', line 11208 def _reduce_643(val, _values, result) yyerrok result end |
#_reduce_646(val, _values, result) ⇒ Object
reduce 645 omitted
11217 11218 11219 11220 |
# File 'lib/ruby_parser26.rb', line 11217 def _reduce_646(val, _values, result) yyerrok result end |
#_reduce_647(val, _values, result) ⇒ Object
11222 11223 11224 11225 |
# File 'lib/ruby_parser26.rb', line 11222 def _reduce_647(val, _values, result) result = nil; result end |
#_reduce_65(val, _values, result) ⇒ Object
reduce 64 omitted
7906 7907 7908 7909 7910 7911 |
# File 'lib/ruby_parser26.rb', line 7906 def _reduce_65(val, _values, result) blk, _, (msg, _line), args = val result = new_call(blk, msg.to_sym, args).line blk.line result end |
#_reduce_66(val, _values, result) ⇒ Object
7913 7914 7915 7916 7917 7918 |
# File 'lib/ruby_parser26.rb', line 7913 def _reduce_66(val, _values, result) # self.env.extend(:dynamic) result = self.lexer.lineno result end |
#_reduce_67(val, _values, result) ⇒ Object
7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 |
# File 'lib/ruby_parser26.rb', line 7920 def _reduce_67(val, _values, result) _, line, body, _ = val result = body result.line line # self.env.unextend result end |
#_reduce_68(val, _values, result) ⇒ Object
7931 7932 7933 7934 7935 7936 |
# File 'lib/ruby_parser26.rb', line 7931 def _reduce_68(val, _values, result) (msg, line), = val result = new_call(nil, msg.to_sym).line line result end |
#_reduce_69(val, _values, result) ⇒ Object
7938 7939 7940 7941 7942 7943 |
# File 'lib/ruby_parser26.rb', line 7938 def _reduce_69(val, _values, result) call, args = val result = call.concat args.sexp_body result end |
#_reduce_70(val, _values, result) ⇒ Object
7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 |
# File 'lib/ruby_parser26.rb', line 7945 def _reduce_70(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_71(val, _values, result) ⇒ Object
7960 7961 7962 7963 7964 7965 7966 7967 |
# File 'lib/ruby_parser26.rb', line 7960 def _reduce_71(val, _values, result) lhs, callop, (op, _), args = val result = new_call lhs, op.to_sym, args, callop result.line lhs.line result end |
#_reduce_72(val, _values, result) ⇒ Object
7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 |
# File 'lib/ruby_parser26.rb', line 7969 def _reduce_72(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_73(val, _values, result) ⇒ Object
7981 7982 7983 7984 7985 7986 7987 7988 |
# File 'lib/ruby_parser26.rb', line 7981 def _reduce_73(val, _values, result) lhs, _, (id, line), args = val result = new_call lhs, id.to_sym, args result.line line result end |
#_reduce_74(val, _values, result) ⇒ Object
7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 |
# File 'lib/ruby_parser26.rb', line 7990 def _reduce_74(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_75(val, _values, result) ⇒ Object
8002 8003 8004 8005 8006 |
# File 'lib/ruby_parser26.rb', line 8002 def _reduce_75(val, _values, result) result = new_super val[1] result end |
#_reduce_76(val, _values, result) ⇒ Object
8008 8009 8010 8011 8012 8013 8014 |
# File 'lib/ruby_parser26.rb', line 8008 def _reduce_76(val, _values, result) (_, line), args = val result = new_yield args result.line line # TODO: push to new_yield result end |
#_reduce_77(val, _values, result) ⇒ Object
8016 8017 8018 8019 8020 8021 |
# File 'lib/ruby_parser26.rb', line 8016 def _reduce_77(val, _values, result) line = val[0].last result = s(:return, ret_args(val[1])).line(line) result end |
#_reduce_78(val, _values, result) ⇒ Object
8023 8024 8025 8026 8027 8028 |
# File 'lib/ruby_parser26.rb', line 8023 def _reduce_78(val, _values, result) (_, line), args = val result = s(:break, ret_args(args)).line line result end |
#_reduce_79(val, _values, result) ⇒ Object
8030 8031 8032 8033 8034 8035 |
# File 'lib/ruby_parser26.rb', line 8030 def _reduce_79(val, _values, result) line = val[0].last result = s(:next, ret_args(val[1])).line(line) result end |
#_reduce_81(val, _values, result) ⇒ Object
reduce 80 omitted
8039 8040 8041 8042 8043 |
# File 'lib/ruby_parser26.rb', line 8039 def _reduce_81(val, _values, result) result = val[1] result end |
#_reduce_83(val, _values, result) ⇒ Object
reduce 82 omitted
8047 8048 8049 8050 8051 8052 8053 8054 |
# File 'lib/ruby_parser26.rb', line 8047 def _reduce_83(val, _values, result) _, arg, _ = val l = arg.line result = s(:masgn, s(:array, arg).line(l)).line l result end |
#_reduce_84(val, _values, result) ⇒ Object
8056 8057 8058 8059 8060 8061 |
# File 'lib/ruby_parser26.rb', line 8056 def _reduce_84(val, _values, result) head, = val result = s(:masgn, head).line head.line result end |
#_reduce_85(val, _values, result) ⇒ Object
8063 8064 8065 8066 8067 8068 |
# File 'lib/ruby_parser26.rb', line 8063 def _reduce_85(val, _values, result) lhs, rhs = val result = s(:masgn, lhs << rhs.compact).line lhs.line result end |
#_reduce_86(val, _values, result) ⇒ Object
8070 8071 8072 8073 8074 8075 8076 |
# File 'lib/ruby_parser26.rb', line 8070 def _reduce_86(val, _values, result) head, _, tail = val head << s(:splat, tail).line(tail.line) result = s(:masgn, head).line head.line result end |
#_reduce_87(val, _values, result) ⇒ Object
8078 8079 8080 8081 8082 8083 8084 8085 8086 |
# File 'lib/ruby_parser26.rb', line 8078 def _reduce_87(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_88(val, _values, result) ⇒ Object
8088 8089 8090 8091 8092 8093 8094 |
# File 'lib/ruby_parser26.rb', line 8088 def _reduce_88(val, _values, result) head, _ = val l = head.line result = s(:masgn, head << s(:splat).line(l)).line l result end |
#_reduce_89(val, _values, result) ⇒ Object
8096 8097 8098 8099 8100 8101 8102 8103 |
# File 'lib/ruby_parser26.rb', line 8096 def _reduce_89(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_9(val, _values, result) ⇒ Object
reduce 8 omitted
7552 7553 7554 7555 7556 7557 7558 7559 7560 |
# File 'lib/ruby_parser26.rb', line 7552 def _reduce_9(val, _values, result) if (self.in_def || self.in_single > 0) then debug 11 yyerror "BEGIN in method" end self.env.extend result end |
#_reduce_90(val, _values, result) ⇒ Object
8105 8106 8107 8108 8109 8110 8111 8112 8113 |
# File 'lib/ruby_parser26.rb', line 8105 def _reduce_90(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_91(val, _values, result) ⇒ Object
8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 |
# File 'lib/ruby_parser26.rb', line 8115 def _reduce_91(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_92(val, _values, result) ⇒ Object
8126 8127 8128 8129 8130 8131 |
# File 'lib/ruby_parser26.rb', line 8126 def _reduce_92(val, _values, result) l = lexer.lineno result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l result end |
#_reduce_93(val, _values, result) ⇒ Object
8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 |
# File 'lib/ruby_parser26.rb', line 8133 def _reduce_93(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_95(val, _values, result) ⇒ Object
reduce 94 omitted
8146 8147 8148 8149 8150 |
# File 'lib/ruby_parser26.rb', line 8146 def _reduce_95(val, _values, result) result = val[1] result end |
#_reduce_96(val, _values, result) ⇒ Object
8152 8153 8154 8155 8156 8157 |
# File 'lib/ruby_parser26.rb', line 8152 def _reduce_96(val, _values, result) lhs, _ = val result = s(:array, lhs).line lhs.line result end |
#_reduce_97(val, _values, result) ⇒ Object
8159 8160 8161 8162 8163 |
# File 'lib/ruby_parser26.rb', line 8159 def _reduce_97(val, _values, result) result = val[0] << val[1].compact result end |
#_reduce_98(val, _values, result) ⇒ Object
8165 8166 8167 8168 8169 8170 |
# File 'lib/ruby_parser26.rb', line 8165 def _reduce_98(val, _values, result) item, = val result = s(:array, item).line item.line result end |
#_reduce_99(val, _values, result) ⇒ Object
8172 8173 8174 8175 8176 |
# File 'lib/ruby_parser26.rb', line 8172 def _reduce_99(val, _values, result) result = list_append val[0], val[2] result end |
#_reduce_none(val, _values, result) ⇒ Object
11227 11228 11229 |
# File 'lib/ruby_parser26.rb', line 11227 def _reduce_none(val, _values, result) val[0] end |