Class: Ruby30Parser

Inherits:
RubyParser::Parser show all
Includes:
RubyLexer::State::Values
Defined in:
lib/ruby_parser30.rb

Direct Known Subclasses

RubyParser::V30

Constant Summary collapse

Racc_arg =
[
racc_action_table,
racc_action_check,
racc_action_default,
racc_action_pointer,
racc_goto_table,
racc_goto_check,
racc_goto_default,
racc_goto_pointer,
racc_nt_base,
racc_reduce_table,
racc_token_table,
racc_shift_n,
racc_reduce_n,
racc_use_result_var ]
Racc_token_to_s_table =
[
"$end",
"error",
"kCLASS",
"kMODULE",
"kDEF",
"kUNDEF",
"kBEGIN",
"kRESCUE",
"kENSURE",
"kEND",
"kIF",
"kUNLESS",
"kTHEN",
"kELSIF",
"kELSE",
"kCASE",
"kWHEN",
"kWHILE",
"kUNTIL",
"kFOR",
"kBREAK",
"kNEXT",
"kREDO",
"kRETRY",
"kIN",
"kDO",
"kDO_COND",
"kDO_BLOCK",
"kDO_LAMBDA",
"kRETURN",
"kYIELD",
"kSUPER",
"kSELF",
"kNIL",
"kTRUE",
"kFALSE",
"kAND",
"kOR",
"kNOT",
"kIF_MOD",
"kUNLESS_MOD",
"kWHILE_MOD",
"kUNTIL_MOD",
"kRESCUE_MOD",
"kALIAS",
"kDEFINED",
"klBEGIN",
"klEND",
"k__LINE__",
"k__FILE__",
"k__ENCODING__",
"tIDENTIFIER",
"tFID",
"tGVAR",
"tIVAR",
"tCONSTANT",
"tLABEL",
"tCVAR",
"tNTH_REF",
"tBACK_REF",
"tSTRING_CONTENT",
"tINTEGER",
"tFLOAT",
"tREGEXP_END",
"tUPLUS",
"tUMINUS",
"tUMINUS_NUM",
"tPOW",
"tCMP",
"tEQ",
"tEQQ",
"tNEQ",
"tGEQ",
"tLEQ",
"tANDOP",
"tOROP",
"tMATCH",
"tNMATCH",
"tDOT",
"tDOT2",
"tDOT3",
"tAREF",
"tASET",
"tLSHFT",
"tRSHFT",
"tCOLON2",
"tCOLON3",
"tOP_ASGN",
"tASSOC",
"tLPAREN",
"tLPAREN2",
"tRPAREN",
"tLPAREN_ARG",
"tLBRACK",
"tLBRACK2",
"tRBRACK",
"tLBRACE",
"tLBRACE_ARG",
"tSTAR",
"tSTAR2",
"tAMPER",
"tAMPER2",
"tTILDE",
"tPERCENT",
"tDIVIDE",
"tPLUS",
"tMINUS",
"tLT",
"tGT",
"tPIPE",
"tBANG",
"tCARET",
"tLCURLY",
"tRCURLY",
"tBACK_REF2",
"tSYMBEG",
"tSTRING_BEG",
"tXSTRING_BEG",
"tREGEXP_BEG",
"tWORDS_BEG",
"tQWORDS_BEG",
"tSTRING_DBEG",
"tSTRING_DVAR",
"tSTRING_END",
"tSTRING",
"tSYMBOL",
"tNL",
"tEH",
"tCOLON",
"tCOMMA",
"tSPACE",
"tSEMI",
"tLAMBDA",
"tLAMBEG",
"tDSTAR",
"tCHAR",
"tSYMBOLS_BEG",
"tQSYMBOLS_BEG",
"tSTRING_DEND",
"tRATIONAL",
"tIMAGINARY",
"tLABEL_END",
"tLONELY",
"tBDOT2",
"tBDOT3",
"tLOWEST",
"tEQL",
"$start",
"program",
"top_compstmt",
"@1",
"top_stmts",
"opt_terms",
"none",
"top_stmt",
"terms",
"stmt",
"begin_block",
"@2",
"bodystmt",
"compstmt",
"opt_rescue",
"k_else",
"opt_ensure",
"@3",
"stmts",
"stmt_or_begin",
"@4",
"fitem",
"undef_list",
"expr_value",
"command_asgn",
"mlhs",
"command_call",
"lhs",
"mrhs",
"mrhs_arg",
"expr",
"@5",
"command_rhs",
"var_lhs",
"primary_value",
"opt_call_args",
"rbracket",
"call_op",
"backref",
"opt_nl",
"arg",
"p_expr",
"def_name",
"@6",
"@7",
"fname",
"defn_head",
"k_def",
"defs_head",
"singleton",
"dot_or_colon",
"@8",
"expr_value_do",
"do",
"@9",
"@10",
"command",
"block_command",
"block_call",
"call_op2",
"operation2",
"command_args",
"cmd_brace_block",
"brace_body",
"fcall",
"@11",
"operation",
"k_return",
"call_args",
"mlhs_basic",
"mlhs_inner",
"rparen",
"mlhs_head",
"mlhs_item",
"mlhs_node",
"mlhs_post",
"user_variable",
"keyword_variable",
"cname",
"cpath",
"op",
"reswords",
"symbol",
"@12",
"arg_rhs",
"simple_numeric",
"rel_expr",
"f_opt_paren_args",
"primary",
"relop",
"arg_value",
"aref_args",
"args",
"trailer",
"assocs",
"paren_args",
"args_forward",
"opt_paren_args",
"opt_block_arg",
"block_arg",
"@13",
"literal",
"strings",
"xstring",
"regexp",
"words",
"qwords",
"symbols",
"qsymbols",
"var_ref",
"k_begin",
"k_end",
"assoc_list",
"brace_block",
"method_call",
"lambda",
"k_if",
"then",
"if_tail",
"k_unless",
"opt_else",
"k_while",
"k_until",
"k_case",
"case_body",
"p_case_body",
"k_for",
"for_var",
"k_class",
"superclass",
"term",
"k_module",
"f_arglist",
"@14",
"@15",
"@16",
"@17",
"@18",
"@19",
"@20",
"@21",
"k_do",
"k_do_block",
"k_rescue",
"k_ensure",
"k_when",
"k_elsif",
"f_marg",
"f_norm_arg",
"f_margs",
"f_marg_list",
"f_rest_marg",
"f_any_kwrest",
"f_kwrest",
"f_no_kwarg",
"block_args_tail",
"f_block_kwarg",
"opt_f_block_arg",
"f_block_arg",
"opt_block_args_tail",
"excessed_comma",
"block_param",
"f_arg",
"f_block_optarg",
"f_rest_arg",
"opt_block_param",
"block_param_def",
"opt_bv_decl",
"bv_decls",
"bvar",
"f_bad_arg",
"f_larglist",
"lambda_body",
"@22",
"@23",
"f_args",
"do_block",
"do_body",
"operation3",
"@24",
"@25",
"@26",
"@27",
"case_args",
"@28",
"@29",
"cases",
"p_top_expr",
"p_cases",
"@30",
"@31",
"p_top_expr_body",
"p_args",
"p_find",
"p_args_tail",
"p_kwargs",
"p_as",
"p_variable",
"p_alt",
"p_expr_basic",
"p_lparen",
"p_lbracket",
"p_value",
"p_const",
"rbrace",
"@32",
"@33",
"p_args_head",
"p_arg",
"p_args_post",
"p_rest",
"p_kwarg",
"p_any_kwrest",
"p_kw",
"p_kw_label",
"p_kwrest",
"kwrest_mark",
"p_kwnorest",
"p_primitive",
"p_var_ref",
"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",
"@34",
"@35",
"ssym",
"dsym",
"sym",
"@36",
"f_paren_args",
"args_tail",
"@37",
"f_kwarg",
"opt_args_tail",
"f_optarg",
"f_arg_asgn",
"f_arg_item",
"f_label",
"f_kw",
"f_block_kw",
"f_opt",
"f_block_opt",
"restarg_mark",
"blkarg_mark",
"@38",
"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

Methods inherited from RubyParser::Parser

inherited, version, version=

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



8680
8681
8682
8683
8684
# File 'lib/ruby_parser30.rb', line 8680

def _reduce_1(val, _values, result)
                      self.lexer.lex_state = EXPR_BEG

    result
end

#_reduce_10(val, _values, result) ⇒ Object



8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
# File 'lib/ruby_parser30.rb', line 8726

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



9385
9386
9387
9388
9389
9390
# File 'lib/ruby_parser30.rb', line 9385

def _reduce_100(val, _values, result)
                      (_, l), = val
                      result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l

    result
end

#_reduce_101(val, _values, result) ⇒ Object



9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
# File 'lib/ruby_parser30.rb', line 9392

def _reduce_101(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_103(val, _values, result) ⇒ Object

reduce 102 omitted



9405
9406
9407
9408
9409
# File 'lib/ruby_parser30.rb', line 9405

def _reduce_103(val, _values, result)
                      result = val[1]

    result
end

#_reduce_104(val, _values, result) ⇒ Object



9411
9412
9413
9414
9415
9416
# File 'lib/ruby_parser30.rb', line 9411

def _reduce_104(val, _values, result)
                      lhs, _ = val
                      result = s(:array, lhs).line lhs.line

    result
end

#_reduce_105(val, _values, result) ⇒ Object



9418
9419
9420
9421
9422
# File 'lib/ruby_parser30.rb', line 9418

def _reduce_105(val, _values, result)
                      result = val[0] << val[1].compact

    result
end

#_reduce_106(val, _values, result) ⇒ Object



9424
9425
9426
9427
9428
9429
# File 'lib/ruby_parser30.rb', line 9424

def _reduce_106(val, _values, result)
                      item, = val
                      result = s(:array, item).line item.line

    result
end

#_reduce_107(val, _values, result) ⇒ Object



9431
9432
9433
9434
9435
# File 'lib/ruby_parser30.rb', line 9431

def _reduce_107(val, _values, result)
                      result = list_append val[0], val[2]

    result
end

#_reduce_108(val, _values, result) ⇒ Object



9437
9438
9439
9440
9441
# File 'lib/ruby_parser30.rb', line 9437

def _reduce_108(val, _values, result)
                      result = self.assignable val[0]

    result
end

#_reduce_109(val, _values, result) ⇒ Object



9443
9444
9445
9446
9447
# File 'lib/ruby_parser30.rb', line 9443

def _reduce_109(val, _values, result)
                      result = self.assignable val[0]

    result
end

#_reduce_11(val, _values, result) ⇒ Object



8738
8739
8740
8741
8742
8743
# File 'lib/ruby_parser30.rb', line 8738

def _reduce_11(val, _values, result)
                      (_, line), stmt, _ = val
                      result = new_iter s(:preexe).line(line), 0, stmt

    result
end

#_reduce_110(val, _values, result) ⇒ Object



9449
9450
9451
9452
9453
# File 'lib/ruby_parser30.rb', line 9449

def _reduce_110(val, _values, result)
                      result = self.aryset val[0], val[2]

    result
end

#_reduce_111(val, _values, result) ⇒ Object



9455
9456
9457
9458
9459
9460
9461
# File 'lib/ruby_parser30.rb', line 9455

def _reduce_111(val, _values, result)
                      lhs, call_op, (id, _line) = val

                      result = new_attrasgn lhs, id, call_op

    result
end

#_reduce_112(val, _values, result) ⇒ Object



9463
9464
9465
9466
9467
9468
# File 'lib/ruby_parser30.rb', line 9463

def _reduce_112(val, _values, result)
                      recv, _, (id, _line) = val
                      result = new_attrasgn recv, id

    result
end

#_reduce_113(val, _values, result) ⇒ Object



9470
9471
9472
9473
9474
9475
9476
# File 'lib/ruby_parser30.rb', line 9470

def _reduce_113(val, _values, result)
                      lhs, call_op, (id, _line) = val

                      result = new_attrasgn lhs, id, call_op

    result
end

#_reduce_114(val, _values, result) ⇒ Object



9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
# File 'lib/ruby_parser30.rb', line 9478

def _reduce_114(val, _values, result)
                      if (self.in_def || self.in_single > 0) then
                        debug 4
                        yyerror "dynamic constant assignment"
                      end

                      expr, _, (id, _line) = val
                      l = expr.line

                      result = s(:const, s(:colon2, expr, id.to_sym).line(l), nil).line l

    result
end

#_reduce_115(val, _values, result) ⇒ Object



9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
# File 'lib/ruby_parser30.rb', line 9492

def _reduce_115(val, _values, result)
                      if (self.in_def || self.in_single > 0) then
                        debug 5
                        yyerror "dynamic constant assignment"
                      end

                      _, (id, l) = val

                      result = s(:const, nil, s(:colon3, id.to_sym).line(l)).line l

    result
end

#_reduce_116(val, _values, result) ⇒ Object



9505
9506
9507
9508
9509
9510
9511
# File 'lib/ruby_parser30.rb', line 9505

def _reduce_116(val, _values, result)
                      ref, = val

                      self.backref_assign_error ref

    result
end

#_reduce_117(val, _values, result) ⇒ Object



9513
9514
9515
9516
9517
9518
9519
# File 'lib/ruby_parser30.rb', line 9513

def _reduce_117(val, _values, result)
                      var, = val

                      result = self.assignable var

    result
end

#_reduce_118(val, _values, result) ⇒ Object



9521
9522
9523
9524
9525
9526
9527
9528
9529
# File 'lib/ruby_parser30.rb', line 9521

def _reduce_118(val, _values, result)
                      var, = val

                      result = self.assignable var

                      debug 6

    result
end

#_reduce_119(val, _values, result) ⇒ Object



9531
9532
9533
9534
9535
9536
9537
# File 'lib/ruby_parser30.rb', line 9531

def _reduce_119(val, _values, result)
                      lhs, _, args, _ = val

                      result = self.aryset lhs, args

    result
end

#_reduce_12(val, _values, result) ⇒ Object



8745
8746
8747
8748
8749
8750
# File 'lib/ruby_parser30.rb', line 8745

def _reduce_12(val, _values, result)
                      res = _values[-2]
                      yyerror "else without rescue is useless" unless res

    result
end

#_reduce_120(val, _values, result) ⇒ Object



9539
9540
9541
9542
9543
9544
9545
# File 'lib/ruby_parser30.rb', line 9539

def _reduce_120(val, _values, result)
                      lhs, op, (id, _line) = val

                      result = new_attrasgn lhs, id, op

    result
end

#_reduce_121(val, _values, result) ⇒ Object



9547
9548
9549
9550
9551
9552
9553
# File 'lib/ruby_parser30.rb', line 9547

def _reduce_121(val, _values, result)
                      lhs, _, (id, _line) = val

                      result = new_attrasgn lhs, id

    result
end

#_reduce_122(val, _values, result) ⇒ Object



9555
9556
9557
9558
9559
9560
9561
# File 'lib/ruby_parser30.rb', line 9555

def _reduce_122(val, _values, result)
                      lhs, call_op, (id, _line) = val

                      result = new_attrasgn lhs, id, call_op

    result
end

#_reduce_123(val, _values, result) ⇒ Object



9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
# File 'lib/ruby_parser30.rb', line 9563

def _reduce_123(val, _values, result)
                      expr, _, (id, _line) = val

                      if (self.in_def || self.in_single > 0) then
                        debug 7
                        yyerror "dynamic constant assignment"
                      end

                      l = expr.line
                      result = s(:const, s(:colon2, expr, id.to_sym).line(l)).line l

    result
end

#_reduce_124(val, _values, result) ⇒ Object



9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
# File 'lib/ruby_parser30.rb', line 9577

def _reduce_124(val, _values, result)
                      _, (id, l) = val

                      if (self.in_def || self.in_single > 0) then
                        debug 8
                        yyerror "dynamic constant assignment"
                      end

                      result = s(:const, s(:colon3, id.to_sym).line(l)).line l

    result
end

#_reduce_125(val, _values, result) ⇒ Object



9590
9591
9592
9593
9594
# File 'lib/ruby_parser30.rb', line 9590

def _reduce_125(val, _values, result)
                      self.backref_assign_error val[0]

    result
end

#_reduce_126(val, _values, result) ⇒ Object



9596
9597
9598
9599
9600
# File 'lib/ruby_parser30.rb', line 9596

def _reduce_126(val, _values, result)
                      yyerror "class/module name must be CONSTANT"

    result
end

#_reduce_128(val, _values, result) ⇒ Object

reduce 127 omitted



9604
9605
9606
9607
9608
# File 'lib/ruby_parser30.rb', line 9604

def _reduce_128(val, _values, result)
                      result = wrap :colon3, val[1]

    result
end

#_reduce_129(val, _values, result) ⇒ Object



9610
9611
9612
9613
9614
9615
# File 'lib/ruby_parser30.rb', line 9610

def _reduce_129(val, _values, result)
                      (id, line), = val
                      result = [id.to_sym, line] # TODO: sexp?

    result
end

#_reduce_13(val, _values, result) ⇒ Object



8752
8753
8754
8755
8756
8757
8758
# File 'lib/ruby_parser30.rb', line 8752

def _reduce_13(val, _values, result)
                      body, resc, _, _, els, ens = val

                      result = new_body [body, resc, els, ens]

    result
end

#_reduce_130(val, _values, result) ⇒ Object



9617
9618
9619
9620
9621
9622
9623
9624
# File 'lib/ruby_parser30.rb', line 9617

def _reduce_130(val, _values, result)
                      pval, _, (name, _line) = val

                      result = s(:colon2, pval, name.to_sym)
                      result.line pval.line

    result
end

#_reduce_134(val, _values, result) ⇒ Object

reduce 133 omitted



9632
9633
9634
9635
9636
# File 'lib/ruby_parser30.rb', line 9632

def _reduce_134(val, _values, result)
                      lexer.lex_state = EXPR_END

    result
end

#_reduce_136(val, _values, result) ⇒ Object

reduce 135 omitted



9640
9641
9642
9643
9644
# File 'lib/ruby_parser30.rb', line 9640

def _reduce_136(val, _values, result)
                      result = wrap :lit, val[0]

    result
end

#_reduce_138(val, _values, result) ⇒ Object

reduce 137 omitted



9648
9649
9650
9651
9652
# File 'lib/ruby_parser30.rb', line 9648

def _reduce_138(val, _values, result)
                      result = new_undef val[0]

    result
end

#_reduce_139(val, _values, result) ⇒ Object



9654
9655
9656
9657
9658
# File 'lib/ruby_parser30.rb', line 9654

def _reduce_139(val, _values, result)
                      lexer.lex_state = EXPR_FNAME

    result
end

#_reduce_14(val, _values, result) ⇒ Object



8760
8761
8762
8763
8764
8765
8766
# File 'lib/ruby_parser30.rb', line 8760

def _reduce_14(val, _values, result)
                      body, resc, ens = val

                      result = new_body [body, resc, nil, ens]

    result
end

#_reduce_140(val, _values, result) ⇒ Object



9660
9661
9662
9663
9664
# File 'lib/ruby_parser30.rb', line 9660

def _reduce_140(val, _values, result)
                      result = new_undef val[0], val[3]

    result
end

#_reduce_15(val, _values, result) ⇒ Object



8768
8769
8770
8771
8772
# File 'lib/ruby_parser30.rb', line 8768

def _reduce_15(val, _values, result)
                      result = new_compstmt val

    result
end

#_reduce_18(val, _values, result) ⇒ Object

reduce 17 omitted



8778
8779
8780
8781
8782
# File 'lib/ruby_parser30.rb', line 8778

def _reduce_18(val, _values, result)
                      result = self.block_append val[0], val[2]

    result
end

#_reduce_19(val, _values, result) ⇒ Object



8784
8785
8786
8787
8788
8789
# File 'lib/ruby_parser30.rb', line 8784

def _reduce_19(val, _values, result)
                      result = val[1]
                      debug 2

    result
end

#_reduce_2(val, _values, result) ⇒ Object



8686
8687
8688
8689
8690
8691
8692
8693
# File 'lib/ruby_parser30.rb', line 8686

def _reduce_2(val, _values, result)
                      result = new_compstmt val

                      lexer.cond.pop # local_pop
                      lexer.cmdarg.pop

    result
end

#_reduce_21(val, _values, result) ⇒ Object

reduce 20 omitted



8793
8794
8795
8796
8797
# File 'lib/ruby_parser30.rb', line 8793

def _reduce_21(val, _values, result)
                      yyerror "BEGIN is permitted only at toplevel"

    result
end

#_reduce_212(val, _values, result) ⇒ Object

reduce 211 omitted



9808
9809
9810
9811
9812
# File 'lib/ruby_parser30.rb', line 9808

def _reduce_212(val, _values, result)
                      result = new_assign val[0], val[2]

    result
end

#_reduce_213(val, _values, result) ⇒ Object



9814
9815
9816
9817
9818
# File 'lib/ruby_parser30.rb', line 9814

def _reduce_213(val, _values, result)
                      result = new_op_asgn val

    result
end

#_reduce_214(val, _values, result) ⇒ Object



9820
9821
9822
9823
9824
# File 'lib/ruby_parser30.rb', line 9820

def _reduce_214(val, _values, result)
                      result = new_op_asgn1 val

    result
end

#_reduce_215(val, _values, result) ⇒ Object



9826
9827
9828
9829
9830
# File 'lib/ruby_parser30.rb', line 9826

def _reduce_215(val, _values, result)
                      result = new_op_asgn2 val

    result
end

#_reduce_216(val, _values, result) ⇒ Object



9832
9833
9834
9835
9836
# File 'lib/ruby_parser30.rb', line 9832

def _reduce_216(val, _values, result)
                      result = new_op_asgn2 val

    result
end

#_reduce_217(val, _values, result) ⇒ Object



9838
9839
9840
9841
9842
9843
9844
# File 'lib/ruby_parser30.rb', line 9838

def _reduce_217(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_218(val, _values, result) ⇒ Object



9846
9847
9848
9849
9850
9851
9852
9853
# File 'lib/ruby_parser30.rb', line 9846

def _reduce_218(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_219(val, _values, result) ⇒ Object



9855
9856
9857
9858
9859
9860
9861
9862
# File 'lib/ruby_parser30.rb', line 9855

def _reduce_219(val, _values, result)
                      _, lhs, op, rhs = val

                      lhs = wrap :colon3, lhs
                      result = new_const_op_asgn [lhs, op, rhs]

    result
end

#_reduce_22(val, _values, result) ⇒ Object



8799
8800
8801
8802
8803
# File 'lib/ruby_parser30.rb', line 8799

def _reduce_22(val, _values, result)
                      result = val[2] # wtf?

    result
end

#_reduce_220(val, _values, result) ⇒ Object



9864
9865
9866
9867
9868
9869
9870
# File 'lib/ruby_parser30.rb', line 9864

def _reduce_220(val, _values, result)
                      # TODO: lhs = var_field val[0]
                      asgn = new_op_asgn val
                      result = self.backref_assign_error asgn

    result
end

#_reduce_221(val, _values, result) ⇒ Object



9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
# File 'lib/ruby_parser30.rb', line 9872

def _reduce_221(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_222(val, _values, result) ⇒ Object



9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
# File 'lib/ruby_parser30.rb', line 9883

def _reduce_222(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_223(val, _values, result) ⇒ Object



9894
9895
9896
9897
9898
9899
9900
9901
# File 'lib/ruby_parser30.rb', line 9894

def _reduce_223(val, _values, result)
                      v1, _ = val
                      v2 = nil

                      result = s(:dot2, v1, v2).line v1.line

    result
end

#_reduce_224(val, _values, result) ⇒ Object



9903
9904
9905
9906
9907
9908
9909
9910
# File 'lib/ruby_parser30.rb', line 9903

def _reduce_224(val, _values, result)
                      v1, _ = val
                      v2 = nil

                      result = s(:dot3, v1, v2).line v1.line

    result
end

#_reduce_225(val, _values, result) ⇒ Object



9912
9913
9914
9915
9916
9917
9918
9919
# File 'lib/ruby_parser30.rb', line 9912

def _reduce_225(val, _values, result)
                      _, v2, = val
                      v1 = nil

                      result = s(:dot2, v1, v2).line v2.line

    result
end

#_reduce_226(val, _values, result) ⇒ Object



9921
9922
9923
9924
9925
9926
9927
9928
# File 'lib/ruby_parser30.rb', line 9921

def _reduce_226(val, _values, result)
                      _, v2 = val
                      v1 = nil

                      result = s(:dot3, v1, v2).line v2.line

    result
end

#_reduce_227(val, _values, result) ⇒ Object



9930
9931
9932
9933
9934
# File 'lib/ruby_parser30.rb', line 9930

def _reduce_227(val, _values, result)
                      result = new_call val[0], :+, argl(val[2])

    result
end

#_reduce_228(val, _values, result) ⇒ Object



9936
9937
9938
9939
9940
# File 'lib/ruby_parser30.rb', line 9936

def _reduce_228(val, _values, result)
                      result = new_call val[0], :-, argl(val[2])

    result
end

#_reduce_229(val, _values, result) ⇒ Object



9942
9943
9944
9945
9946
# File 'lib/ruby_parser30.rb', line 9942

def _reduce_229(val, _values, result)
                      result = new_call val[0], :*, argl(val[2])

    result
end

#_reduce_23(val, _values, result) ⇒ Object



8805
8806
8807
8808
8809
# File 'lib/ruby_parser30.rb', line 8805

def _reduce_23(val, _values, result)
                      lexer.lex_state = EXPR_FNAME

    result
end

#_reduce_230(val, _values, result) ⇒ Object



9948
9949
9950
9951
9952
# File 'lib/ruby_parser30.rb', line 9948

def _reduce_230(val, _values, result)
                      result = new_call val[0], :"/", argl(val[2])

    result
end

#_reduce_231(val, _values, result) ⇒ Object



9954
9955
9956
9957
9958
# File 'lib/ruby_parser30.rb', line 9954

def _reduce_231(val, _values, result)
                      result = new_call val[0], :"%", argl(val[2])

    result
end

#_reduce_232(val, _values, result) ⇒ Object



9960
9961
9962
9963
9964
# File 'lib/ruby_parser30.rb', line 9960

def _reduce_232(val, _values, result)
                      result = new_call val[0], :**, argl(val[2])

    result
end

#_reduce_233(val, _values, result) ⇒ Object



9966
9967
9968
9969
9970
9971
9972
9973
# File 'lib/ruby_parser30.rb', line 9966

def _reduce_233(val, _values, result)
                      _, num, _, arg = val
                      lit = wrap :lit, num
                      result = new_call(new_call(lit, :"**", argl(arg)), :"-@")


    result
end

#_reduce_234(val, _values, result) ⇒ Object



9975
9976
9977
9978
9979
# File 'lib/ruby_parser30.rb', line 9975

def _reduce_234(val, _values, result)
                      result = new_call val[1], :"+@"

    result
end

#_reduce_235(val, _values, result) ⇒ Object



9981
9982
9983
9984
9985
# File 'lib/ruby_parser30.rb', line 9981

def _reduce_235(val, _values, result)
                      result = new_call val[1], :"-@"

    result
end

#_reduce_236(val, _values, result) ⇒ Object



9987
9988
9989
9990
9991
# File 'lib/ruby_parser30.rb', line 9987

def _reduce_236(val, _values, result)
                      result = new_call val[0], :"|", argl(val[2])

    result
end

#_reduce_237(val, _values, result) ⇒ Object



9993
9994
9995
9996
9997
# File 'lib/ruby_parser30.rb', line 9993

def _reduce_237(val, _values, result)
                      result = new_call val[0], :"^", argl(val[2])

    result
end

#_reduce_238(val, _values, result) ⇒ Object



9999
10000
10001
10002
10003
# File 'lib/ruby_parser30.rb', line 9999

def _reduce_238(val, _values, result)
                      result = new_call val[0], :"&", argl(val[2])

    result
end

#_reduce_239(val, _values, result) ⇒ Object



10005
10006
10007
10008
10009
# File 'lib/ruby_parser30.rb', line 10005

def _reduce_239(val, _values, result)
                      result = new_call val[0], :"<=>", argl(val[2])

    result
end

#_reduce_24(val, _values, result) ⇒ Object



8811
8812
8813
8814
8815
8816
# File 'lib/ruby_parser30.rb', line 8811

def _reduce_24(val, _values, result)
                      (_, line), lhs, _, rhs = val
                      result = s(:alias, lhs, rhs).line(line).line line

    result
end

#_reduce_241(val, _values, result) ⇒ Object

reduce 240 omitted



10013
10014
10015
10016
10017
# File 'lib/ruby_parser30.rb', line 10013

def _reduce_241(val, _values, result)
                      result = new_call val[0], :"==", argl(val[2])

    result
end

#_reduce_242(val, _values, result) ⇒ Object



10019
10020
10021
10022
10023
# File 'lib/ruby_parser30.rb', line 10019

def _reduce_242(val, _values, result)
                      result = new_call val[0], :"===", argl(val[2])

    result
end

#_reduce_243(val, _values, result) ⇒ Object



10025
10026
10027
10028
10029
# File 'lib/ruby_parser30.rb', line 10025

def _reduce_243(val, _values, result)
                      result = new_call val[0], :"!=", argl(val[2])

    result
end

#_reduce_244(val, _values, result) ⇒ Object



10031
10032
10033
10034
10035
10036
# File 'lib/ruby_parser30.rb', line 10031

def _reduce_244(val, _values, result)
                      lhs, _, rhs = val
                      result = new_match lhs, rhs

    result
end

#_reduce_245(val, _values, result) ⇒ Object



10038
10039
10040
10041
10042
10043
# File 'lib/ruby_parser30.rb', line 10038

def _reduce_245(val, _values, result)
                      lhs, _, rhs = val
                      result = s(:not, new_match(lhs, rhs)).line lhs.line

    result
end

#_reduce_246(val, _values, result) ⇒ Object



10045
10046
10047
10048
10049
10050
10051
# File 'lib/ruby_parser30.rb', line 10045

def _reduce_246(val, _values, result)
                      _, arg = val
                      result = new_call arg, :"!"
                      result.line arg.line

    result
end

#_reduce_247(val, _values, result) ⇒ Object



10053
10054
10055
10056
10057
# File 'lib/ruby_parser30.rb', line 10053

def _reduce_247(val, _values, result)
                      result = new_call value_expr(val[1]), :"~"

    result
end

#_reduce_248(val, _values, result) ⇒ Object



10059
10060
10061
10062
10063
10064
10065
# File 'lib/ruby_parser30.rb', line 10059

def _reduce_248(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_249(val, _values, result) ⇒ Object



10067
10068
10069
10070
10071
10072
10073
# File 'lib/ruby_parser30.rb', line 10067

def _reduce_249(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_25(val, _values, result) ⇒ Object



8818
8819
8820
8821
8822
8823
# File 'lib/ruby_parser30.rb', line 8818

def _reduce_25(val, _values, result)
                      (_, line), (lhs, _), (rhs, _) = val
                      result = s(:valias, lhs.to_sym, rhs.to_sym).line line

    result
end

#_reduce_250(val, _values, result) ⇒ Object



10075
10076
10077
10078
10079
# File 'lib/ruby_parser30.rb', line 10075

def _reduce_250(val, _values, result)
                      result = logical_op :and, val[0], val[2]

    result
end

#_reduce_251(val, _values, result) ⇒ Object



10081
10082
10083
10084
10085
# File 'lib/ruby_parser30.rb', line 10081

def _reduce_251(val, _values, result)
                      result = logical_op :or, val[0], val[2]

    result
end

#_reduce_252(val, _values, result) ⇒ Object



10087
10088
10089
10090
10091
10092
# File 'lib/ruby_parser30.rb', line 10087

def _reduce_252(val, _values, result)
                      (_, line), _, arg = val
                      result = s(:defined, arg).line line

    result
end

#_reduce_253(val, _values, result) ⇒ Object



10094
10095
10096
10097
10098
10099
# File 'lib/ruby_parser30.rb', line 10094

def _reduce_253(val, _values, result)
                      c, _, t, _, _, f = val
                      result = s(:if, c, t, f).line c.line

    result
end

#_reduce_254(val, _values, result) ⇒ Object



10101
10102
10103
10104
10105
# File 'lib/ruby_parser30.rb', line 10101

def _reduce_254(val, _values, result)
                      result = new_endless_defn val

    result
end

#_reduce_255(val, _values, result) ⇒ Object



10107
10108
10109
10110
10111
# File 'lib/ruby_parser30.rb', line 10107

def _reduce_255(val, _values, result)
                      result = new_endless_defn val

    result
end

#_reduce_256(val, _values, result) ⇒ Object



10113
10114
10115
10116
10117
# File 'lib/ruby_parser30.rb', line 10113

def _reduce_256(val, _values, result)
                      result = new_endless_defs val

    result
end

#_reduce_257(val, _values, result) ⇒ Object



10119
10120
10121
10122
10123
# File 'lib/ruby_parser30.rb', line 10119

def _reduce_257(val, _values, result)
                      result = new_endless_defs val

    result
end

#_reduce_26(val, _values, result) ⇒ Object



8825
8826
8827
8828
8829
8830
# File 'lib/ruby_parser30.rb', line 8825

def _reduce_26(val, _values, result)
                      (_, line), (lhs, _), (rhs, _) = val
                      result = s(:valias, lhs.to_sym, :"$#{rhs}").line line

    result
end

#_reduce_263(val, _values, result) ⇒ Object

reduce 262 omitted



10135
10136
10137
10138
10139
10140
# File 'lib/ruby_parser30.rb', line 10135

def _reduce_263(val, _values, result)
                      lhs, (op, _), rhs = val
                      result = new_call lhs, op.to_sym, argl(rhs)

    result
end

#_reduce_264(val, _values, result) ⇒ Object



10142
10143
10144
10145
10146
10147
10148
# File 'lib/ruby_parser30.rb', line 10142

def _reduce_264(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_265(val, _values, result) ⇒ Object



10150
10151
10152
10153
10154
# File 'lib/ruby_parser30.rb', line 10150

def _reduce_265(val, _values, result)
                      result = value_expr(val[0])

    result
end

#_reduce_267(val, _values, result) ⇒ Object

reduce 266 omitted



10158
10159
10160
10161
10162
# File 'lib/ruby_parser30.rb', line 10158

def _reduce_267(val, _values, result)
                      result = args [val[0]]

    result
end

#_reduce_268(val, _values, result) ⇒ Object



10164
10165
10166
10167
10168
# File 'lib/ruby_parser30.rb', line 10164

def _reduce_268(val, _values, result)
                      result = args [val[0], array_to_hash(val[2])]

    result
end

#_reduce_269(val, _values, result) ⇒ Object



10170
10171
10172
10173
10174
# File 'lib/ruby_parser30.rb', line 10170

def _reduce_269(val, _values, result)
                      result = args [array_to_hash(val[0])]

    result
end

#_reduce_27(val, _values, result) ⇒ Object



8832
8833
8834
8835
8836
# File 'lib/ruby_parser30.rb', line 8832

def _reduce_27(val, _values, result)
                      yyerror "can't make alias for the number variables"

    result
end

#_reduce_271(val, _values, result) ⇒ Object

reduce 270 omitted



10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
# File 'lib/ruby_parser30.rb', line 10178

def _reduce_271(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_272(val, _values, result) ⇒ Object



10189
10190
10191
10192
10193
10194
10195
10196
# File 'lib/ruby_parser30.rb', line 10189

def _reduce_272(val, _values, result)
                      _, args, (_, line_max) = val

                      result = args
                      result.line_max = line_max if args

    result
end

#_reduce_273(val, _values, result) ⇒ Object



10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
# File 'lib/ruby_parser30.rb', line 10198

def _reduce_273(val, _values, result)
                      yyerror "Unexpected ..." unless
                        self.lexer.is_local_id(:"*")  &&
                        self.lexer.is_local_id(:"**") &&
                        self.lexer.is_local_id(:"&")

                      result = call_args val

    result
end

#_reduce_274(val, _values, result) ⇒ Object



10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
# File 'lib/ruby_parser30.rb', line 10209

def _reduce_274(val, _values, result)
                      yyerror "Unexpected ..." unless
                        self.lexer.is_local_id(:"*")  &&
                        self.lexer.is_local_id(:"**") &&
                        self.lexer.is_local_id(:"&")

                      result = call_args val

    result
end

#_reduce_279(val, _values, result) ⇒ Object

reduce 278 omitted



10228
10229
10230
10231
10232
# File 'lib/ruby_parser30.rb', line 10228

def _reduce_279(val, _values, result)
                      result = args val

    result
end

#_reduce_28(val, _values, result) ⇒ Object



8838
8839
8840
8841
8842
# File 'lib/ruby_parser30.rb', line 8838

def _reduce_28(val, _values, result)
                      result = val[1]

    result
end

#_reduce_280(val, _values, result) ⇒ Object



10234
10235
10236
10237
10238
# File 'lib/ruby_parser30.rb', line 10234

def _reduce_280(val, _values, result)
                      result = args [val[0], array_to_hash(val[2])]

    result
end

#_reduce_281(val, _values, result) ⇒ Object



10240
10241
10242
10243
10244
# File 'lib/ruby_parser30.rb', line 10240

def _reduce_281(val, _values, result)
                      result = args [array_to_hash(val[0])]

    result
end

#_reduce_282(val, _values, result) ⇒ Object



10246
10247
10248
10249
10250
10251
# File 'lib/ruby_parser30.rb', line 10246

def _reduce_282(val, _values, result)
                      warning "parenthesize argument(s) for future version"
                      result = call_args val

    result
end

#_reduce_283(val, _values, result) ⇒ Object



10253
10254
10255
10256
10257
# File 'lib/ruby_parser30.rb', line 10253

def _reduce_283(val, _values, result)
                      result = call_args val

    result
end

#_reduce_284(val, _values, result) ⇒ Object



10259
10260
10261
10262
10263
# File 'lib/ruby_parser30.rb', line 10259

def _reduce_284(val, _values, result)
                      result = call_args [array_to_hash(val[0]), val[1]]

    result
end

#_reduce_285(val, _values, result) ⇒ Object



10265
10266
10267
10268
10269
# File 'lib/ruby_parser30.rb', line 10265

def _reduce_285(val, _values, result)
                      result = call_args [val[0], array_to_hash(val[2]), val[3]]

    result
end

#_reduce_286(val, _values, result) ⇒ Object



10271
10272
10273
10274
10275
# File 'lib/ruby_parser30.rb', line 10271

def _reduce_286(val, _values, result)
                      result = call_args val

    result
end

#_reduce_287(val, _values, result) ⇒ Object



10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
# File 'lib/ruby_parser30.rb', line 10277

def _reduce_287(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_288(val, _values, result) ⇒ Object



10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
# File 'lib/ruby_parser30.rb', line 10297

def _reduce_288(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_289(val, _values, result) ⇒ Object



10317
10318
10319
10320
10321
10322
# File 'lib/ruby_parser30.rb', line 10317

def _reduce_289(val, _values, result)
                      _, arg = val
                      result = s(:block_pass, arg).line arg.line

    result
end

#_reduce_29(val, _values, result) ⇒ Object



8844
8845
8846
8847
8848
8849
# File 'lib/ruby_parser30.rb', line 8844

def _reduce_29(val, _values, result)
                      t, _, c = val
                      result = new_if c, t, nil

    result
end

#_reduce_290(val, _values, result) ⇒ Object



10324
10325
10326
10327
10328
# File 'lib/ruby_parser30.rb', line 10324

def _reduce_290(val, _values, result)
                      result = val[1]

    result
end

#_reduce_292(val, _values, result) ⇒ Object

reduce 291 omitted



10332
10333
10334
10335
10336
10337
10338
10339
# File 'lib/ruby_parser30.rb', line 10332

def _reduce_292(val, _values, result)
                      arg, = val
                      lineno = arg.line

                      result = s(:array, arg).line lineno

    result
end

#_reduce_293(val, _values, result) ⇒ Object



10341
10342
10343
10344
10345
10346
# File 'lib/ruby_parser30.rb', line 10341

def _reduce_293(val, _values, result)
                      _, arg = val
                      result = s(:array, s(:splat, arg).line(arg.line)).line arg.line

    result
end

#_reduce_294(val, _values, result) ⇒ Object



10348
10349
10350
10351
10352
10353
# File 'lib/ruby_parser30.rb', line 10348

def _reduce_294(val, _values, result)
                      args, _, id = val
                      result = self.list_append args, id

    result
end

#_reduce_295(val, _values, result) ⇒ Object



10355
10356
10357
10358
10359
10360
# File 'lib/ruby_parser30.rb', line 10355

def _reduce_295(val, _values, result)
                      args, _, (_, line), id = val
                      result = self.list_append args, s(:splat, id).line(line)

    result
end

#_reduce_296(val, _values, result) ⇒ Object



10362
10363
10364
10365
10366
# File 'lib/ruby_parser30.rb', line 10362

def _reduce_296(val, _values, result)
                      result = new_masgn_arg val[0]

    result
end

#_reduce_297(val, _values, result) ⇒ Object



10368
10369
10370
10371
10372
# File 'lib/ruby_parser30.rb', line 10368

def _reduce_297(val, _values, result)
                      result = new_masgn_arg val[0], :wrap

    result
end

#_reduce_298(val, _values, result) ⇒ Object



10374
10375
10376
10377
10378
# File 'lib/ruby_parser30.rb', line 10374

def _reduce_298(val, _values, result)
                      result = val[0] << val[2]

    result
end

#_reduce_299(val, _values, result) ⇒ Object



10380
10381
10382
10383
10384
10385
# File 'lib/ruby_parser30.rb', line 10380

def _reduce_299(val, _values, result)
                      arg, _, _, splat = val
                      result = self.arg_concat arg, splat

    result
end

#_reduce_3(val, _values, result) ⇒ Object



8695
8696
8697
8698
8699
8700
# File 'lib/ruby_parser30.rb', line 8695

def _reduce_3(val, _values, result)
                      stmt, _ = val
                      result = stmt

    result
end

#_reduce_30(val, _values, result) ⇒ Object



8851
8852
8853
8854
8855
8856
# File 'lib/ruby_parser30.rb', line 8851

def _reduce_30(val, _values, result)
                      f, _, c = val
                      result = new_if c, nil, f

    result
end

#_reduce_300(val, _values, result) ⇒ Object



10387
10388
10389
10390
10391
10392
# File 'lib/ruby_parser30.rb', line 10387

def _reduce_300(val, _values, result)
                      _, arg = val
                      result = s(:splat, arg).line arg.line

    result
end

#_reduce_31(val, _values, result) ⇒ Object



8858
8859
8860
8861
8862
8863
# File 'lib/ruby_parser30.rb', line 8858

def _reduce_31(val, _values, result)
                      e, _, c = val
                      result = new_while e, c, true

    result
end

#_reduce_311(val, _values, result) ⇒ Object

reduce 310 omitted



10414
10415
10416
10417
10418
10419
10420
# File 'lib/ruby_parser30.rb', line 10414

def _reduce_311(val, _values, result)
                      (msg, line), = val
                      result = new_call nil, msg.to_sym
                      result.line line

    result
end

#_reduce_312(val, _values, result) ⇒ Object



10422
10423
10424
10425
10426
# File 'lib/ruby_parser30.rb', line 10422

def _reduce_312(val, _values, result)
                      lexer.cmdarg.push false

    result
end

#_reduce_313(val, _values, result) ⇒ Object



10428
10429
10430
10431
10432
10433
# File 'lib/ruby_parser30.rb', line 10428

def _reduce_313(val, _values, result)
                      lexer.cmdarg.pop
                      result = new_begin val

    result
end

#_reduce_314(val, _values, result) ⇒ Object



10435
10436
10437
10438
10439
# File 'lib/ruby_parser30.rb', line 10435

def _reduce_314(val, _values, result)
                      lexer.lex_state = EXPR_ENDARG

    result
end

#_reduce_315(val, _values, result) ⇒ Object



10441
10442
10443
10444
10445
10446
# File 'lib/ruby_parser30.rb', line 10441

def _reduce_315(val, _values, result)
                      (_, line), _, _ = val
                      result = s(:begin).line line

    result
end

#_reduce_316(val, _values, result) ⇒ Object



10448
10449
10450
10451
10452
# File 'lib/ruby_parser30.rb', line 10448

def _reduce_316(val, _values, result)
                      lexer.lex_state = EXPR_ENDARG

    result
end

#_reduce_317(val, _values, result) ⇒ Object



10454
10455
10456
10457
10458
10459
10460
# File 'lib/ruby_parser30.rb', line 10454

def _reduce_317(val, _values, result)
                      _, stmt, _, _, = val
                      # warning "(...) interpreted as grouped expression"
                      result = stmt

    result
end

#_reduce_318(val, _values, result) ⇒ Object



10462
10463
10464
10465
10466
10467
10468
# File 'lib/ruby_parser30.rb', line 10462

def _reduce_318(val, _values, result)
                      (_, line), stmt, _ = val
                      result = stmt || s(:nil).line(line)
                      result.paren = true

    result
end

#_reduce_319(val, _values, result) ⇒ Object



10470
10471
10472
10473
10474
10475
10476
# File 'lib/ruby_parser30.rb', line 10470

def _reduce_319(val, _values, result)
                      expr, _, (id, _line) = val

                      result = s(:colon2, expr, id.to_sym).line expr.line

    result
end

#_reduce_32(val, _values, result) ⇒ Object



8865
8866
8867
8868
8869
8870
# File 'lib/ruby_parser30.rb', line 8865

def _reduce_32(val, _values, result)
                      e, _, c = val
                      result = new_until e, c, true

    result
end

#_reduce_320(val, _values, result) ⇒ Object



10478
10479
10480
10481
10482
# File 'lib/ruby_parser30.rb', line 10478

def _reduce_320(val, _values, result)
                      result = wrap :colon3, val[1]

    result
end

#_reduce_321(val, _values, result) ⇒ Object



10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
# File 'lib/ruby_parser30.rb', line 10484

def _reduce_321(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_322(val, _values, result) ⇒ Object



10495
10496
10497
10498
10499
# File 'lib/ruby_parser30.rb', line 10495

def _reduce_322(val, _values, result)
                      result = self.lexer.lineno

    result
end

#_reduce_323(val, _values, result) ⇒ Object



10501
10502
10503
10504
10505
# File 'lib/ruby_parser30.rb', line 10501

def _reduce_323(val, _values, result)
                      result = new_hash val

    result
end

#_reduce_324(val, _values, result) ⇒ Object



10507
10508
10509
10510
10511
10512
# File 'lib/ruby_parser30.rb', line 10507

def _reduce_324(val, _values, result)
                      (_, line), = val
                      result = s(:return).line line

    result
end

#_reduce_325(val, _values, result) ⇒ Object



10514
10515
10516
10517
10518
10519
10520
# File 'lib/ruby_parser30.rb', line 10514

def _reduce_325(val, _values, result)
                      (_, line), _, args, _ = val

                      result = new_yield(args).line line

    result
end

#_reduce_326(val, _values, result) ⇒ Object



10522
10523
10524
10525
10526
10527
10528
# File 'lib/ruby_parser30.rb', line 10522

def _reduce_326(val, _values, result)
                      (_, line), _, _ = val

                      result = new_yield.line line

    result
end

#_reduce_327(val, _values, result) ⇒ Object



10530
10531
10532
10533
10534
10535
10536
# File 'lib/ruby_parser30.rb', line 10530

def _reduce_327(val, _values, result)
                      (_, line), = val

                      result = new_yield.line line

    result
end

#_reduce_328(val, _values, result) ⇒ Object



10538
10539
10540
10541
10542
10543
10544
# File 'lib/ruby_parser30.rb', line 10538

def _reduce_328(val, _values, result)
                      (_, line), _, _, arg, _ = val

                      result = s(:defined, arg).line line

    result
end

#_reduce_329(val, _values, result) ⇒ Object



10546
10547
10548
10549
10550
10551
# File 'lib/ruby_parser30.rb', line 10546

def _reduce_329(val, _values, result)
                      _, _, lhs, _ = val
                      result = new_call lhs, :"!"

    result
end

#_reduce_33(val, _values, result) ⇒ Object



8872
8873
8874
8875
8876
8877
8878
8879
# File 'lib/ruby_parser30.rb', line 8872

def _reduce_33(val, _values, result)
                      body, _, resbody = val

                      resbody = new_resbody s(:array).line(resbody.line), resbody
                      result = new_rescue body, resbody

    result
end

#_reduce_330(val, _values, result) ⇒ Object



10553
10554
10555
10556
10557
# File 'lib/ruby_parser30.rb', line 10553

def _reduce_330(val, _values, result)
                      debug 9

    result
end

#_reduce_331(val, _values, result) ⇒ Object



10559
10560
10561
10562
10563
10564
10565
10566
10567
# File 'lib/ruby_parser30.rb', line 10559

def _reduce_331(val, _values, result)
                      call, iter = val

                      iter.insert 1, call
                      result = iter
                      # FIX: probably not: call.line = iter.line

    result
end

#_reduce_333(val, _values, result) ⇒ Object

reduce 332 omitted



10571
10572
10573
10574
10575
10576
10577
10578
# File 'lib/ruby_parser30.rb', line 10571

def _reduce_333(val, _values, result)
                      call, iter = val[0], val[1]
                      block_dup_check call, iter
                      iter.insert 1, call # FIX
                      result = iter

    result
end

#_reduce_334(val, _values, result) ⇒ Object



10580
10581
10582
10583
10584
10585
# File 'lib/ruby_parser30.rb', line 10580

def _reduce_334(val, _values, result)
                      expr, = val
                      result = expr

    result
end

#_reduce_335(val, _values, result) ⇒ Object



10587
10588
10589
10590
10591
10592
# File 'lib/ruby_parser30.rb', line 10587

def _reduce_335(val, _values, result)
                      _, c, _, t, f, _ = val
                      result = new_if c, t, f

    result
end

#_reduce_336(val, _values, result) ⇒ Object



10594
10595
10596
10597
10598
10599
# File 'lib/ruby_parser30.rb', line 10594

def _reduce_336(val, _values, result)
                      _, c, _, t, f, _ = val
                      result = new_if c, f, t

    result
end

#_reduce_337(val, _values, result) ⇒ Object



10601
10602
10603
10604
10605
10606
# File 'lib/ruby_parser30.rb', line 10601

def _reduce_337(val, _values, result)
                      _, cond, body, _ = val
                      result = new_while body, cond, true

    result
end

#_reduce_338(val, _values, result) ⇒ Object



10608
10609
10610
10611
10612
10613
# File 'lib/ruby_parser30.rb', line 10608

def _reduce_338(val, _values, result)
                      _, cond, body, _ = val
                      result = new_until body, cond, true

    result
end

#_reduce_339(val, _values, result) ⇒ Object



10615
10616
10617
10618
10619
10620
# File 'lib/ruby_parser30.rb', line 10615

def _reduce_339(val, _values, result)
                      (_, line), expr, _, body, _ = val
                      result = new_case expr, body, line

    result
end

#_reduce_34(val, _values, result) ⇒ Object



8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
# File 'lib/ruby_parser30.rb', line 8881

def _reduce_34(val, _values, result)
                      (_, line), _, stmt, _ = val

                      if (self.in_def || self.in_single > 0) then
                        debug 3
                        yyerror "END in method; use at_exit"
                      end

                      result = new_iter s(:postexe).line(line), 0, stmt

    result
end

#_reduce_340(val, _values, result) ⇒ Object



10622
10623
10624
10625
10626
10627
# File 'lib/ruby_parser30.rb', line 10622

def _reduce_340(val, _values, result)
                      (_, line), _, body, _ = val
                      result = new_case nil, body, line

    result
end

#_reduce_341(val, _values, result) ⇒ Object



10629
10630
10631
10632
10633
10634
10635
# File 'lib/ruby_parser30.rb', line 10629

def _reduce_341(val, _values, result)
                      (_, line), expr, _, body, _ = val

                      result = new_case expr, body, line

    result
end

#_reduce_342(val, _values, result) ⇒ Object



10637
10638
10639
10640
10641
10642
# File 'lib/ruby_parser30.rb', line 10637

def _reduce_342(val, _values, result)
                      _, var, _, iter, body, _ = val
                      result = new_for iter, var, body

    result
end

#_reduce_343(val, _values, result) ⇒ Object



10644
10645
10646
10647
10648
10649
10650
10651
# File 'lib/ruby_parser30.rb', line 10644

def _reduce_343(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_344(val, _values, result) ⇒ Object



10653
10654
10655
10656
10657
10658
# File 'lib/ruby_parser30.rb', line 10653

def _reduce_344(val, _values, result)
                      result = new_class val
                      self.env.unextend

    result
end

#_reduce_345(val, _values, result) ⇒ Object



10660
10661
10662
10663
10664
10665
# File 'lib/ruby_parser30.rb', line 10660

def _reduce_345(val, _values, result)
                      result = self.in_def
                      self.in_def = false

    result
end

#_reduce_346(val, _values, result) ⇒ Object



10667
10668
10669
10670
10671
10672
10673
# File 'lib/ruby_parser30.rb', line 10667

def _reduce_346(val, _values, result)
                      result = self.in_single
                      self.in_single = 0
                      self.env.extend

    result
end

#_reduce_347(val, _values, result) ⇒ Object



10675
10676
10677
10678
10679
10680
# File 'lib/ruby_parser30.rb', line 10675

def _reduce_347(val, _values, result)
                      result = new_sclass val
                      self.env.unextend

    result
end

#_reduce_348(val, _values, result) ⇒ Object



10682
10683
10684
10685
10686
10687
10688
10689
# File 'lib/ruby_parser30.rb', line 10682

def _reduce_348(val, _values, result)
                      yyerror "module definition in method body" if
                        self.in_def or self.in_single > 0

                      self.env.extend

    result
end

#_reduce_349(val, _values, result) ⇒ Object



10691
10692
10693
10694
10695
10696
# File 'lib/ruby_parser30.rb', line 10691

def _reduce_349(val, _values, result)
                      result = new_module val
                      self.env.unextend

    result
end

#_reduce_350(val, _values, result) ⇒ Object



10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
# File 'lib/ruby_parser30.rb', line 10698

def _reduce_350(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_351(val, _values, result) ⇒ Object



10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
# File 'lib/ruby_parser30.rb', line 10709

def _reduce_351(val, _values, result)
                      result, in_def = new_defs val

                      lexer.cond.pop # group = local_pop
                      lexer.cmdarg.pop
                      self.env.unextend
                      self.in_def = in_def

                      self.in_single -= 1

                      # TODO: restore cur_arg ? what's cur_arg?

    result
end

#_reduce_352(val, _values, result) ⇒ Object



10724
10725
10726
10727
10728
10729
# File 'lib/ruby_parser30.rb', line 10724

def _reduce_352(val, _values, result)
                      (_, line), = val
                      result = s(:break).line line

    result
end

#_reduce_353(val, _values, result) ⇒ Object



10731
10732
10733
10734
10735
10736
# File 'lib/ruby_parser30.rb', line 10731

def _reduce_353(val, _values, result)
                      (_, line), = val
                      result = s(:next).line line

    result
end

#_reduce_354(val, _values, result) ⇒ Object



10738
10739
10740
10741
10742
10743
# File 'lib/ruby_parser30.rb', line 10738

def _reduce_354(val, _values, result)
                      (_, line), = val
                      result = s(:redo).line line

    result
end

#_reduce_355(val, _values, result) ⇒ Object



10745
10746
10747
10748
10749
10750
# File 'lib/ruby_parser30.rb', line 10745

def _reduce_355(val, _values, result)
                      (_, line), = val
                      result = s(:retry).line line

    result
end

#_reduce_356(val, _values, result) ⇒ Object



10752
10753
10754
10755
10756
# File 'lib/ruby_parser30.rb', line 10752

def _reduce_356(val, _values, result)
                      result = value_expr(val[0])

    result
end

#_reduce_36(val, _values, result) ⇒ Object

reduce 35 omitted



8896
8897
8898
8899
8900
# File 'lib/ruby_parser30.rb', line 8896

def _reduce_36(val, _values, result)
                      result = new_masgn val[0], val[2], :wrap

    result
end

#_reduce_364(val, _values, result) ⇒ Object

reduce 363 omitted



10772
10773
10774
10775
10776
# File 'lib/ruby_parser30.rb', line 10772

def _reduce_364(val, _values, result)
                      result << self.lexer.comment

    result
end

#_reduce_365(val, _values, result) ⇒ Object



10778
10779
10780
10781
10782
# File 'lib/ruby_parser30.rb', line 10778

def _reduce_365(val, _values, result)
                      result << self.lexer.comment

    result
end

#_reduce_366(val, _values, result) ⇒ Object



10784
10785
10786
10787
10788
10789
# File 'lib/ruby_parser30.rb', line 10784

def _reduce_366(val, _values, result)
                      self.in_argdef = true
                      result << self.lexer.comment

    result
end

#_reduce_37(val, _values, result) ⇒ Object



8902
8903
8904
8905
8906
8907
8908
# File 'lib/ruby_parser30.rb', line 8902

def _reduce_37(val, _values, result)
                      lhs, _, rhs = val

                      result = new_assign lhs, s(:svalue, rhs).line(rhs.line)

    result
end

#_reduce_38(val, _values, result) ⇒ Object



8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
# File 'lib/ruby_parser30.rb', line 8910

def _reduce_38(val, _values, result)
                      # unwraps s(:to_ary, rhs)
                      lhs, _, (_, rhs), _, resbody = val

                      resbody = new_resbody s(:array).line(resbody.line), resbody

                      result = new_masgn lhs, new_rescue(rhs, resbody), :wrap

    result
end

#_reduce_382(val, _values, result) ⇒ Object

reduce 381 omitted



10821
10822
10823
10824
10825
10826
10827
# File 'lib/ruby_parser30.rb', line 10821

def _reduce_382(val, _values, result)
                      (_, line), c, _, t, rest = val

                      result = s(:if, c, t, rest).line line

    result
end

#_reduce_384(val, _values, result) ⇒ Object

reduce 383 omitted



10831
10832
10833
10834
10835
# File 'lib/ruby_parser30.rb', line 10831

def _reduce_384(val, _values, result)
                      result = val[1]

    result
end

#_reduce_386(val, _values, result) ⇒ Object

reduce 385 omitted



10839
10840
10841
10842
10843
# File 'lib/ruby_parser30.rb', line 10839

def _reduce_386(val, _values, result)
                      val[0].delete_at 1 if val[0][1].nil? # HACK

    result
end

#_reduce_387(val, _values, result) ⇒ Object



10845
10846
10847
10848
10849
10850
10851
# File 'lib/ruby_parser30.rb', line 10845

def _reduce_387(val, _values, result)
                      (sym, line), = val

                      result = s(:dummy, sym).line line

    result
end

#_reduce_388(val, _values, result) ⇒ Object



10853
10854
10855
10856
10857
10858
# File 'lib/ruby_parser30.rb', line 10853

def _reduce_388(val, _values, result)
                      _, args, _ = val
                      result = args

    result
end

#_reduce_389(val, _values, result) ⇒ Object



10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
# File 'lib/ruby_parser30.rb', line 10860

def _reduce_389(val, _values, result)
                      arg, = val
                      line = arg.line

                      arg = arg.last if arg.sexp_type == :dummy

                      result = s(:array, arg).line line

    result
end

#_reduce_39(val, _values, result) ⇒ Object



8921
8922
8923
8924
8925
# File 'lib/ruby_parser30.rb', line 8921

def _reduce_39(val, _values, result)
                      result = new_masgn val[0], val[2]

    result
end

#_reduce_390(val, _values, result) ⇒ Object



10871
10872
10873
10874
10875
10876
10877
10878
10879
# File 'lib/ruby_parser30.rb', line 10871

def _reduce_390(val, _values, result)
                      args, _, arg = val

                      arg = arg.last if arg.sexp_type == :dummy

                      result = list_append args, arg

    result
end

#_reduce_391(val, _values, result) ⇒ Object



10881
10882
10883
10884
10885
10886
10887
# File 'lib/ruby_parser30.rb', line 10881

def _reduce_391(val, _values, result)
                      args, = val

                      result = block_var args

    result
end

#_reduce_392(val, _values, result) ⇒ Object



10889
10890
10891
10892
10893
10894
10895
# File 'lib/ruby_parser30.rb', line 10889

def _reduce_392(val, _values, result)
                      args, _, rest = val

                      result = block_var args, rest

    result
end

#_reduce_393(val, _values, result) ⇒ Object



10897
10898
10899
10900
10901
10902
10903
# File 'lib/ruby_parser30.rb', line 10897

def _reduce_393(val, _values, result)
                      lhs, _, splat, _, rhs = val

                      result = block_var lhs, splat, rhs

    result
end

#_reduce_394(val, _values, result) ⇒ Object



10905
10906
10907
10908
10909
10910
10911
# File 'lib/ruby_parser30.rb', line 10905

def _reduce_394(val, _values, result)
                      rest, = val

                      result = block_var rest

    result
end

#_reduce_395(val, _values, result) ⇒ Object



10913
10914
10915
10916
10917
10918
10919
# File 'lib/ruby_parser30.rb', line 10913

def _reduce_395(val, _values, result)
                      splat, _, rest = val

                      result = block_var splat, rest

    result
end

#_reduce_396(val, _values, result) ⇒ Object



10921
10922
10923
10924
10925
10926
10927
10928
# File 'lib/ruby_parser30.rb', line 10921

def _reduce_396(val, _values, result)
                      _, (id, line) = val

                      result = args ["*#{id}".to_sym]
                      result.line line

    result
end

#_reduce_397(val, _values, result) ⇒ Object



10930
10931
10932
10933
10934
10935
# File 'lib/ruby_parser30.rb', line 10930

def _reduce_397(val, _values, result)
                      (_, line), = val
                      result = args([:*]).line line

    result
end

#_reduce_400(val, _values, result) ⇒ Object

reduce 399 omitted



10941
10942
10943
10944
10945
# File 'lib/ruby_parser30.rb', line 10941

def _reduce_400(val, _values, result)
                      result = call_args val

    result
end

#_reduce_401(val, _values, result) ⇒ Object



10947
10948
10949
10950
10951
# File 'lib/ruby_parser30.rb', line 10947

def _reduce_401(val, _values, result)
                      result = call_args val

    result
end

#_reduce_402(val, _values, result) ⇒ Object



10953
10954
10955
10956
10957
# File 'lib/ruby_parser30.rb', line 10953

def _reduce_402(val, _values, result)
                      result = call_args val

    result
end

#_reduce_403(val, _values, result) ⇒ Object



10959
10960
10961
10962
10963
10964
10965
# File 'lib/ruby_parser30.rb', line 10959

def _reduce_403(val, _values, result)
                      (id, line), = val
                      result = call_args [id]
                      result.line line

    result
end

#_reduce_404(val, _values, result) ⇒ Object



10967
10968
10969
10970
10971
# File 'lib/ruby_parser30.rb', line 10967

def _reduce_404(val, _values, result)
                      result = args val

    result
end

#_reduce_406(val, _values, result) ⇒ Object

reduce 405 omitted



10975
10976
10977
10978
10979
# File 'lib/ruby_parser30.rb', line 10975

def _reduce_406(val, _values, result)
                      result = s(:WTF_COMMA!)

    result
end

#_reduce_407(val, _values, result) ⇒ Object



10981
10982
10983
10984
10985
# File 'lib/ruby_parser30.rb', line 10981

def _reduce_407(val, _values, result)
                      result = args val

    result
end

#_reduce_408(val, _values, result) ⇒ Object



10987
10988
10989
10990
10991
# File 'lib/ruby_parser30.rb', line 10987

def _reduce_408(val, _values, result)
                      result = args val

    result
end

#_reduce_409(val, _values, result) ⇒ Object



10993
10994
10995
10996
10997
# File 'lib/ruby_parser30.rb', line 10993

def _reduce_409(val, _values, result)
                      result = args val

    result
end

#_reduce_41(val, _values, result) ⇒ Object

reduce 40 omitted



8929
8930
8931
8932
8933
# File 'lib/ruby_parser30.rb', line 8929

def _reduce_41(val, _values, result)
                      result = new_assign val[0], val[2]

    result
end

#_reduce_410(val, _values, result) ⇒ Object



10999
11000
11001
11002
11003
# File 'lib/ruby_parser30.rb', line 10999

def _reduce_410(val, _values, result)
                      result = args val

    result
end

#_reduce_411(val, _values, result) ⇒ Object



11005
11006
11007
11008
11009
# File 'lib/ruby_parser30.rb', line 11005

def _reduce_411(val, _values, result)
                      result = args val

    result
end

#_reduce_412(val, _values, result) ⇒ Object



11011
11012
11013
11014
11015
11016
# File 'lib/ruby_parser30.rb', line 11011

def _reduce_412(val, _values, result)
                      arg, _ = val
                      result = arg << nil

    result
end

#_reduce_413(val, _values, result) ⇒ Object



11018
11019
11020
11021
11022
# File 'lib/ruby_parser30.rb', line 11018

def _reduce_413(val, _values, result)
                      result = args val

    result
end

#_reduce_414(val, _values, result) ⇒ Object



11024
11025
11026
11027
11028
# File 'lib/ruby_parser30.rb', line 11024

def _reduce_414(val, _values, result)
                      result = args val

    result
end

#_reduce_415(val, _values, result) ⇒ Object



11030
11031
11032
11033
11034
# File 'lib/ruby_parser30.rb', line 11030

def _reduce_415(val, _values, result)
                      result = args val

    result
end

#_reduce_416(val, _values, result) ⇒ Object



11036
11037
11038
11039
11040
# File 'lib/ruby_parser30.rb', line 11036

def _reduce_416(val, _values, result)
                      result = args val

    result
end

#_reduce_417(val, _values, result) ⇒ Object



11042
11043
11044
11045
11046
# File 'lib/ruby_parser30.rb', line 11042

def _reduce_417(val, _values, result)
                      result = args val

    result
end

#_reduce_418(val, _values, result) ⇒ Object



11048
11049
11050
11051
11052
# File 'lib/ruby_parser30.rb', line 11048

def _reduce_418(val, _values, result)
                      result = args val

    result
end

#_reduce_419(val, _values, result) ⇒ Object



11054
11055
11056
11057
11058
# File 'lib/ruby_parser30.rb', line 11054

def _reduce_419(val, _values, result)
                      result = args val

    result
end

#_reduce_42(val, _values, result) ⇒ Object



8935
8936
8937
8938
8939
# File 'lib/ruby_parser30.rb', line 8935

def _reduce_42(val, _values, result)
                      result = new_op_asgn val

    result
end

#_reduce_420(val, _values, result) ⇒ Object



11060
11061
11062
11063
11064
# File 'lib/ruby_parser30.rb', line 11060

def _reduce_420(val, _values, result)
                      result = args val

    result
end

#_reduce_421(val, _values, result) ⇒ Object



11066
11067
11068
11069
11070
# File 'lib/ruby_parser30.rb', line 11066

def _reduce_421(val, _values, result)
                      result = args val

    result
end

#_reduce_422(val, _values, result) ⇒ Object



11072
11073
11074
11075
# File 'lib/ruby_parser30.rb', line 11072

def _reduce_422(val, _values, result)
 result = 0
    result
end

#_reduce_423(val, _values, result) ⇒ Object



11077
11078
11079
11080
11081
# File 'lib/ruby_parser30.rb', line 11077

def _reduce_423(val, _values, result)
                      self.lexer.command_start = true

    result
end

#_reduce_424(val, _values, result) ⇒ Object



11083
11084
11085
11086
11087
11088
11089
# File 'lib/ruby_parser30.rb', line 11083

def _reduce_424(val, _values, result)
                      # TODO: current_arg = 0
                      result = args val
                      self.in_argdef = false

    result
end

#_reduce_425(val, _values, result) ⇒ Object



11091
11092
11093
11094
11095
11096
11097
# File 'lib/ruby_parser30.rb', line 11091

def _reduce_425(val, _values, result)
                      (_, line), = val

                      result = s(:args).line line

    result
end

#_reduce_426(val, _values, result) ⇒ Object



11099
11100
11101
11102
11103
11104
11105
# File 'lib/ruby_parser30.rb', line 11099

def _reduce_426(val, _values, result)
                      # TODO: current_arg = 0
                      result = args val
                      self.in_argdef = false

    result
end

#_reduce_428(val, _values, result) ⇒ Object

reduce 427 omitted



11109
11110
11111
11112
11113
# File 'lib/ruby_parser30.rb', line 11109

def _reduce_428(val, _values, result)
                      result = args val

    result
end

#_reduce_429(val, _values, result) ⇒ Object



11115
11116
11117
11118
11119
# File 'lib/ruby_parser30.rb', line 11115

def _reduce_429(val, _values, result)
                      result = args val

    result
end

#_reduce_43(val, _values, result) ⇒ Object



8941
8942
8943
8944
8945
# File 'lib/ruby_parser30.rb', line 8941

def _reduce_43(val, _values, result)
                      result = new_op_asgn1 val

    result
end

#_reduce_430(val, _values, result) ⇒ Object



11121
11122
11123
11124
11125
# File 'lib/ruby_parser30.rb', line 11121

def _reduce_430(val, _values, result)
                      result = args val

    result
end

#_reduce_431(val, _values, result) ⇒ Object



11127
11128
11129
11130
11131
# File 'lib/ruby_parser30.rb', line 11127

def _reduce_431(val, _values, result)
                      result = wrap :shadow, val[0]

    result
end

#_reduce_433(val, _values, result) ⇒ Object

reduce 432 omitted



11135
11136
11137
11138
11139
11140
11141
11142
# File 'lib/ruby_parser30.rb', line 11135

def _reduce_433(val, _values, result)
                      self.env.extend :dynamic
                      result = lexer.lpar_beg
                      lexer.paren_nest += 1
                      lexer.lpar_beg = lexer.paren_nest

    result
end

#_reduce_434(val, _values, result) ⇒ Object



11144
11145
11146
11147
11148
# File 'lib/ruby_parser30.rb', line 11144

def _reduce_434(val, _values, result)
                      lexer.cmdarg.push false

    result
end

#_reduce_435(val, _values, result) ⇒ Object



11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
# File 'lib/ruby_parser30.rb', line 11150

def _reduce_435(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_436(val, _values, result) ⇒ Object



11164
11165
11166
11167
11168
11169
# File 'lib/ruby_parser30.rb', line 11164

def _reduce_436(val, _values, result)
                      self.in_argdef = false
                      result = args val

    result
end

#_reduce_437(val, _values, result) ⇒ Object



11171
11172
11173
11174
11175
11176
11177
# File 'lib/ruby_parser30.rb', line 11171

def _reduce_437(val, _values, result)
                      self.in_argdef = false
                      result = val[0]
                      result = 0 if result == s(:args)

    result
end

#_reduce_438(val, _values, result) ⇒ Object



11179
11180
11181
11182
11183
# File 'lib/ruby_parser30.rb', line 11179

def _reduce_438(val, _values, result)
                      result = val[1]

    result
end

#_reduce_439(val, _values, result) ⇒ Object



11185
11186
11187
11188
11189
# File 'lib/ruby_parser30.rb', line 11185

def _reduce_439(val, _values, result)
                      result = val[1]

    result
end

#_reduce_44(val, _values, result) ⇒ Object



8947
8948
8949
8950
8951
8952
8953
8954
8955
# File 'lib/ruby_parser30.rb', line 8947

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



11191
11192
11193
11194
11195
11196
# File 'lib/ruby_parser30.rb', line 11191

def _reduce_440(val, _values, result)
                      (_, line), iter, _ = val
                      result = iter.line line

    result
end

#_reduce_441(val, _values, result) ⇒ Object



11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
# File 'lib/ruby_parser30.rb', line 11198

def _reduce_441(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_442(val, _values, result) ⇒ Object



11219
11220
11221
11222
11223
11224
11225
# File 'lib/ruby_parser30.rb', line 11219

def _reduce_442(val, _values, result)
                      lhs, _, (id, _line), args = val

                      result = new_call lhs, id.to_sym, args

    result
end

#_reduce_443(val, _values, result) ⇒ Object



11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
# File 'lib/ruby_parser30.rb', line 11227

def _reduce_443(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_444(val, _values, result) ⇒ Object



11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
# File 'lib/ruby_parser30.rb', line 11238

def _reduce_444(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_445(val, _values, result) ⇒ Object



11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
# File 'lib/ruby_parser30.rb', line 11249

def _reduce_445(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_446(val, _values, result) ⇒ Object



11262
11263
11264
11265
11266
11267
11268
11269
# File 'lib/ruby_parser30.rb', line 11262

def _reduce_446(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_447(val, _values, result) ⇒ Object



11271
11272
11273
11274
11275
11276
11277
# File 'lib/ruby_parser30.rb', line 11271

def _reduce_447(val, _values, result)
                      recv, _, (op, _line), args = val

                      result = new_call recv, op.to_sym, args

    result
end

#_reduce_448(val, _values, result) ⇒ Object



11279
11280
11281
11282
11283
11284
11285
# File 'lib/ruby_parser30.rb', line 11279

def _reduce_448(val, _values, result)
                      lhs, _, (id, _line) = val

                      result = new_call lhs, id.to_sym

    result
end

#_reduce_449(val, _values, result) ⇒ Object



11287
11288
11289
11290
11291
# File 'lib/ruby_parser30.rb', line 11287

def _reduce_449(val, _values, result)
                      result = new_call val[0], :call, val[2], val[1]

    result
end

#_reduce_45(val, _values, result) ⇒ Object



8957
8958
8959
8960
8961
8962
8963
8964
8965
# File 'lib/ruby_parser30.rb', line 8957

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



11293
11294
11295
11296
11297
# File 'lib/ruby_parser30.rb', line 11293

def _reduce_450(val, _values, result)
                      result = new_call val[0], :call, val[2]

    result
end

#_reduce_451(val, _values, result) ⇒ Object



11299
11300
11301
11302
11303
# File 'lib/ruby_parser30.rb', line 11299

def _reduce_451(val, _values, result)
                      result = new_super val[1]

    result
end

#_reduce_452(val, _values, result) ⇒ Object



11305
11306
11307
11308
11309
11310
# File 'lib/ruby_parser30.rb', line 11305

def _reduce_452(val, _values, result)
                      (_, line), = val
                      result = s(:zsuper).line line

    result
end

#_reduce_453(val, _values, result) ⇒ Object



11312
11313
11314
11315
11316
# File 'lib/ruby_parser30.rb', line 11312

def _reduce_453(val, _values, result)
                      result = new_aref val

    result
end

#_reduce_454(val, _values, result) ⇒ Object



11318
11319
11320
11321
11322
# File 'lib/ruby_parser30.rb', line 11318

def _reduce_454(val, _values, result)
                      self.env.extend :dynamic

    result
end

#_reduce_455(val, _values, result) ⇒ Object



11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
# File 'lib/ruby_parser30.rb', line 11324

def _reduce_455(val, _values, result)
                      (_, line), _, body, _ = val

                      result = body
                      result.line line

                      self.env.unextend

    result
end

#_reduce_456(val, _values, result) ⇒ Object



11335
11336
11337
11338
11339
# File 'lib/ruby_parser30.rb', line 11335

def _reduce_456(val, _values, result)
                      self.env.extend :dynamic

    result
end

#_reduce_457(val, _values, result) ⇒ Object



11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
# File 'lib/ruby_parser30.rb', line 11341

def _reduce_457(val, _values, result)
                      (_, line), _, body, _ = val

                      result = body
                      result.line line

                      self.env.unextend

    result
end

#_reduce_458(val, _values, result) ⇒ Object



11352
11353
11354
11355
# File 'lib/ruby_parser30.rb', line 11352

def _reduce_458(val, _values, result)
 self.env.extend :dynamic; result = self.lexer.lineno
    result
end

#_reduce_459(val, _values, result) ⇒ Object



11357
11358
11359
11360
# File 'lib/ruby_parser30.rb', line 11357

def _reduce_459(val, _values, result)
 result = lexer.cmdarg.store(false)
    result
end

#_reduce_46(val, _values, result) ⇒ Object



8967
8968
8969
8970
8971
8972
8973
# File 'lib/ruby_parser30.rb', line 8967

def _reduce_46(val, _values, result)
                      lhs1, _, (lhs2, line), (id, _), rhs = val

                      result = s(:op_asgn, lhs1, rhs, lhs2.to_sym, id.to_sym).line line

    result
end

#_reduce_460(val, _values, result) ⇒ Object



11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
# File 'lib/ruby_parser30.rb', line 11362

def _reduce_460(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_461(val, _values, result) ⇒ Object



11373
11374
11375
11376
# File 'lib/ruby_parser30.rb', line 11373

def _reduce_461(val, _values, result)
 self.env.extend :dynamic; result = self.lexer.lineno
    result
end

#_reduce_462(val, _values, result) ⇒ Object



11378
11379
11380
11381
# File 'lib/ruby_parser30.rb', line 11378

def _reduce_462(val, _values, result)
 lexer.cmdarg.push false
    result
end

#_reduce_463(val, _values, result) ⇒ Object



11383
11384
11385
11386
11387
11388
11389
11390
11391
# File 'lib/ruby_parser30.rb', line 11383

def _reduce_463(val, _values, result)
                      line, _cmdarg, param, cmpstmt = val

                      result = new_do_body param, cmpstmt, line
                      lexer.cmdarg.pop
                      self.env.unextend

    result
end

#_reduce_464(val, _values, result) ⇒ Object



11393
11394
11395
11396
11397
11398
11399
# File 'lib/ruby_parser30.rb', line 11393

def _reduce_464(val, _values, result)
                      arg, = val

                      result = s(:array, arg).line arg.line

    result
end

#_reduce_465(val, _values, result) ⇒ Object



11401
11402
11403
11404
11405
11406
11407
# File 'lib/ruby_parser30.rb', line 11401

def _reduce_465(val, _values, result)
                      _, arg = val

                      result = s(:array, s(:splat, arg).line(arg.line)).line arg.line

    result
end

#_reduce_466(val, _values, result) ⇒ Object



11409
11410
11411
11412
11413
11414
11415
# File 'lib/ruby_parser30.rb', line 11409

def _reduce_466(val, _values, result)
                      args, _, id = val

                      result = self.list_append args, id

    result
end

#_reduce_467(val, _values, result) ⇒ Object



11417
11418
11419
11420
11421
11422
11423
# File 'lib/ruby_parser30.rb', line 11417

def _reduce_467(val, _values, result)
                      args, _, _, id = val

                      result = self.list_append args, s(:splat, id).line(id.line)

    result
end

#_reduce_468(val, _values, result) ⇒ Object



11425
11426
11427
11428
11429
11430
11431
11432
11433
# File 'lib/ruby_parser30.rb', line 11425

def _reduce_468(val, _values, result)
                      (_, line), case_args, _then, body, cases = val

                      result = new_when case_args, body
                      result.line line
                      result << cases if cases

    result
end

#_reduce_47(val, _values, result) ⇒ Object



8975
8976
8977
8978
8979
8980
8981
# File 'lib/ruby_parser30.rb', line 8975

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_471(val, _values, result) ⇒ Object

reduce 470 omitted



11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
# File 'lib/ruby_parser30.rb', line 11439

def _reduce_471(val, _values, result)
                      self.lexer.lex_state = EXPR_BEG|EXPR_LABEL
                      self.lexer.command_start = false
                      result = self.in_kwarg
                      self.in_kwarg = true
                      push_pvtbl
                      push_pktbl

    result
end

#_reduce_472(val, _values, result) ⇒ Object



11450
11451
11452
11453
11454
11455
11456
11457
# File 'lib/ruby_parser30.rb', line 11450

def _reduce_472(val, _values, result)
                      pop_pktbl
                      pop_pvtbl
                      old_kwargs = _values[-3]
                      self.in_kwarg = old_kwargs

    result
end

#_reduce_473(val, _values, result) ⇒ Object



11459
11460
11461
11462
11463
11464
11465
# File 'lib/ruby_parser30.rb', line 11459

def _reduce_473(val, _values, result)
                      (_, line), _, pat, _, _, body, cases = val

                      result = new_in pat, body, cases, line

    result
end

#_reduce_477(val, _values, result) ⇒ Object

reduce 476 omitted



11473
11474
11475
11476
11477
11478
11479
11480
# File 'lib/ruby_parser30.rb', line 11473

def _reduce_477(val, _values, result)
                      body, _, cond = val
                      body = remove_begin body

                      result = s(:if, cond, body, nil).line body.line

    result
end

#_reduce_478(val, _values, result) ⇒ Object



11482
11483
11484
11485
11486
11487
11488
11489
# File 'lib/ruby_parser30.rb', line 11482

def _reduce_478(val, _values, result)
                      body, _, cond = val
                      body = remove_begin body

                      result = s(:if, cond, nil, body).line body.line

    result
end

#_reduce_48(val, _values, result) ⇒ Object



8983
8984
8985
8986
8987
# File 'lib/ruby_parser30.rb', line 8983

def _reduce_48(val, _values, result)
                      self.backref_assign_error val[0]

    result
end

#_reduce_480(val, _values, result) ⇒ Object

reduce 479 omitted



11493
11494
11495
11496
11497
11498
11499
11500
# File 'lib/ruby_parser30.rb', line 11493

def _reduce_480(val, _values, result)
                      expr, _ = val

                      tail = new_array_pattern_tail nil, true, nil, nil
                      result = new_array_pattern nil, expr, tail, expr.line

    result
end

#_reduce_481(val, _values, result) ⇒ Object



11502
11503
11504
11505
11506
11507
11508
# File 'lib/ruby_parser30.rb', line 11502

def _reduce_481(val, _values, result)
                      expr, _, args = val

                      result = new_array_pattern nil, expr, args, expr.line

    result
end

#_reduce_482(val, _values, result) ⇒ Object



11510
11511
11512
11513
11514
11515
11516
# File 'lib/ruby_parser30.rb', line 11510

def _reduce_482(val, _values, result)
                      find, = val

                      result = new_find_pattern nil, find

    result
end

#_reduce_483(val, _values, result) ⇒ Object



11518
11519
11520
11521
11522
11523
# File 'lib/ruby_parser30.rb', line 11518

def _reduce_483(val, _values, result)
                      args, = val
                      result = new_array_pattern nil, nil, args, args.line

    result
end

#_reduce_484(val, _values, result) ⇒ Object



11525
11526
11527
11528
11529
11530
# File 'lib/ruby_parser30.rb', line 11525

def _reduce_484(val, _values, result)
                      kwargs, = val
                      result = new_hash_pattern nil, kwargs, kwargs.line

    result
end

#_reduce_486(val, _values, result) ⇒ Object

reduce 485 omitted



11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
# File 'lib/ruby_parser30.rb', line 11534

def _reduce_486(val, _values, result)
                      # NODE *n = NEW_LIST($1, &@$);
                      # n = list_append(p, n, $3);
                      # $$ = new_hash(p, n, &@$);

                      expr, _, var = val

                      id = var.last

                      self.env[id] = :lvar # HACK: need to extend env
                      lhs = s(:lasgn, id).line var.line

                      result = new_assign lhs, expr

    result
end

#_reduce_488(val, _values, result) ⇒ Object

reduce 487 omitted



11553
11554
11555
11556
11557
11558
11559
# File 'lib/ruby_parser30.rb', line 11553

def _reduce_488(val, _values, result)
                      lhs, _, rhs = val

                      result = s(:or, lhs, rhs).line lhs.line

    result
end

#_reduce_49(val, _values, result) ⇒ Object



8989
8990
8991
8992
8993
8994
# File 'lib/ruby_parser30.rb', line 8989

def _reduce_49(val, _values, result)
                      expr, = val
                      result = value_expr expr

    result
end

#_reduce_490(val, _values, result) ⇒ Object

reduce 489 omitted



11563
11564
11565
11566
# File 'lib/ruby_parser30.rb', line 11563

def _reduce_490(val, _values, result)
 push_pktbl
    result
end

#_reduce_491(val, _values, result) ⇒ Object



11568
11569
11570
11571
# File 'lib/ruby_parser30.rb', line 11568

def _reduce_491(val, _values, result)
 push_pktbl
    result
end

#_reduce_493(val, _values, result) ⇒ Object

reduce 492 omitted



11575
11576
11577
11578
11579
11580
11581
11582
# File 'lib/ruby_parser30.rb', line 11575

def _reduce_493(val, _values, result)
                      lhs, _, args, _ = val

                      pop_pktbl
                      result = new_array_pattern(lhs, nil, args, lhs.line)

    result
end

#_reduce_494(val, _values, result) ⇒ Object



11584
11585
11586
11587
11588
11589
11590
11591
# File 'lib/ruby_parser30.rb', line 11584

def _reduce_494(val, _values, result)
                      const, _, find, _ = val

                      pop_pktbl
                      result = new_find_pattern(const, find).line const.line

    result
end

#_reduce_495(val, _values, result) ⇒ Object



11593
11594
11595
11596
11597
11598
11599
11600
# File 'lib/ruby_parser30.rb', line 11593

def _reduce_495(val, _values, result)
                      lhs, _, kwargs, _ = val

                      pop_pktbl
                      result = new_hash_pattern(lhs, kwargs, lhs.line)

    result
end

#_reduce_496(val, _values, result) ⇒ Object



11602
11603
11604
11605
11606
11607
11608
11609
# File 'lib/ruby_parser30.rb', line 11602

def _reduce_496(val, _values, result)
                      const, _, _ = val

                      tail = new_array_pattern_tail nil, nil, nil, nil
                      result = new_array_pattern const, nil, tail, const.line

    result
end

#_reduce_497(val, _values, result) ⇒ Object



11611
11612
11613
11614
11615
11616
11617
11618
# File 'lib/ruby_parser30.rb', line 11611

def _reduce_497(val, _values, result)
                      const, _, pre_arg, _ = val

                      pop_pktbl
                      result = new_array_pattern const, nil, pre_arg, const.line

    result
end

#_reduce_498(val, _values, result) ⇒ Object



11620
11621
11622
11623
11624
11625
11626
11627
# File 'lib/ruby_parser30.rb', line 11620

def _reduce_498(val, _values, result)
                      const, _, find, _ = val

                      pop_pktbl
                      result = new_find_pattern(const, find).line const.line

    result
end

#_reduce_499(val, _values, result) ⇒ Object



11629
11630
11631
11632
11633
11634
11635
# File 'lib/ruby_parser30.rb', line 11629

def _reduce_499(val, _values, result)
                      const, _, kwargs, _ = val

                      result = new_hash_pattern const, kwargs, const.line

    result
end

#_reduce_50(val, _values, result) ⇒ Object



8996
8997
8998
8999
9000
9001
9002
9003
9004
# File 'lib/ruby_parser30.rb', line 8996

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



11637
11638
11639
11640
11641
11642
11643
11644
# File 'lib/ruby_parser30.rb', line 11637

def _reduce_500(val, _values, result)
                      const, _, _ = val

                      tail = new_array_pattern_tail nil, nil, nil, nil
                      result = new_array_pattern const, nil, tail, const.line

    result
end

#_reduce_501(val, _values, result) ⇒ Object



11646
11647
11648
11649
11650
11651
11652
# File 'lib/ruby_parser30.rb', line 11646

def _reduce_501(val, _values, result)
                      _, pat, _ = val

                      result = new_array_pattern nil, nil, pat, pat.line

    result
end

#_reduce_502(val, _values, result) ⇒ Object



11654
11655
11656
11657
11658
11659
11660
# File 'lib/ruby_parser30.rb', line 11654

def _reduce_502(val, _values, result)
                      _, find, _ = val

                      result = new_find_pattern nil, find

    result
end

#_reduce_503(val, _values, result) ⇒ Object



11662
11663
11664
11665
11666
11667
11668
# File 'lib/ruby_parser30.rb', line 11662

def _reduce_503(val, _values, result)
                      (_, line), _ = val

                      result = s(:array_pat).line line

    result
end

#_reduce_504(val, _values, result) ⇒ Object



11670
11671
11672
11673
11674
11675
11676
# File 'lib/ruby_parser30.rb', line 11670

def _reduce_504(val, _values, result)
                      push_pktbl
                      result = self.in_kwarg
                      self.in_kwarg = false

    result
end

#_reduce_505(val, _values, result) ⇒ Object



11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
# File 'lib/ruby_parser30.rb', line 11678

def _reduce_505(val, _values, result)
                      _, in_kwarg, kwargs, _ = val

                      pop_pktbl
                      self.in_kwarg = in_kwarg

                      result = new_hash_pattern(nil, kwargs, kwargs.line)

    result
end

#_reduce_506(val, _values, result) ⇒ Object



11689
11690
11691
11692
11693
11694
11695
11696
# File 'lib/ruby_parser30.rb', line 11689

def _reduce_506(val, _values, result)
                      (_, line), _ = val

                      tail = new_hash_pattern_tail nil, nil, line
                      result = new_hash_pattern nil, tail, line

    result
end

#_reduce_507(val, _values, result) ⇒ Object



11698
11699
11700
11701
# File 'lib/ruby_parser30.rb', line 11698

def _reduce_507(val, _values, result)
 push_pktbl
    result
end

#_reduce_508(val, _values, result) ⇒ Object



11703
11704
11705
11706
11707
11708
11709
11710
# File 'lib/ruby_parser30.rb', line 11703

def _reduce_508(val, _values, result)
                      _, _, expr, _ = val

                      pop_pktbl
                      result = expr

    result
end

#_reduce_509(val, _values, result) ⇒ Object



11712
11713
11714
11715
11716
11717
11718
11719
# File 'lib/ruby_parser30.rb', line 11712

def _reduce_509(val, _values, result)
                      expr, = val

                      ary = s(:array_TAIL, expr).line expr.line
                      result = new_array_pattern_tail(ary, nil, nil, nil).line expr.line

    result
end

#_reduce_510(val, _values, result) ⇒ Object



11721
11722
11723
11724
11725
11726
11727
# File 'lib/ruby_parser30.rb', line 11721

def _reduce_510(val, _values, result)
                      head, = val

                      result = new_array_pattern_tail head, true, nil, nil

    result
end

#_reduce_511(val, _values, result) ⇒ Object



11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
# File 'lib/ruby_parser30.rb', line 11729

def _reduce_511(val, _values, result)
                      head, tail = val

                      both = array_pat_concat head, tail

                      result = new_array_pattern_tail both, nil, nil, nil
                      result.line head.line

    result
end

#_reduce_512(val, _values, result) ⇒ Object



11740
11741
11742
11743
11744
11745
11746
11747
# File 'lib/ruby_parser30.rb', line 11740

def _reduce_512(val, _values, result)
                      head, _, (id, _line) = val

                      result = new_array_pattern_tail head, true, id.to_sym, nil
                      result.line head.line

    result
end

#_reduce_513(val, _values, result) ⇒ Object



11749
11750
11751
11752
11753
11754
11755
11756
# File 'lib/ruby_parser30.rb', line 11749

def _reduce_513(val, _values, result)
                      head, _, (id, _line), _, post = val

                      result = new_array_pattern_tail head, true, id.to_sym, post
                      result.line head.line

    result
end

#_reduce_514(val, _values, result) ⇒ Object



11758
11759
11760
11761
11762
11763
11764
# File 'lib/ruby_parser30.rb', line 11758

def _reduce_514(val, _values, result)
                      expr, _ = val

                      result = new_array_pattern_tail(expr, true, nil, nil).line expr.line

    result
end

#_reduce_515(val, _values, result) ⇒ Object



11766
11767
11768
11769
11770
11771
11772
# File 'lib/ruby_parser30.rb', line 11766

def _reduce_515(val, _values, result)
                      head, _, _, post = val

                      result = new_array_pattern_tail(head, true, nil, post).line head.line

    result
end

#_reduce_517(val, _values, result) ⇒ Object

reduce 516 omitted



11776
11777
11778
11779
11780
11781
# File 'lib/ruby_parser30.rb', line 11776

def _reduce_517(val, _values, result)
                      arg, _ = val
                      result = arg

    result
end

#_reduce_518(val, _values, result) ⇒ Object



11783
11784
11785
11786
11787
11788
11789
11790
# File 'lib/ruby_parser30.rb', line 11783

def _reduce_518(val, _values, result)
                      head, tail, _ = val

                      result = s(:PATTERN, *head.sexp_body, *tail.sexp_body)
                      result.line head.line

    result
end

#_reduce_519(val, _values, result) ⇒ Object



11792
11793
11794
11795
11796
11797
11798
11799
# File 'lib/ruby_parser30.rb', line 11792

def _reduce_519(val, _values, result)
                      (id, line), = val

                      result = new_array_pattern_tail nil, true, id, nil
                      result.line line

    result
end

#_reduce_520(val, _values, result) ⇒ Object



11801
11802
11803
11804
11805
11806
11807
11808
# File 'lib/ruby_parser30.rb', line 11801

def _reduce_520(val, _values, result)
                      (id, line), _, rhs = val

                      result = new_array_pattern_tail nil, true, id, rhs
                      result.line line

    result
end

#_reduce_521(val, _values, result) ⇒ Object



11810
11811
11812
11813
11814
11815
11816
# File 'lib/ruby_parser30.rb', line 11810

def _reduce_521(val, _values, result)
                      lhs, _, mid, _, rhs = val

                      result = new_find_pattern_tail lhs, mid, rhs

    result
end

#_reduce_522(val, _values, result) ⇒ Object



11818
11819
11820
11821
11822
11823
11824
# File 'lib/ruby_parser30.rb', line 11818

def _reduce_522(val, _values, result)
                      _, (id, line) = val

                      result = [id.to_sym, line]

    result
end

#_reduce_523(val, _values, result) ⇒ Object



11826
11827
11828
11829
11830
11831
11832
# File 'lib/ruby_parser30.rb', line 11826

def _reduce_523(val, _values, result)
                      (_id, line), = val

                      result = [nil, line]

    result
end

#_reduce_525(val, _values, result) ⇒ Object

reduce 524 omitted



11836
11837
11838
11839
11840
11841
11842
# File 'lib/ruby_parser30.rb', line 11836

def _reduce_525(val, _values, result)
                      lhs, _, rhs = val

                      result = array_pat_concat lhs, rhs

    result
end

#_reduce_526(val, _values, result) ⇒ Object



11844
11845
11846
11847
11848
11849
11850
11851
# File 'lib/ruby_parser30.rb', line 11844

def _reduce_526(val, _values, result)
                      expr, = val
                      expr = s(:array_TAIL, expr).line expr.line unless
                        expr.sexp_type == :array_TAIL
                      result = expr

    result
end

#_reduce_527(val, _values, result) ⇒ Object



11853
11854
11855
11856
11857
11858
11859
# File 'lib/ruby_parser30.rb', line 11853

def _reduce_527(val, _values, result)
                      kw_arg, _, rest = val
                      # TODO? new_unique_key_hash(p, $1, &@$)
                      result = new_hash_pattern_tail kw_arg, rest, kw_arg.line

    result
end

#_reduce_528(val, _values, result) ⇒ Object



11861
11862
11863
11864
11865
11866
11867
# File 'lib/ruby_parser30.rb', line 11861

def _reduce_528(val, _values, result)
                      kwarg, = val
                      # TODO? new_unique_key_hash(p, $1, &@$)
                      result = new_hash_pattern_tail kwarg, nil, kwarg.line

    result
end

#_reduce_529(val, _values, result) ⇒ Object



11869
11870
11871
11872
11873
11874
11875
# File 'lib/ruby_parser30.rb', line 11869

def _reduce_529(val, _values, result)
                      kwarg, _ = val
                      # TODO? new_unique_key_hash(p, $1, &@$)
                      result = new_hash_pattern_tail kwarg, nil, kwarg.line

    result
end

#_reduce_53(val, _values, result) ⇒ Object

reduce 52 omitted



9010
9011
9012
9013
9014
9015
# File 'lib/ruby_parser30.rb', line 9010

def _reduce_53(val, _values, result)
                      lhs, _, rhs = val
                      result = logical_op :and, lhs, rhs

    result
end

#_reduce_530(val, _values, result) ⇒ Object



11877
11878
11879
11880
11881
11882
11883
# File 'lib/ruby_parser30.rb', line 11877

def _reduce_530(val, _values, result)
                      rest, = val

                      result = new_hash_pattern_tail nil, rest, rest.line

    result
end

#_reduce_532(val, _values, result) ⇒ Object

reduce 531 omitted



11887
11888
11889
11890
11891
11892
11893
# File 'lib/ruby_parser30.rb', line 11887

def _reduce_532(val, _values, result)
                      kwarg, _, kw = val
                      kwarg.concat kw.sexp_body
                      result = kwarg

    result
end

#_reduce_533(val, _values, result) ⇒ Object



11895
11896
11897
11898
11899
11900
11901
11902
# File 'lib/ruby_parser30.rb', line 11895

def _reduce_533(val, _values, result)
                      # TODO: error_duplicate_pattern_key(p, get_id($1), &@1);
                      lhs, rhs = val

                      result = s(:PAIR, lhs, rhs).line lhs.line

    result
end

#_reduce_534(val, _values, result) ⇒ Object



11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
# File 'lib/ruby_parser30.rb', line 11904

def _reduce_534(val, _values, result)
                      lhs, = val

                      # TODO: error_duplicate_pattern_variable(p, get_id($1), &@1);

                      # TODO: if ($1 && !is_local_id(get_id($1))) {
                      #     yyerror1(&@1, "key must be valid as local variables");
                      # }

                      # $$ = list_append(p, NEW_LIST(NEW_LIT(ID2SYM($1), &@$), &@$),
                      #                     assignable(p, $1, 0, &@$));

                      case lhs.sexp_type
                      when :lit then
                        assignable [lhs.value, lhs.line]
                      else
                        # TODO or done?
                        debug 10
                      end

                      # TODO PAIR -> LIST ?
                      result = s(:PAIR, lhs, nil).line lhs.line

    result
end

#_reduce_535(val, _values, result) ⇒ Object



11930
11931
11932
11933
11934
# File 'lib/ruby_parser30.rb', line 11930

def _reduce_535(val, _values, result)
                      result = wrap :lit, val[0]

    result
end

#_reduce_536(val, _values, result) ⇒ Object



11936
11937
11938
11939
11940
11941
11942
11943
11944
# File 'lib/ruby_parser30.rb', line 11936

def _reduce_536(val, _values, result)
                      _, (id, line) = val

                      name = id.to_sym
                      self.assignable [name, line]
                      result = s(:kwrest, :"**#{name}").line line

    result
end

#_reduce_537(val, _values, result) ⇒ Object



11946
11947
11948
11949
11950
11951
11952
# File 'lib/ruby_parser30.rb', line 11946

def _reduce_537(val, _values, result)
                      (_, line), = val

                      result = s(:kwrest, :"**").line line

    result
end

#_reduce_538(val, _values, result) ⇒ Object



11954
11955
11956
11957
11958
11959
11960
11961
# File 'lib/ruby_parser30.rb', line 11954

def _reduce_538(val, _values, result)
                      (_, line), _ = val

                      # TODO: or s(:norest)? s(:**nil)?
                      result = s(:kwrest, :"**nil").line line

    result
end

#_reduce_54(val, _values, result) ⇒ Object



9017
9018
9019
9020
9021
9022
# File 'lib/ruby_parser30.rb', line 9017

def _reduce_54(val, _values, result)
                      lhs, _, rhs = val
                      result = logical_op :or, lhs, rhs

    result
end

#_reduce_542(val, _values, result) ⇒ Object

reduce 541 omitted



11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
# File 'lib/ruby_parser30.rb', line 11969

def _reduce_542(val, _values, result)
                      lhs, _, rhs = val

                      lhs = value_expr lhs
                      rhs = value_expr rhs

                      result = s(:dot2, lhs, rhs).line lhs.line

    result
end

#_reduce_543(val, _values, result) ⇒ Object



11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
# File 'lib/ruby_parser30.rb', line 11980

def _reduce_543(val, _values, result)
                      lhs, _, rhs = val

                      lhs = value_expr lhs
                      rhs = value_expr rhs

                      result = s(:dot3, lhs, rhs).line lhs.line

    result
end

#_reduce_544(val, _values, result) ⇒ Object



11991
11992
11993
11994
11995
11996
11997
# File 'lib/ruby_parser30.rb', line 11991

def _reduce_544(val, _values, result)
                      v1, _ = val

                      result = s(:dot2, v1, nil).line v1.line

    result
end

#_reduce_545(val, _values, result) ⇒ Object



11999
12000
12001
12002
12003
12004
12005
# File 'lib/ruby_parser30.rb', line 11999

def _reduce_545(val, _values, result)
                      v1, _ = val

                      result = s(:dot3, v1, nil).line v1.line

    result
end

#_reduce_549(val, _values, result) ⇒ Object

reduce 548 omitted



12013
12014
12015
12016
12017
12018
12019
# File 'lib/ruby_parser30.rb', line 12013

def _reduce_549(val, _values, result)
                      _, v1 = val

                      result = s(:dot2, nil, v1).line v1.line

    result
end

#_reduce_55(val, _values, result) ⇒ Object



9024
9025
9026
9027
9028
9029
9030
# File 'lib/ruby_parser30.rb', line 9024

def _reduce_55(val, _values, result)
                      (_, line), _, expr = val
                      result = new_call(expr, :"!").line line
                      # REFACTOR: call_uni_op

    result
end

#_reduce_550(val, _values, result) ⇒ Object



12021
12022
12023
12024
12025
12026
12027
# File 'lib/ruby_parser30.rb', line 12021

def _reduce_550(val, _values, result)
                      _, v1 = val

                      result = s(:dot3, nil, v1).line v1.line

    result
end

#_reduce_555(val, _values, result) ⇒ Object

reduce 554 omitted



12037
12038
12039
12040
12041
# File 'lib/ruby_parser30.rb', line 12037

def _reduce_555(val, _values, result)
                      result = ary_to_pat val[0]

    result
end

#_reduce_556(val, _values, result) ⇒ Object



12043
12044
12045
12046
12047
# File 'lib/ruby_parser30.rb', line 12043

def _reduce_556(val, _values, result)
                      result = ary_to_pat val[0]

    result
end

#_reduce_557(val, _values, result) ⇒ Object



12049
12050
12051
12052
12053
# File 'lib/ruby_parser30.rb', line 12049

def _reduce_557(val, _values, result)
                      result = ary_to_pat val[0]

    result
end

#_reduce_558(val, _values, result) ⇒ Object



12055
12056
12057
12058
12059
# File 'lib/ruby_parser30.rb', line 12055

def _reduce_558(val, _values, result)
                      result = ary_to_pat val[0]

    result
end

#_reduce_559(val, _values, result) ⇒ Object



12061
12062
12063
12064
12065
12066
12067
12068
# File 'lib/ruby_parser30.rb', line 12061

def _reduce_559(val, _values, result)
                      # TODO? if (!($$ = gettable(p, $1, &@$))) $$ = NEW_BEGIN(0, &@$);
                      var, = val

                      result = var

    result
end

#_reduce_56(val, _values, result) ⇒ Object



9032
9033
9034
9035
9036
9037
9038
9039
# File 'lib/ruby_parser30.rb', line 9032

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_561(val, _values, result) ⇒ Object

reduce 560 omitted



12072
12073
12074
12075
12076
12077
12078
# File 'lib/ruby_parser30.rb', line 12072

def _reduce_561(val, _values, result)
                      # TODO: error_duplicate_pattern_variable(p, $1, &@1);
                      # TODO: assignable(p, $1, 0, &@$);
                      result = wrap :lasgn, val[0]

    result
end

#_reduce_562(val, _values, result) ⇒ Object



12080
12081
12082
12083
12084
12085
# File 'lib/ruby_parser30.rb', line 12080

def _reduce_562(val, _values, result)
                      # TODO: check id against env for lvar or dvar
                      result = wrap :lvar, val[1]

    result
end

#_reduce_563(val, _values, result) ⇒ Object



12087
12088
12089
12090
12091
# File 'lib/ruby_parser30.rb', line 12087

def _reduce_563(val, _values, result)
                      result = wrap :colon3, val[1]

    result
end

#_reduce_564(val, _values, result) ⇒ Object



12093
12094
12095
12096
12097
12098
12099
12100
# File 'lib/ruby_parser30.rb', line 12093

def _reduce_564(val, _values, result)
                      lhs, _, (id, _line) = val

                      l = lhs.line
                      result = s(:const, s(:colon2, lhs, id.to_sym).line(l)).line l

    result
end

#_reduce_565(val, _values, result) ⇒ Object



12102
12103
12104
12105
12106
12107
# File 'lib/ruby_parser30.rb', line 12102

def _reduce_565(val, _values, result)
                      # TODO $$ = gettable(p, $1, &@$);
                      result = wrap :const, val[0]

    result
end

#_reduce_566(val, _values, result) ⇒ Object



12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
# File 'lib/ruby_parser30.rb', line 12109

def _reduce_566(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_567(val, _values, result) ⇒ Object



12122
12123
12124
12125
12126
# File 'lib/ruby_parser30.rb', line 12122

def _reduce_567(val, _values, result)
                      result = nil

    result
end

#_reduce_568(val, _values, result) ⇒ Object



12128
12129
12130
12131
12132
12133
# File 'lib/ruby_parser30.rb', line 12128

def _reduce_568(val, _values, result)
                      arg, = val
                      result = s(:array, arg).line arg.line

    result
end

#_reduce_57(val, _values, result) ⇒ Object



9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
# File 'lib/ruby_parser30.rb', line 9041

def _reduce_57(val, _values, result)
                      # value_expr($1);
                      self.lexer.lex_state = EXPR_BEG|EXPR_LABEL
                      self.lexer.command_start = false
                      result = self.in_kwarg
                      self.in_kwarg = true
                      self.env.extend

    result
end

#_reduce_571(val, _values, result) ⇒ Object

reduce 570 omitted



12139
12140
12141
12142
12143
# File 'lib/ruby_parser30.rb', line 12139

def _reduce_571(val, _values, result)
                      result = val[1]

    result
end

#_reduce_573(val, _values, result) ⇒ Object

reduce 572 omitted



12147
12148
12149
12150
12151
12152
12153
# File 'lib/ruby_parser30.rb', line 12147

def _reduce_573(val, _values, result)
                      (_, line), body = val

                      result = body || s(:nil).line(line)

    result
end

#_reduce_575(val, _values, result) ⇒ Object

reduce 574 omitted



12157
12158
12159
12160
12161
12162
# File 'lib/ruby_parser30.rb', line 12157

def _reduce_575(val, _values, result)
                      (lit, line), = val
                      result = s(:lit, lit).line line

    result
end

#_reduce_577(val, _values, result) ⇒ Object

reduce 576 omitted



12166
12167
12168
12169
12170
12171
12172
# File 'lib/ruby_parser30.rb', line 12166

def _reduce_577(val, _values, result)
                      str, = val
                      str = s(:dstr, str.value) if str.sexp_type == :evstr
                      result = str

    result
end

#_reduce_578(val, _values, result) ⇒ Object



12174
12175
12176
12177
12178
# File 'lib/ruby_parser30.rb', line 12174

def _reduce_578(val, _values, result)
                      debug 12

    result
end

#_reduce_58(val, _values, result) ⇒ Object



9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
# File 'lib/ruby_parser30.rb', line 9052

def _reduce_58(val, _values, result)
                      lhs, _, in_kwarg, rhs = val

                      self.env.unextend
                      self.in_kwarg = in_kwarg

                      rhs = new_in rhs, nil, nil, rhs.line
                      result = new_case lhs, rhs, rhs.line

    result
end

#_reduce_580(val, _values, result) ⇒ Object

reduce 579 omitted



12182
12183
12184
12185
12186
# File 'lib/ruby_parser30.rb', line 12182

def _reduce_580(val, _values, result)
                      result = self.literal_concat val[0], val[1]

    result
end

#_reduce_581(val, _values, result) ⇒ Object



12188
12189
12190
12191
12192
12193
12194
12195
12196
# File 'lib/ruby_parser30.rb', line 12188

def _reduce_581(val, _values, result)
                      (_, line), str, (_, func) = val

                      str = dedent str if func =~ RubyLexer::STR_FUNC_DEDENT

                      result = str.line line

    result
end

#_reduce_582(val, _values, result) ⇒ Object



12198
12199
12200
12201
12202
# File 'lib/ruby_parser30.rb', line 12198

def _reduce_582(val, _values, result)
                      result = new_string val

    result
end

#_reduce_583(val, _values, result) ⇒ Object



12204
12205
12206
12207
12208
12209
# File 'lib/ruby_parser30.rb', line 12204

def _reduce_583(val, _values, result)
                      result = new_xstring val
                      # TODO: dedent?!?! SERIOUSLY?!?

    result
end

#_reduce_584(val, _values, result) ⇒ Object



12211
12212
12213
12214
12215
# File 'lib/ruby_parser30.rb', line 12211

def _reduce_584(val, _values, result)
                      result = new_regexp val

    result
end

#_reduce_585(val, _values, result) ⇒ Object



12217
12218
12219
12220
12221
12222
12223
12224
# File 'lib/ruby_parser30.rb', line 12217

def _reduce_585(val, _values, result)
                      (_, line), _, (_, line_max) = val

                      result = s(:array).line line
                      result.line_max = line_max

    result
end

#_reduce_586(val, _values, result) ⇒ Object



12226
12227
12228
12229
12230
12231
12232
12233
# File 'lib/ruby_parser30.rb', line 12226

def _reduce_586(val, _values, result)
                      (_, line), list, (_, line_max) = val

                      result = list.line line
                      result.line_max = line_max

    result
end

#_reduce_587(val, _values, result) ⇒ Object



12235
12236
12237
12238
12239
# File 'lib/ruby_parser30.rb', line 12235

def _reduce_587(val, _values, result)
                      result = new_word_list

    result
end

#_reduce_588(val, _values, result) ⇒ Object



12241
12242
12243
12244
12245
# File 'lib/ruby_parser30.rb', line 12241

def _reduce_588(val, _values, result)
                      result = val[0].dup << new_word_list_entry(val)

    result
end

#_reduce_59(val, _values, result) ⇒ Object



9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
# File 'lib/ruby_parser30.rb', line 9064

def _reduce_59(val, _values, result)
                      # TODO? value_expr($1);
                      self.lexer.lex_state = EXPR_BEG|EXPR_LABEL
                      self.lexer.command_start = false
                      result = self.in_kwarg
                      self.in_kwarg = true
                      self.env.extend

    result
end

#_reduce_590(val, _values, result) ⇒ Object

reduce 589 omitted



12249
12250
12251
12252
12253
# File 'lib/ruby_parser30.rb', line 12249

def _reduce_590(val, _values, result)
                      result = self.literal_concat val[0], val[1]

    result
end

#_reduce_591(val, _values, result) ⇒ Object



12255
12256
12257
12258
12259
12260
12261
12262
# File 'lib/ruby_parser30.rb', line 12255

def _reduce_591(val, _values, result)
                      (_, line), _, (_, line_max) = val

                      result = s(:array).line line
                      result.line_max = line_max

    result
end

#_reduce_592(val, _values, result) ⇒ Object



12264
12265
12266
12267
12268
12269
12270
12271
# File 'lib/ruby_parser30.rb', line 12264

def _reduce_592(val, _values, result)
                      (_, line), list, (_, line_max), = val

                      result = list.line line
                      result.line_max = line_max

    result
end

#_reduce_593(val, _values, result) ⇒ Object



12273
12274
12275
12276
12277
# File 'lib/ruby_parser30.rb', line 12273

def _reduce_593(val, _values, result)
                      result = new_symbol_list

    result
end

#_reduce_594(val, _values, result) ⇒ Object



12279
12280
12281
12282
12283
12284
# File 'lib/ruby_parser30.rb', line 12279

def _reduce_594(val, _values, result)
                      list, * = val
                      result = list.dup << new_symbol_list_entry(val)

    result
end

#_reduce_595(val, _values, result) ⇒ Object



12286
12287
12288
12289
12290
12291
12292
12293
# File 'lib/ruby_parser30.rb', line 12286

def _reduce_595(val, _values, result)
                      (_, line), _, (_, line_max) = val

                      result = s(:array).line line
                      result.line_max = line_max

    result
end

#_reduce_596(val, _values, result) ⇒ Object



12295
12296
12297
12298
12299
12300
12301
12302
# File 'lib/ruby_parser30.rb', line 12295

def _reduce_596(val, _values, result)
                      (_, line), list, (_, line_max) = val

                      result = list.line line
                      result.line_max = line_max

    result
end

#_reduce_597(val, _values, result) ⇒ Object



12304
12305
12306
12307
12308
12309
12310
12311
# File 'lib/ruby_parser30.rb', line 12304

def _reduce_597(val, _values, result)
                      (_, line), _, (_, line_max) = val

                      result = s(:array).line line
                      result.line_max = line_max

    result
end

#_reduce_598(val, _values, result) ⇒ Object



12313
12314
12315
12316
12317
12318
12319
12320
# File 'lib/ruby_parser30.rb', line 12313

def _reduce_598(val, _values, result)
                      (_, line), list, (_, line_max) = val

                      result = list.line line
                      result.line_max = line_max

    result
end

#_reduce_599(val, _values, result) ⇒ Object



12322
12323
12324
12325
12326
# File 'lib/ruby_parser30.rb', line 12322

def _reduce_599(val, _values, result)
                      result = new_qword_list

    result
end

#_reduce_6(val, _values, result) ⇒ Object

reduce 5 omitted



8706
8707
8708
8709
8710
# File 'lib/ruby_parser30.rb', line 8706

def _reduce_6(val, _values, result)
                      result = self.block_append val[0], val[2]

    result
end

#_reduce_60(val, _values, result) ⇒ Object



9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
# File 'lib/ruby_parser30.rb', line 9075

def _reduce_60(val, _values, result)
                      self.env.unextend

                      expr, _, old_kwarg, pat = val

                      expr = value_expr expr

                      self.in_kwarg = old_kwarg
                      pat_in = new_in pat, nil, nil, expr.line
                      result = new_case expr, pat_in, expr.line

    result
end

#_reduce_600(val, _values, result) ⇒ Object



12328
12329
12330
12331
12332
# File 'lib/ruby_parser30.rb', line 12328

def _reduce_600(val, _values, result)
                      result = val[0].dup << new_qword_list_entry(val)

    result
end

#_reduce_601(val, _values, result) ⇒ Object



12334
12335
12336
12337
12338
# File 'lib/ruby_parser30.rb', line 12334

def _reduce_601(val, _values, result)
                      result = new_qsym_list

    result
end

#_reduce_602(val, _values, result) ⇒ Object



12340
12341
12342
12343
12344
# File 'lib/ruby_parser30.rb', line 12340

def _reduce_602(val, _values, result)
                      result = val[0].dup << new_qsym_list_entry(val)

    result
end

#_reduce_603(val, _values, result) ⇒ Object



12346
12347
12348
12349
12350
12351
# File 'lib/ruby_parser30.rb', line 12346

def _reduce_603(val, _values, result)
                      line = prev_value_to_lineno _values.last
                      result = s(:str, +"").line line

    result
end

#_reduce_604(val, _values, result) ⇒ Object



12353
12354
12355
12356
12357
12358
# File 'lib/ruby_parser30.rb', line 12353

def _reduce_604(val, _values, result)
                      v1, v2 = val
                      result = literal_concat v1, v2

    result
end

#_reduce_605(val, _values, result) ⇒ Object



12360
12361
12362
12363
12364
# File 'lib/ruby_parser30.rb', line 12360

def _reduce_605(val, _values, result)
                      result = nil

    result
end

#_reduce_606(val, _values, result) ⇒ Object



12366
12367
12368
12369
12370
12371
# File 'lib/ruby_parser30.rb', line 12366

def _reduce_606(val, _values, result)
                      v1, v2 = val
                      result = literal_concat v1, v2

    result
end

#_reduce_607(val, _values, result) ⇒ Object



12373
12374
12375
12376
12377
# File 'lib/ruby_parser30.rb', line 12373

def _reduce_607(val, _values, result)
                      result = nil

    result
end

#_reduce_608(val, _values, result) ⇒ Object



12379
12380
12381
12382
12383
12384
# File 'lib/ruby_parser30.rb', line 12379

def _reduce_608(val, _values, result)
                      v1, v2 = val
                      result = literal_concat v1, v2

    result
end

#_reduce_609(val, _values, result) ⇒ Object



12386
12387
12388
12389
12390
# File 'lib/ruby_parser30.rb', line 12386

def _reduce_609(val, _values, result)
                      result = new_string val

    result
end

#_reduce_610(val, _values, result) ⇒ Object



12392
12393
12394
12395
12396
12397
12398
12399
# File 'lib/ruby_parser30.rb', line 12392

def _reduce_610(val, _values, result)
                      result = lexer.lex_strterm

                      lexer.lex_strterm = nil
                      lexer.lex_state = EXPR_BEG

    result
end

#_reduce_611(val, _values, result) ⇒ Object



12401
12402
12403
12404
12405
12406
12407
# File 'lib/ruby_parser30.rb', line 12401

def _reduce_611(val, _values, result)
                      _, strterm, str = val
                      lexer.lex_strterm = strterm
                      result = s(:evstr, str).line str.line

    result
end

#_reduce_612(val, _values, result) ⇒ Object



12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
# File 'lib/ruby_parser30.rb', line 12409

def _reduce_612(val, _values, result)
                      result = [lexer.lex_strterm,
                                lexer.brace_nest,
                                lexer.string_nest, # TODO: remove
                                lexer.lex_state,
                               ]

                      lexer.cmdarg.push false
                      lexer.cond.push false

                      lexer.lex_strterm = nil
                      lexer.brace_nest  = 0
                      lexer.string_nest = 0

                      lexer.lex_state   = EXPR_BEG

    result
end

#_reduce_613(val, _values, result) ⇒ Object



12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
# File 'lib/ruby_parser30.rb', line 12428

def _reduce_613(val, _values, result)
                      (_, line), memo, stmt, _ = val

                      lex_strterm, brace_nest, string_nest, oldlex_state = memo
                      # TODO: heredoc_indent

                      lexer.lex_strterm = lex_strterm
                      lexer.brace_nest  = brace_nest
                      lexer.string_nest = string_nest

                      lexer.cond.pop
                      lexer.cmdarg.pop

                      lexer.lex_state = oldlex_state

                      case stmt
                      when Sexp then
                        case stmt.sexp_type
                        when :str, :dstr, :evstr then
                          result = stmt
                        else
                          result = s(:evstr, stmt).line line
                        end
                      when nil then
                        result = s(:evstr).line line
                      else
                        debug 13
                        raise "unknown string body: #{stmt.inspect}"
                      end

    result
end

#_reduce_614(val, _values, result) ⇒ Object



12461
12462
12463
12464
12465
# File 'lib/ruby_parser30.rb', line 12461

def _reduce_614(val, _values, result)
                      result = wrap :gvar, val[0]

    result
end

#_reduce_615(val, _values, result) ⇒ Object



12467
12468
12469
12470
12471
# File 'lib/ruby_parser30.rb', line 12467

def _reduce_615(val, _values, result)
                      result = wrap :ivar, val[0]

    result
end

#_reduce_616(val, _values, result) ⇒ Object



12473
12474
12475
12476
12477
# File 'lib/ruby_parser30.rb', line 12473

def _reduce_616(val, _values, result)
                      result = wrap :cvar, val[0]

    result
end

#_reduce_62(val, _values, result) ⇒ Object

reduce 61 omitted



9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
# File 'lib/ruby_parser30.rb', line 9091

def _reduce_62(val, _values, result)
                      # TODO: numparam_name(p, fname);

                      (id, line), = val
                      old_in_def = self.in_def

                      self.in_def = true # group = local_push
                      self.env.extend
                      lexer.cmdarg.push false
                      lexer.cond.push false

                      result = [id.to_sym, line, old_in_def]

    result
end

#_reduce_620(val, _values, result) ⇒ Object

reduce 619 omitted



12485
12486
12487
12488
12489
12490
# File 'lib/ruby_parser30.rb', line 12485

def _reduce_620(val, _values, result)
                      lexer.lex_state = EXPR_END
                      result = wrap :lit, val[1]

    result
end

#_reduce_621(val, _values, result) ⇒ Object



12492
12493
12494
12495
12496
12497
# File 'lib/ruby_parser30.rb', line 12492

def _reduce_621(val, _values, result)
                      lexer.lex_state = EXPR_END
                      result = wrap :lit, val[0]

    result
end

#_reduce_626(val, _values, result) ⇒ Object

reduce 625 omitted



12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
# File 'lib/ruby_parser30.rb', line 12507

def _reduce_626(val, _values, result)
                      (_, line), result, _ = val

                      lexer.lex_state = EXPR_END

                      result ||= s(:str, "").line line

                      case result.sexp_type
                      when :dstr then
                        result.sexp_type = :dsym
                      when :str then
                        result = s(:lit, result.last.to_sym).line result.line
                      when :evstr then
                        result = s(:dsym, "", result).line result.line
                      else
                        debug 14
                      end

    result
end

#_reduce_628(val, _values, result) ⇒ Object

reduce 627 omitted



12530
12531
12532
12533
12534
12535
# File 'lib/ruby_parser30.rb', line 12530

def _reduce_628(val, _values, result)
                      _, (num, line) = val
                      result = [-num, line]

    result
end

#_reduce_63(val, _values, result) ⇒ Object



9107
9108
9109
9110
9111
# File 'lib/ruby_parser30.rb', line 9107

def _reduce_63(val, _values, result)
                      result = val

    result
end

#_reduce_638(val, _values, result) ⇒ Object

reduce 637 omitted



12555
12556
12557
12558
# File 'lib/ruby_parser30.rb', line 12555

def _reduce_638(val, _values, result)
 (_, line), = val; result = s(:nil).line line
    result
end

#_reduce_639(val, _values, result) ⇒ Object



12560
12561
12562
12563
# File 'lib/ruby_parser30.rb', line 12560

def _reduce_639(val, _values, result)
 (_, line), = val; result = s(:self).line line
    result
end

#_reduce_64(val, _values, result) ⇒ Object



9113
9114
9115
9116
9117
9118
# File 'lib/ruby_parser30.rb', line 9113

def _reduce_64(val, _values, result)
                      lexer.lex_state = EXPR_FNAME
                      self.in_argdef = true

    result
end

#_reduce_640(val, _values, result) ⇒ Object



12565
12566
12567
12568
# File 'lib/ruby_parser30.rb', line 12565

def _reduce_640(val, _values, result)
 (_, line), = val; result = s(:true).line line
    result
end

#_reduce_641(val, _values, result) ⇒ Object



12570
12571
12572
12573
# File 'lib/ruby_parser30.rb', line 12570

def _reduce_641(val, _values, result)
 (_, line), = val; result = s(:false).line line
    result
end

#_reduce_642(val, _values, result) ⇒ Object



12575
12576
12577
12578
# File 'lib/ruby_parser30.rb', line 12575

def _reduce_642(val, _values, result)
 (_, line), = val; result = s(:str, self.file).line line
    result
end

#_reduce_643(val, _values, result) ⇒ Object



12580
12581
12582
12583
# File 'lib/ruby_parser30.rb', line 12580

def _reduce_643(val, _values, result)
 (_, line), = val; result = s(:lit, line).line line
    result
end

#_reduce_644(val, _values, result) ⇒ Object



12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
# File 'lib/ruby_parser30.rb', line 12585

def _reduce_644(val, _values, result)
                      (_, l), = val
                      result =
                        if defined? Encoding then
                          s(:colon2, s(:const, :Encoding).line(l), :UTF_8).line l
                        else
                          s(:str, "Unsupported!").line l
                        end

    result
end

#_reduce_645(val, _values, result) ⇒ Object



12597
12598
12599
12600
12601
12602
12603
12604
12605
# File 'lib/ruby_parser30.rb', line 12597

def _reduce_645(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_646(val, _values, result) ⇒ Object



12607
12608
12609
12610
12611
12612
# File 'lib/ruby_parser30.rb', line 12607

def _reduce_646(val, _values, result)
                      var = val[0]
                      result = Sexp === var ? var : self.gettable(var)

    result
end

#_reduce_647(val, _values, result) ⇒ Object



12614
12615
12616
12617
12618
# File 'lib/ruby_parser30.rb', line 12614

def _reduce_647(val, _values, result)
                      result = self.assignable val[0]

    result
end

#_reduce_648(val, _values, result) ⇒ Object



12620
12621
12622
12623
12624
12625
# File 'lib/ruby_parser30.rb', line 12620

def _reduce_648(val, _values, result)
                      result = self.assignable val[0]
                      debug 15

    result
end

#_reduce_649(val, _values, result) ⇒ Object



12627
12628
12629
12630
12631
12632
# File 'lib/ruby_parser30.rb', line 12627

def _reduce_649(val, _values, result)
                      (ref, line), = val
                      result = s(:nth_ref, ref).line line

    result
end

#_reduce_65(val, _values, result) ⇒ Object



9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
# File 'lib/ruby_parser30.rb', line 9120

def _reduce_65(val, _values, result)
                      lexer.lex_state = EXPR_ENDFN|EXPR_LABEL
                      self.in_single += 1 # TODO: remove?

                      # self.in_def = true # local_push
                      # self.env.extend
                      # lexer.cmdarg.push false
                      # lexer.cond.push false

                      result = val

    result
end

#_reduce_650(val, _values, result) ⇒ Object



12634
12635
12636
12637
12638
12639
# File 'lib/ruby_parser30.rb', line 12634

def _reduce_650(val, _values, result)
                      (ref, line), = val
                      result = s(:back_ref, ref).line line

    result
end

#_reduce_651(val, _values, result) ⇒ Object



12641
12642
12643
12644
12645
12646
# File 'lib/ruby_parser30.rb', line 12641

def _reduce_651(val, _values, result)
                      lexer.lex_state = EXPR_BEG
                      lexer.command_start = true

    result
end

#_reduce_652(val, _values, result) ⇒ Object



12648
12649
12650
12651
12652
# File 'lib/ruby_parser30.rb', line 12648

def _reduce_652(val, _values, result)
                      result = val[2]

    result
end

#_reduce_653(val, _values, result) ⇒ Object



12654
12655
12656
12657
12658
# File 'lib/ruby_parser30.rb', line 12654

def _reduce_653(val, _values, result)
                      result = nil

    result
end

#_reduce_655(val, _values, result) ⇒ Object

reduce 654 omitted



12662
12663
12664
12665
12666
12667
# File 'lib/ruby_parser30.rb', line 12662

def _reduce_655(val, _values, result)
                      self.in_argdef = false
                      result = end_args val

    result
end

#_reduce_656(val, _values, result) ⇒ Object



12669
12670
12671
12672
12673
12674
# File 'lib/ruby_parser30.rb', line 12669

def _reduce_656(val, _values, result)
                      self.in_argdef = false
                      result = end_args val

    result
end

#_reduce_657(val, _values, result) ⇒ Object



12676
12677
12678
12679
12680
# File 'lib/ruby_parser30.rb', line 12676

def _reduce_657(val, _values, result)
                      result = end_args val

    result
end

#_reduce_658(val, _values, result) ⇒ Object



12682
12683
12684
12685
12686
# File 'lib/ruby_parser30.rb', line 12682

def _reduce_658(val, _values, result)
                      result = end_args val

    result
end

#_reduce_66(val, _values, result) ⇒ Object



9134
9135
9136
9137
9138
# File 'lib/ruby_parser30.rb', line 9134

def _reduce_66(val, _values, result)
                      result = value_expr(val[0])

    result
end

#_reduce_660(val, _values, result) ⇒ Object

reduce 659 omitted



12690
12691
12692
12693
12694
12695
12696
12697
# File 'lib/ruby_parser30.rb', line 12690

def _reduce_660(val, _values, result)
                      result = self.in_kwarg
                      self.in_kwarg = true
                      self.in_argdef = true
                      self.lexer.lex_state |= EXPR_LABEL

    result
end

#_reduce_661(val, _values, result) ⇒ Object



12699
12700
12701
12702
12703
12704
# File 'lib/ruby_parser30.rb', line 12699

def _reduce_661(val, _values, result)
                      self.in_argdef = false
                      result = end_args val

    result
end

#_reduce_662(val, _values, result) ⇒ Object



12706
12707
12708
12709
12710
# File 'lib/ruby_parser30.rb', line 12706

def _reduce_662(val, _values, result)
                      result = args val

    result
end

#_reduce_663(val, _values, result) ⇒ Object



12712
12713
12714
12715
12716
# File 'lib/ruby_parser30.rb', line 12712

def _reduce_663(val, _values, result)
                      result = args val

    result
end

#_reduce_664(val, _values, result) ⇒ Object



12718
12719
12720
12721
12722
# File 'lib/ruby_parser30.rb', line 12718

def _reduce_664(val, _values, result)
                      result = args val

    result
end

#_reduce_666(val, _values, result) ⇒ Object

reduce 665 omitted



12726
12727
12728
12729
12730
# File 'lib/ruby_parser30.rb', line 12726

def _reduce_666(val, _values, result)
                      result = val[1]

    result
end

#_reduce_667(val, _values, result) ⇒ Object



12732
12733
12734
12735
12736
# File 'lib/ruby_parser30.rb', line 12732

def _reduce_667(val, _values, result)
                      result = nil

    result
end

#_reduce_668(val, _values, result) ⇒ Object



12738
12739
12740
12741
12742
# File 'lib/ruby_parser30.rb', line 12738

def _reduce_668(val, _values, result)
                      result = args val

    result
end

#_reduce_669(val, _values, result) ⇒ Object



12744
12745
12746
12747
12748
# File 'lib/ruby_parser30.rb', line 12744

def _reduce_669(val, _values, result)
                      result = args val

    result
end

#_reduce_67(val, _values, result) ⇒ Object



9140
9141
9142
9143
9144
# File 'lib/ruby_parser30.rb', line 9140

def _reduce_67(val, _values, result)
                      lexer.cond.push true

    result
end

#_reduce_670(val, _values, result) ⇒ Object



12750
12751
12752
12753
12754
# File 'lib/ruby_parser30.rb', line 12750

def _reduce_670(val, _values, result)
                      result = args val

    result
end

#_reduce_671(val, _values, result) ⇒ Object



12756
12757
12758
12759
12760
# File 'lib/ruby_parser30.rb', line 12756

def _reduce_671(val, _values, result)
                      result = args val

    result
end

#_reduce_672(val, _values, result) ⇒ Object



12762
12763
12764
12765
12766
# File 'lib/ruby_parser30.rb', line 12762

def _reduce_672(val, _values, result)
                      result = args val

    result
end

#_reduce_673(val, _values, result) ⇒ Object



12768
12769
12770
12771
12772
# File 'lib/ruby_parser30.rb', line 12768

def _reduce_673(val, _values, result)
                      result = args val

    result
end

#_reduce_674(val, _values, result) ⇒ Object



12774
12775
12776
12777
12778
# File 'lib/ruby_parser30.rb', line 12774

def _reduce_674(val, _values, result)
                      result = args val

    result
end

#_reduce_675(val, _values, result) ⇒ Object



12780
12781
12782
12783
12784
# File 'lib/ruby_parser30.rb', line 12780

def _reduce_675(val, _values, result)
                      result = args val

    result
end

#_reduce_676(val, _values, result) ⇒ Object



12786
12787
12788
12789
12790
# File 'lib/ruby_parser30.rb', line 12786

def _reduce_676(val, _values, result)
                      result = args val

    result
end

#_reduce_677(val, _values, result) ⇒ Object



12792
12793
12794
12795
12796
# File 'lib/ruby_parser30.rb', line 12792

def _reduce_677(val, _values, result)
                      result = args val

    result
end

#_reduce_678(val, _values, result) ⇒ Object



12798
12799
12800
12801
12802
# File 'lib/ruby_parser30.rb', line 12798

def _reduce_678(val, _values, result)
                      result = args val

    result
end

#_reduce_679(val, _values, result) ⇒ Object



12804
12805
12806
12807
12808
# File 'lib/ruby_parser30.rb', line 12804

def _reduce_679(val, _values, result)
                      result = args val

    result
end

#_reduce_68(val, _values, result) ⇒ Object



9146
9147
9148
9149
9150
# File 'lib/ruby_parser30.rb', line 9146

def _reduce_68(val, _values, result)
                      lexer.cond.pop

    result
end

#_reduce_680(val, _values, result) ⇒ Object



12810
12811
12812
12813
12814
# File 'lib/ruby_parser30.rb', line 12810

def _reduce_680(val, _values, result)
                      result = args val

    result
end

#_reduce_681(val, _values, result) ⇒ Object



12816
12817
12818
12819
12820
# File 'lib/ruby_parser30.rb', line 12816

def _reduce_681(val, _values, result)
                      result = args val

    result
end

#_reduce_682(val, _values, result) ⇒ Object



12822
12823
12824
12825
12826
# File 'lib/ruby_parser30.rb', line 12822

def _reduce_682(val, _values, result)
                      result = args val

    result
end

#_reduce_683(val, _values, result) ⇒ Object



12828
12829
12830
12831
12832
12833
# File 'lib/ruby_parser30.rb', line 12828

def _reduce_683(val, _values, result)
                      (_, line), = val
                      result = s(:forward_args).line line

    result
end

#_reduce_684(val, _values, result) ⇒ Object



12835
12836
12837
12838
12839
# File 'lib/ruby_parser30.rb', line 12835

def _reduce_684(val, _values, result)
                      yyerror "formal argument cannot be a constant"

    result
end

#_reduce_685(val, _values, result) ⇒ Object



12841
12842
12843
12844
12845
# File 'lib/ruby_parser30.rb', line 12841

def _reduce_685(val, _values, result)
                      yyerror "formal argument cannot be an instance variable"

    result
end

#_reduce_686(val, _values, result) ⇒ Object



12847
12848
12849
12850
12851
# File 'lib/ruby_parser30.rb', line 12847

def _reduce_686(val, _values, result)
                      yyerror "formal argument cannot be a global variable"

    result
end

#_reduce_687(val, _values, result) ⇒ Object



12853
12854
12855
12856
12857
# File 'lib/ruby_parser30.rb', line 12853

def _reduce_687(val, _values, result)
                      yyerror "formal argument cannot be a class variable"

    result
end

#_reduce_689(val, _values, result) ⇒ Object

reduce 688 omitted



12861
12862
12863
12864
12865
12866
12867
12868
12869
# File 'lib/ruby_parser30.rb', line 12861

def _reduce_689(val, _values, result)
                      (id, line), = val
                      identifier = id.to_sym
                      self.env[identifier] = :lvar

                      result = [identifier, line]

    result
end

#_reduce_69(val, _values, result) ⇒ Object



9152
9153
9154
9155
9156
9157
# File 'lib/ruby_parser30.rb', line 9152

def _reduce_69(val, _values, result)
                      _, expr, _, _ = val
                      result = expr

    result
end

#_reduce_692(val, _values, result) ⇒ Object

reduce 691 omitted



12875
12876
12877
12878
12879
12880
12881
# File 'lib/ruby_parser30.rb', line 12875

def _reduce_692(val, _values, result)
                      _, margs, _ = val

                      result = margs

    result
end

#_reduce_693(val, _values, result) ⇒ Object



12883
12884
12885
12886
12887
# File 'lib/ruby_parser30.rb', line 12883

def _reduce_693(val, _values, result)
                      result = new_arg val

    result
end

#_reduce_694(val, _values, result) ⇒ Object



12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
# File 'lib/ruby_parser30.rb', line 12889

def _reduce_694(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_695(val, _values, result) ⇒ Object



12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
# File 'lib/ruby_parser30.rb', line 12910

def _reduce_695(val, _values, result)
                      label, = val
                      # arg_var(p, formal_argument(p, $1));
                      # p->cur_arg = get_id($1);
                      # p->max_numparam = ORDINAL_PARAM;
                      self.in_argdef = false
                      result = label

    result
end

#_reduce_696(val, _values, result) ⇒ Object



12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
# File 'lib/ruby_parser30.rb', line 12921

def _reduce_696(val, _values, result)
                      # TODO: new_kw_arg
                      (label, line), arg = val

                      identifier = label.to_sym
                      self.env[identifier] = :lvar
                      self.in_argdef = true

                      kwarg  = s(:kwarg, identifier, arg).line line
                      result = s(:array, kwarg).line line

    result
end

#_reduce_697(val, _values, result) ⇒ Object



12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
# File 'lib/ruby_parser30.rb', line 12935

def _reduce_697(val, _values, result)
                      (label, line), = val

                      id = label.to_sym
                      self.env[id] = :lvar
                      self.in_argdef = true

                      result = s(:array, s(:kwarg, id).line(line)).line line

    result
end

#_reduce_698(val, _values, result) ⇒ Object



12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
# File 'lib/ruby_parser30.rb', line 12947

def _reduce_698(val, _values, result)
                      # TODO: new_kw_arg
                      (label, line), expr = val
                      id = label.to_sym
                      self.env[id] = :lvar
                      self.in_argdef = true

                      result = s(:array, s(:kwarg, id, expr).line(line)).line line

    result
end

#_reduce_699(val, _values, result) ⇒ Object



12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
# File 'lib/ruby_parser30.rb', line 12959

def _reduce_699(val, _values, result)
                      # TODO: new_kw_arg
                      (label, line), = val
                      id = label.to_sym
                      self.env[id] = :lvar
                      self.in_argdef = true

                      result = s(:array, s(:kwarg, id).line(line)).line line

    result
end

#_reduce_701(val, _values, result) ⇒ Object

reduce 700 omitted



12973
12974
12975
12976
12977
12978
# File 'lib/ruby_parser30.rb', line 12973

def _reduce_701(val, _values, result)
                      list, _, item = val
                      result = list << item.last

    result
end

#_reduce_703(val, _values, result) ⇒ Object

reduce 702 omitted



12982
12983
12984
12985
12986
# File 'lib/ruby_parser30.rb', line 12982

def _reduce_703(val, _values, result)
                      result = args val

    result
end

#_reduce_706(val, _values, result) ⇒ Object

reduce 705 omitted



12992
12993
12994
12995
12996
12997
# File 'lib/ruby_parser30.rb', line 12992

def _reduce_706(val, _values, result)
                      (_, line), _ = val
                      result = [:"**nil", line]

    result
end

#_reduce_707(val, _values, result) ⇒ Object



12999
13000
13001
13002
13003
13004
13005
13006
13007
# File 'lib/ruby_parser30.rb', line 12999

def _reduce_707(val, _values, result)
                      _, (id, line) = val

                      name = id.to_sym
                      self.assignable [name, line]
                      result = [:"**#{name}", line]

    result
end

#_reduce_708(val, _values, result) ⇒ Object



13009
13010
13011
13012
13013
13014
13015
13016
# File 'lib/ruby_parser30.rb', line 13009

def _reduce_708(val, _values, result)
                      (_, line), = val
                      id = :"**"
                      self.env[id] = :lvar
                      result = [id, line]

    result
end

#_reduce_709(val, _values, result) ⇒ Object



13018
13019
13020
13021
13022
13023
13024
13025
13026
# File 'lib/ruby_parser30.rb', line 13018

def _reduce_709(val, _values, result)
                      lhs, _, rhs = val
                      self.in_argdef = true
                      result = self.assignable lhs, rhs
                      # TODO: detect duplicate names
                      # TODO? p->cur_arg = 0;

    result
end

#_reduce_710(val, _values, result) ⇒ Object



13028
13029
13030
13031
13032
13033
13034
13035
# File 'lib/ruby_parser30.rb', line 13028

def _reduce_710(val, _values, result)
                      lhs, _, rhs = val
                      self.in_argdef = true
                      result = self.assignable lhs, rhs
                      # TODO? p->cur_arg = 0;

    result
end

#_reduce_711(val, _values, result) ⇒ Object



13037
13038
13039
13040
13041
13042
# File 'lib/ruby_parser30.rb', line 13037

def _reduce_711(val, _values, result)
                      optblk, = val
                      result = s(:block, optblk).line optblk.line

    result
end

#_reduce_712(val, _values, result) ⇒ Object



13044
13045
13046
13047
13048
13049
13050
# File 'lib/ruby_parser30.rb', line 13044

def _reduce_712(val, _values, result)
                      optarg, _, optblk = val
                      result = optarg
                      result << optblk

    result
end

#_reduce_713(val, _values, result) ⇒ Object



13052
13053
13054
13055
13056
13057
# File 'lib/ruby_parser30.rb', line 13052

def _reduce_713(val, _values, result)
                      opt, = val
                      result = s(:block, opt).line opt.line

    result
end

#_reduce_714(val, _values, result) ⇒ Object



13059
13060
13061
13062
13063
# File 'lib/ruby_parser30.rb', line 13059

def _reduce_714(val, _values, result)
                      result = self.block_append val[0], val[2]

    result
end

#_reduce_717(val, _values, result) ⇒ Object

reduce 716 omitted



13069
13070
13071
13072
13073
13074
13075
13076
13077
# File 'lib/ruby_parser30.rb', line 13069

def _reduce_717(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_718(val, _values, result) ⇒ Object



13079
13080
13081
13082
13083
13084
13085
13086
# File 'lib/ruby_parser30.rb', line 13079

def _reduce_718(val, _values, result)
                      (_, line), = val
                      name = :"*"
                      self.env[name] = :lvar
                      result = [name, line]

    result
end

#_reduce_721(val, _values, result) ⇒ Object

reduce 720 omitted



13092
13093
13094
13095
13096
13097
13098
13099
13100
# File 'lib/ruby_parser30.rb', line 13092

def _reduce_721(val, _values, result)
                      _, (id, line) = val
                      identifier = id.to_sym

                      self.env[identifier] = :lvar
                      result = ["&#{identifier}".to_sym, line]

    result
end

#_reduce_722(val, _values, result) ⇒ Object



13102
13103
13104
13105
13106
13107
13108
# File 'lib/ruby_parser30.rb', line 13102

def _reduce_722(val, _values, result)
                      (_, line), = val

                      result = [:&, line]

    result
end

#_reduce_723(val, _values, result) ⇒ Object



13110
13111
13112
13113
13114
13115
# File 'lib/ruby_parser30.rb', line 13110

def _reduce_723(val, _values, result)
                      _, arg = val
                      result = arg

    result
end

#_reduce_724(val, _values, result) ⇒ Object



13117
13118
13119
13120
13121
# File 'lib/ruby_parser30.rb', line 13117

def _reduce_724(val, _values, result)
                      result = nil

    result
end

#_reduce_726(val, _values, result) ⇒ Object

reduce 725 omitted



13125
13126
13127
13128
13129
# File 'lib/ruby_parser30.rb', line 13125

def _reduce_726(val, _values, result)
                      lexer.lex_state = EXPR_BEG

    result
end

#_reduce_727(val, _values, result) ⇒ Object



13131
13132
13133
13134
13135
13136
13137
# File 'lib/ruby_parser30.rb', line 13131

def _reduce_727(val, _values, result)
                      result = val[2]
                      yyerror "Can't define single method for literals." if
                        result.sexp_type == :lit

    result
end

#_reduce_728(val, _values, result) ⇒ Object



13139
13140
13141
13142
13143
# File 'lib/ruby_parser30.rb', line 13139

def _reduce_728(val, _values, result)
                      result = s(:array).line lexer.lineno

    result
end

#_reduce_73(val, _values, result) ⇒ Object

reduce 72 omitted



9165
9166
9167
9168
9169
9170
# File 'lib/ruby_parser30.rb', line 9165

def _reduce_73(val, _values, result)
                      blk, _, (msg, _line), args = val
                      result = new_call(blk, msg.to_sym, args).line blk.line

    result
end

#_reduce_731(val, _values, result) ⇒ Object

reduce 730 omitted



13149
13150
13151
13152
13153
13154
13155
13156
13157
# File 'lib/ruby_parser30.rb', line 13149

def _reduce_731(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_732(val, _values, result) ⇒ Object



13159
13160
13161
13162
13163
13164
# File 'lib/ruby_parser30.rb', line 13159

def _reduce_732(val, _values, result)
                      v1, _, v2 = val
                      result = s(:array, v1, v2).line v1.line

    result
end

#_reduce_733(val, _values, result) ⇒ Object



13166
13167
13168
13169
13170
13171
13172
13173
# File 'lib/ruby_parser30.rb', line 13166

def _reduce_733(val, _values, result)
                      label, arg = val

                      lit = wrap :lit, label
                      result = s(:array, lit, arg).line lit.line

    result
end

#_reduce_734(val, _values, result) ⇒ Object



13175
13176
13177
13178
13179
13180
13181
13182
# File 'lib/ruby_parser30.rb', line 13175

def _reduce_734(val, _values, result)
                      lit = wrap :lit, val[0]
                      arg = nil

                      result = s(:array, lit, arg).line lit.line

    result
end

#_reduce_735(val, _values, result) ⇒ Object



13184
13185
13186
13187
13188
13189
13190
13191
13192
# File 'lib/ruby_parser30.rb', line 13184

def _reduce_735(val, _values, result)
                      (_, line), sym, _, value = val

                      sym.sexp_type = :dsym

                      result = s(:array, sym, value).line line

    result
end

#_reduce_736(val, _values, result) ⇒ Object



13194
13195
13196
13197
13198
13199
13200
# File 'lib/ruby_parser30.rb', line 13194

def _reduce_736(val, _values, result)
                      _, arg = val
                      line = arg.line
                      result = s(:array, s(:kwsplat, arg).line(line)).line line

    result
end

#_reduce_74(val, _values, result) ⇒ Object



9172
9173
9174
9175
9176
9177
# File 'lib/ruby_parser30.rb', line 9172

def _reduce_74(val, _values, result)
                      # self.env.extend(:dynamic)
                      result = self.lexer.lineno

    result
end

#_reduce_75(val, _values, result) ⇒ Object



9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
# File 'lib/ruby_parser30.rb', line 9179

def _reduce_75(val, _values, result)
                      _, line, body, _ = val

                      result = body
                      result.line line

                      # self.env.unextend

    result
end

#_reduce_757(val, _values, result) ⇒ Object

reduce 756 omitted



13242
13243
13244
13245
13246
13247
# File 'lib/ruby_parser30.rb', line 13242

def _reduce_757(val, _values, result)
                      _, close = val # TODO: include lineno in close?
                      result = [close, lexer.lineno]

    result
end

#_reduce_758(val, _values, result) ⇒ Object



13249
13250
13251
13252
13253
13254
# File 'lib/ruby_parser30.rb', line 13249

def _reduce_758(val, _values, result)
                      _, close = val
                      result = [close, lexer.lineno]

    result
end

#_reduce_759(val, _values, result) ⇒ Object



13256
13257
13258
13259
13260
13261
# File 'lib/ruby_parser30.rb', line 13256

def _reduce_759(val, _values, result)
                      _, close = val
                      result = [close, lexer.lineno]

    result
end

#_reduce_76(val, _values, result) ⇒ Object



9190
9191
9192
9193
9194
9195
# File 'lib/ruby_parser30.rb', line 9190

def _reduce_76(val, _values, result)
                      (msg, line), = val
                      result = new_call(nil, msg.to_sym).line line

    result
end

#_reduce_763(val, _values, result) ⇒ Object

reduce 762 omitted



13269
13270
13271
13272
# File 'lib/ruby_parser30.rb', line 13269

def _reduce_763(val, _values, result)
 yyerrok
    result
end

#_reduce_766(val, _values, result) ⇒ Object

reduce 765 omitted



13278
13279
13280
13281
# File 'lib/ruby_parser30.rb', line 13278

def _reduce_766(val, _values, result)
 yyerrok
    result
end

#_reduce_767(val, _values, result) ⇒ Object



13283
13284
13285
13286
# File 'lib/ruby_parser30.rb', line 13283

def _reduce_767(val, _values, result)
 result = nil;
    result
end

#_reduce_77(val, _values, result) ⇒ Object



9197
9198
9199
9200
9201
9202
# File 'lib/ruby_parser30.rb', line 9197

def _reduce_77(val, _values, result)
                      call, args = val
                      result = call.concat args.sexp_body

    result
end

#_reduce_78(val, _values, result) ⇒ Object



9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
# File 'lib/ruby_parser30.rb', line 9204

def _reduce_78(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_79(val, _values, result) ⇒ Object



9219
9220
9221
9222
9223
9224
9225
9226
# File 'lib/ruby_parser30.rb', line 9219

def _reduce_79(val, _values, result)
                      lhs, callop, (op, _), args = val

                      result = new_call lhs, op.to_sym, args, callop
                      result.line lhs.line

    result
end

#_reduce_80(val, _values, result) ⇒ Object



9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
# File 'lib/ruby_parser30.rb', line 9228

def _reduce_80(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_81(val, _values, result) ⇒ Object



9240
9241
9242
9243
9244
9245
9246
9247
# File 'lib/ruby_parser30.rb', line 9240

def _reduce_81(val, _values, result)
                      lhs, _, (id, line), args = val

                      result = new_call lhs, id.to_sym, args
                      result.line line

    result
end

#_reduce_82(val, _values, result) ⇒ Object



9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
# File 'lib/ruby_parser30.rb', line 9249

def _reduce_82(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_83(val, _values, result) ⇒ Object



9261
9262
9263
9264
9265
# File 'lib/ruby_parser30.rb', line 9261

def _reduce_83(val, _values, result)
                      result = new_super val[1]

    result
end

#_reduce_84(val, _values, result) ⇒ Object



9267
9268
9269
9270
9271
9272
9273
# File 'lib/ruby_parser30.rb', line 9267

def _reduce_84(val, _values, result)
                      (_, line), args = val
                      result = new_yield args
                      result.line line # TODO: push to new_yield

    result
end

#_reduce_85(val, _values, result) ⇒ Object



9275
9276
9277
9278
9279
9280
# File 'lib/ruby_parser30.rb', line 9275

def _reduce_85(val, _values, result)
                      line = val[0].last
                      result = s(:return, ret_args(val[1])).line(line)

    result
end

#_reduce_86(val, _values, result) ⇒ Object



9282
9283
9284
9285
9286
9287
# File 'lib/ruby_parser30.rb', line 9282

def _reduce_86(val, _values, result)
                      (_, line), args = val
                      result = s(:break, ret_args(args)).line line

    result
end

#_reduce_87(val, _values, result) ⇒ Object



9289
9290
9291
9292
9293
9294
# File 'lib/ruby_parser30.rb', line 9289

def _reduce_87(val, _values, result)
                      line = val[0].last
                      result = s(:next, ret_args(val[1])).line(line)

    result
end

#_reduce_89(val, _values, result) ⇒ Object

reduce 88 omitted



9298
9299
9300
9301
9302
# File 'lib/ruby_parser30.rb', line 9298

def _reduce_89(val, _values, result)
                      result = val[1]

    result
end

#_reduce_9(val, _values, result) ⇒ Object

reduce 8 omitted



8716
8717
8718
8719
8720
8721
8722
8723
8724
# File 'lib/ruby_parser30.rb', line 8716

def _reduce_9(val, _values, result)
                      if (self.in_def || self.in_single > 0) then
                        debug 1
                        yyerror "BEGIN in method"
                      end
                      self.env.extend

    result
end

#_reduce_91(val, _values, result) ⇒ Object

reduce 90 omitted



9306
9307
9308
9309
9310
9311
9312
9313
# File 'lib/ruby_parser30.rb', line 9306

def _reduce_91(val, _values, result)
                      _, arg, _ = val
                      l = arg.line

                      result = s(:masgn, s(:array, arg).line(l)).line l

    result
end

#_reduce_92(val, _values, result) ⇒ Object



9315
9316
9317
9318
9319
9320
# File 'lib/ruby_parser30.rb', line 9315

def _reduce_92(val, _values, result)
                      head, = val
                      result = s(:masgn, head).line head.line

    result
end

#_reduce_93(val, _values, result) ⇒ Object



9322
9323
9324
9325
9326
9327
# File 'lib/ruby_parser30.rb', line 9322

def _reduce_93(val, _values, result)
                      lhs, rhs = val
                      result = s(:masgn, lhs << rhs.compact).line lhs.line

    result
end

#_reduce_94(val, _values, result) ⇒ Object



9329
9330
9331
9332
9333
9334
9335
# File 'lib/ruby_parser30.rb', line 9329

def _reduce_94(val, _values, result)
                      head, _, tail = val
                      head << s(:splat, tail).line(tail.line)
                      result = s(:masgn, head).line head.line

    result
end

#_reduce_95(val, _values, result) ⇒ Object



9337
9338
9339
9340
9341
9342
9343
9344
9345
# File 'lib/ruby_parser30.rb', line 9337

def _reduce_95(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_96(val, _values, result) ⇒ Object



9347
9348
9349
9350
9351
9352
9353
# File 'lib/ruby_parser30.rb', line 9347

def _reduce_96(val, _values, result)
                      head, _ = val
                      l = head.line
                      result = s(:masgn, head << s(:splat).line(l)).line l

    result
end

#_reduce_97(val, _values, result) ⇒ Object



9355
9356
9357
9358
9359
9360
9361
9362
# File 'lib/ruby_parser30.rb', line 9355

def _reduce_97(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_98(val, _values, result) ⇒ Object



9364
9365
9366
9367
9368
9369
9370
9371
9372
# File 'lib/ruby_parser30.rb', line 9364

def _reduce_98(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_99(val, _values, result) ⇒ Object



9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
# File 'lib/ruby_parser30.rb', line 9374

def _reduce_99(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_none(val, _values, result) ⇒ Object



13288
13289
13290
# File 'lib/ruby_parser30.rb', line 13288

def _reduce_none(val, _values, result)
  val[0]
end