Class: Ruby27Parser

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

Direct Known Subclasses

RubyParser::V27

Constant Summary collapse

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



8473
8474
8475
8476
8477
# File 'lib/ruby_parser27.rb', line 8473

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

    result
end

#_reduce_10(val, _values, result) ⇒ Object



8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
# File 'lib/ruby_parser27.rb', line 8519

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



9152
9153
9154
9155
9156
# File 'lib/ruby_parser27.rb', line 9152

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

    result
end

#_reduce_101(val, _values, result) ⇒ Object



9158
9159
9160
9161
9162
9163
# File 'lib/ruby_parser27.rb', line 9158

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

    result
end

#_reduce_102(val, _values, result) ⇒ Object



9165
9166
9167
9168
9169
# File 'lib/ruby_parser27.rb', line 9165

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

    result
end

#_reduce_103(val, _values, result) ⇒ Object



9171
9172
9173
9174
9175
# File 'lib/ruby_parser27.rb', line 9171

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

    result
end

#_reduce_104(val, _values, result) ⇒ Object



9177
9178
9179
9180
9181
# File 'lib/ruby_parser27.rb', line 9177

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

    result
end

#_reduce_105(val, _values, result) ⇒ Object



9183
9184
9185
9186
9187
# File 'lib/ruby_parser27.rb', line 9183

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

    result
end

#_reduce_106(val, _values, result) ⇒ Object



9189
9190
9191
9192
9193
9194
9195
# File 'lib/ruby_parser27.rb', line 9189

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

                      result = new_attrasgn lhs, id, call_op

    result
end

#_reduce_107(val, _values, result) ⇒ Object



9197
9198
9199
9200
9201
9202
# File 'lib/ruby_parser27.rb', line 9197

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

    result
end

#_reduce_108(val, _values, result) ⇒ Object



9204
9205
9206
9207
9208
9209
9210
# File 'lib/ruby_parser27.rb', line 9204

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

                      result = new_attrasgn lhs, id, call_op

    result
end

#_reduce_109(val, _values, result) ⇒ Object



9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
# File 'lib/ruby_parser27.rb', line 9212

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

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

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

    result
end

#_reduce_11(val, _values, result) ⇒ Object



8531
8532
8533
8534
# File 'lib/ruby_parser27.rb', line 8531

def _reduce_11(val, _values, result)
 result = lexer.lineno
    result
end

#_reduce_110(val, _values, result) ⇒ Object



9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
# File 'lib/ruby_parser27.rb', line 9226

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

                      _, (id, l) = val

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

    result
end

#_reduce_111(val, _values, result) ⇒ Object



9239
9240
9241
9242
9243
9244
9245
# File 'lib/ruby_parser27.rb', line 9239

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

                      self.backref_assign_error ref

    result
end

#_reduce_112(val, _values, result) ⇒ Object



9247
9248
9249
9250
9251
9252
9253
# File 'lib/ruby_parser27.rb', line 9247

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

                      result = self.assignable var

    result
end

#_reduce_113(val, _values, result) ⇒ Object



9255
9256
9257
9258
9259
9260
9261
9262
9263
# File 'lib/ruby_parser27.rb', line 9255

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

                      result = self.assignable var

                      debug 16

    result
end

#_reduce_114(val, _values, result) ⇒ Object



9265
9266
9267
9268
9269
9270
9271
# File 'lib/ruby_parser27.rb', line 9265

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

                      result = self.aryset lhs, args

    result
end

#_reduce_115(val, _values, result) ⇒ Object



9273
9274
9275
9276
9277
9278
9279
# File 'lib/ruby_parser27.rb', line 9273

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

                      result = new_attrasgn lhs, id, op

    result
end

#_reduce_116(val, _values, result) ⇒ Object



9281
9282
9283
9284
9285
9286
9287
# File 'lib/ruby_parser27.rb', line 9281

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

                      result = new_attrasgn lhs, id

    result
end

#_reduce_117(val, _values, result) ⇒ Object



9289
9290
9291
9292
9293
9294
9295
# File 'lib/ruby_parser27.rb', line 9289

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

                      result = new_attrasgn lhs, id, call_op

    result
end

#_reduce_118(val, _values, result) ⇒ Object



9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
# File 'lib/ruby_parser27.rb', line 9297

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

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

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

    result
end

#_reduce_119(val, _values, result) ⇒ Object



9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
# File 'lib/ruby_parser27.rb', line 9311

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

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

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

    result
end

#_reduce_12(val, _values, result) ⇒ Object



8536
8537
8538
8539
8540
8541
# File 'lib/ruby_parser27.rb', line 8536

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

    result
end

#_reduce_120(val, _values, result) ⇒ Object



9324
9325
9326
9327
9328
# File 'lib/ruby_parser27.rb', line 9324

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

    result
end

#_reduce_121(val, _values, result) ⇒ Object



9330
9331
9332
9333
9334
# File 'lib/ruby_parser27.rb', line 9330

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

    result
end

#_reduce_123(val, _values, result) ⇒ Object

reduce 122 omitted



9338
9339
9340
9341
9342
# File 'lib/ruby_parser27.rb', line 9338

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

    result
end

#_reduce_124(val, _values, result) ⇒ Object



9344
9345
9346
9347
9348
9349
# File 'lib/ruby_parser27.rb', line 9344

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

    result
end

#_reduce_125(val, _values, result) ⇒ Object



9351
9352
9353
9354
9355
9356
9357
9358
# File 'lib/ruby_parser27.rb', line 9351

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

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

    result
end

#_reduce_129(val, _values, result) ⇒ Object

reduce 128 omitted



9366
9367
9368
9369
9370
# File 'lib/ruby_parser27.rb', line 9366

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

    result
end

#_reduce_13(val, _values, result) ⇒ Object



8543
8544
8545
8546
8547
8548
8549
8550
# File 'lib/ruby_parser27.rb', line 8543

def _reduce_13(val, _values, result)
                      res = _values[-2]
                      # TODO: move down to main match so I can just use val

                      yyerror "else without rescue is useless" unless res

    result
end

#_reduce_131(val, _values, result) ⇒ Object

reduce 130 omitted



9374
9375
9376
9377
9378
# File 'lib/ruby_parser27.rb', line 9374

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

    result
end

#_reduce_133(val, _values, result) ⇒ Object

reduce 132 omitted



9382
9383
9384
9385
9386
# File 'lib/ruby_parser27.rb', line 9382

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

    result
end

#_reduce_134(val, _values, result) ⇒ Object



9388
9389
9390
9391
9392
# File 'lib/ruby_parser27.rb', line 9388

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

    result
end

#_reduce_135(val, _values, result) ⇒ Object



9394
9395
9396
9397
9398
# File 'lib/ruby_parser27.rb', line 9394

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

    result
end

#_reduce_14(val, _values, result) ⇒ Object



8552
8553
8554
8555
8556
8557
8558
# File 'lib/ruby_parser27.rb', line 8552

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

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

    result
end

#_reduce_15(val, _values, result) ⇒ Object



8560
8561
8562
8563
8564
8565
8566
# File 'lib/ruby_parser27.rb', line 8560

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

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

    result
end

#_reduce_16(val, _values, result) ⇒ Object



8568
8569
8570
8571
8572
# File 'lib/ruby_parser27.rb', line 8568

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

    result
end

#_reduce_19(val, _values, result) ⇒ Object

reduce 18 omitted



8578
8579
8580
8581
8582
# File 'lib/ruby_parser27.rb', line 8578

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

    result
end

#_reduce_2(val, _values, result) ⇒ Object



8479
8480
8481
8482
8483
8484
8485
8486
# File 'lib/ruby_parser27.rb', line 8479

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

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

    result
end

#_reduce_20(val, _values, result) ⇒ Object



8584
8585
8586
8587
8588
8589
# File 'lib/ruby_parser27.rb', line 8584

def _reduce_20(val, _values, result)
                      result = val[1]
                      debug 12

    result
end

#_reduce_207(val, _values, result) ⇒ Object

reduce 206 omitted



9542
9543
9544
9545
9546
# File 'lib/ruby_parser27.rb', line 9542

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

    result
end

#_reduce_208(val, _values, result) ⇒ Object



9548
9549
9550
9551
9552
# File 'lib/ruby_parser27.rb', line 9548

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

    result
end

#_reduce_209(val, _values, result) ⇒ Object



9554
9555
9556
9557
9558
# File 'lib/ruby_parser27.rb', line 9554

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

    result
end

#_reduce_210(val, _values, result) ⇒ Object



9560
9561
9562
9563
9564
# File 'lib/ruby_parser27.rb', line 9560

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

    result
end

#_reduce_211(val, _values, result) ⇒ Object



9566
9567
9568
9569
9570
# File 'lib/ruby_parser27.rb', line 9566

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

    result
end

#_reduce_212(val, _values, result) ⇒ Object



9572
9573
9574
9575
9576
9577
9578
# File 'lib/ruby_parser27.rb', line 9572

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



9580
9581
9582
9583
9584
9585
9586
9587
# File 'lib/ruby_parser27.rb', line 9580

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



9589
9590
9591
9592
9593
9594
9595
9596
# File 'lib/ruby_parser27.rb', line 9589

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

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

    result
end

#_reduce_215(val, _values, result) ⇒ Object



9598
9599
9600
9601
9602
9603
9604
# File 'lib/ruby_parser27.rb', line 9598

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

    result
end

#_reduce_216(val, _values, result) ⇒ Object



9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
# File 'lib/ruby_parser27.rb', line 9606

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



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

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



9628
9629
9630
9631
9632
9633
9634
9635
# File 'lib/ruby_parser27.rb', line 9628

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

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

    result
end

#_reduce_219(val, _values, result) ⇒ Object



9637
9638
9639
9640
9641
9642
9643
9644
# File 'lib/ruby_parser27.rb', line 9637

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

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

    result
end

#_reduce_22(val, _values, result) ⇒ Object

reduce 21 omitted



8593
8594
8595
8596
8597
# File 'lib/ruby_parser27.rb', line 8593

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

    result
end

#_reduce_220(val, _values, result) ⇒ Object



9646
9647
9648
9649
9650
9651
9652
9653
# File 'lib/ruby_parser27.rb', line 9646

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

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

    result
end

#_reduce_221(val, _values, result) ⇒ Object



9655
9656
9657
9658
9659
9660
9661
9662
# File 'lib/ruby_parser27.rb', line 9655

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

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

    result
end

#_reduce_222(val, _values, result) ⇒ Object



9664
9665
9666
9667
9668
# File 'lib/ruby_parser27.rb', line 9664

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

    result
end

#_reduce_223(val, _values, result) ⇒ Object



9670
9671
9672
9673
9674
# File 'lib/ruby_parser27.rb', line 9670

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

    result
end

#_reduce_224(val, _values, result) ⇒ Object



9676
9677
9678
9679
9680
# File 'lib/ruby_parser27.rb', line 9676

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

    result
end

#_reduce_225(val, _values, result) ⇒ Object



9682
9683
9684
9685
9686
# File 'lib/ruby_parser27.rb', line 9682

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

    result
end

#_reduce_226(val, _values, result) ⇒ Object



9688
9689
9690
9691
9692
# File 'lib/ruby_parser27.rb', line 9688

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

    result
end

#_reduce_227(val, _values, result) ⇒ Object



9694
9695
9696
9697
9698
# File 'lib/ruby_parser27.rb', line 9694

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

    result
end

#_reduce_228(val, _values, result) ⇒ Object



9700
9701
9702
9703
9704
9705
9706
9707
# File 'lib/ruby_parser27.rb', line 9700

def _reduce_228(val, _values, result)
                      _, (num, line), _, arg = val
                      lit = s(:lit, num).line line
                      result = new_call(new_call(lit, :"**", argl(arg)), :"-@")


    result
end

#_reduce_229(val, _values, result) ⇒ Object



9709
9710
9711
9712
9713
# File 'lib/ruby_parser27.rb', line 9709

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

    result
end

#_reduce_23(val, _values, result) ⇒ Object



8599
8600
8601
8602
8603
# File 'lib/ruby_parser27.rb', line 8599

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

    result
end

#_reduce_230(val, _values, result) ⇒ Object



9715
9716
9717
9718
9719
# File 'lib/ruby_parser27.rb', line 9715

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

    result
end

#_reduce_231(val, _values, result) ⇒ Object



9721
9722
9723
9724
9725
# File 'lib/ruby_parser27.rb', line 9721

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

    result
end

#_reduce_232(val, _values, result) ⇒ Object



9727
9728
9729
9730
9731
# File 'lib/ruby_parser27.rb', line 9727

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

    result
end

#_reduce_233(val, _values, result) ⇒ Object



9733
9734
9735
9736
9737
# File 'lib/ruby_parser27.rb', line 9733

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

    result
end

#_reduce_234(val, _values, result) ⇒ Object



9739
9740
9741
9742
9743
# File 'lib/ruby_parser27.rb', line 9739

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

    result
end

#_reduce_236(val, _values, result) ⇒ Object

reduce 235 omitted



9747
9748
9749
9750
9751
# File 'lib/ruby_parser27.rb', line 9747

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

    result
end

#_reduce_237(val, _values, result) ⇒ Object



9753
9754
9755
9756
9757
# File 'lib/ruby_parser27.rb', line 9753

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

    result
end

#_reduce_238(val, _values, result) ⇒ Object



9759
9760
9761
9762
9763
# File 'lib/ruby_parser27.rb', line 9759

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

    result
end

#_reduce_239(val, _values, result) ⇒ Object



9765
9766
9767
9768
9769
9770
# File 'lib/ruby_parser27.rb', line 9765

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

    result
end

#_reduce_24(val, _values, result) ⇒ Object



8605
8606
8607
8608
8609
# File 'lib/ruby_parser27.rb', line 8605

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

    result
end

#_reduce_240(val, _values, result) ⇒ Object



9772
9773
9774
9775
9776
9777
# File 'lib/ruby_parser27.rb', line 9772

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

    result
end

#_reduce_241(val, _values, result) ⇒ Object



9779
9780
9781
9782
9783
9784
9785
# File 'lib/ruby_parser27.rb', line 9779

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

    result
end

#_reduce_242(val, _values, result) ⇒ Object



9787
9788
9789
9790
9791
# File 'lib/ruby_parser27.rb', line 9787

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

    result
end

#_reduce_243(val, _values, result) ⇒ Object



9793
9794
9795
9796
9797
9798
9799
# File 'lib/ruby_parser27.rb', line 9793

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



9801
9802
9803
9804
9805
9806
9807
# File 'lib/ruby_parser27.rb', line 9801

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



9809
9810
9811
9812
9813
# File 'lib/ruby_parser27.rb', line 9809

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

    result
end

#_reduce_246(val, _values, result) ⇒ Object



9815
9816
9817
9818
9819
# File 'lib/ruby_parser27.rb', line 9815

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

    result
end

#_reduce_247(val, _values, result) ⇒ Object



9821
9822
9823
9824
9825
9826
# File 'lib/ruby_parser27.rb', line 9821

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

    result
end

#_reduce_248(val, _values, result) ⇒ Object



9828
9829
9830
9831
9832
9833
# File 'lib/ruby_parser27.rb', line 9828

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

    result
end

#_reduce_25(val, _values, result) ⇒ Object



8611
8612
8613
8614
8615
8616
# File 'lib/ruby_parser27.rb', line 8611

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

    result
end

#_reduce_254(val, _values, result) ⇒ Object

reduce 253 omitted



9845
9846
9847
9848
9849
9850
# File 'lib/ruby_parser27.rb', line 9845

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

    result
end

#_reduce_255(val, _values, result) ⇒ Object



9852
9853
9854
9855
9856
9857
9858
# File 'lib/ruby_parser27.rb', line 9852

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



9860
9861
9862
9863
9864
# File 'lib/ruby_parser27.rb', line 9860

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

    result
end

#_reduce_258(val, _values, result) ⇒ Object

reduce 257 omitted



9868
9869
9870
9871
9872
# File 'lib/ruby_parser27.rb', line 9868

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

    result
end

#_reduce_259(val, _values, result) ⇒ Object



9874
9875
9876
9877
9878
# File 'lib/ruby_parser27.rb', line 9874

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

    result
end

#_reduce_26(val, _values, result) ⇒ Object



8618
8619
8620
8621
8622
8623
# File 'lib/ruby_parser27.rb', line 8618

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

    result
end

#_reduce_260(val, _values, result) ⇒ Object



9880
9881
9882
9883
9884
# File 'lib/ruby_parser27.rb', line 9880

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

    result
end

#_reduce_262(val, _values, result) ⇒ Object

reduce 261 omitted



9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
# File 'lib/ruby_parser27.rb', line 9888

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



9899
9900
9901
9902
9903
9904
9905
9906
# File 'lib/ruby_parser27.rb', line 9899

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

                      result = args
                      result.line_max = line_max if args

    result
end

#_reduce_264(val, _values, result) ⇒ Object



9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
# File 'lib/ruby_parser27.rb', line 9908

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



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

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



8625
8626
8627
8628
8629
8630
# File 'lib/ruby_parser27.rb', line 8625

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

    result
end

#_reduce_270(val, _values, result) ⇒ Object

reduce 269 omitted



9938
9939
9940
9941
9942
# File 'lib/ruby_parser27.rb', line 9938

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

    result
end

#_reduce_271(val, _values, result) ⇒ Object



9944
9945
9946
9947
9948
# File 'lib/ruby_parser27.rb', line 9944

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

    result
end

#_reduce_272(val, _values, result) ⇒ Object



9950
9951
9952
9953
9954
# File 'lib/ruby_parser27.rb', line 9950

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

    result
end

#_reduce_273(val, _values, result) ⇒ Object



9956
9957
9958
9959
9960
9961
# File 'lib/ruby_parser27.rb', line 9956

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

    result
end

#_reduce_274(val, _values, result) ⇒ Object



9963
9964
9965
9966
9967
# File 'lib/ruby_parser27.rb', line 9963

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

    result
end

#_reduce_275(val, _values, result) ⇒ Object



9969
9970
9971
9972
9973
# File 'lib/ruby_parser27.rb', line 9969

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

    result
end

#_reduce_276(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_277(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_278(val, _values, result) ⇒ Object



9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
# File 'lib/ruby_parser27.rb', line 9987

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



10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
# File 'lib/ruby_parser27.rb', line 10007

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



8632
8633
8634
8635
8636
# File 'lib/ruby_parser27.rb', line 8632

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

    result
end

#_reduce_280(val, _values, result) ⇒ Object



10027
10028
10029
10030
10031
10032
# File 'lib/ruby_parser27.rb', line 10027

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

    result
end

#_reduce_281(val, _values, result) ⇒ Object



10034
10035
10036
10037
10038
# File 'lib/ruby_parser27.rb', line 10034

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

    result
end

#_reduce_283(val, _values, result) ⇒ Object

reduce 282 omitted



10042
10043
10044
10045
10046
10047
10048
10049
# File 'lib/ruby_parser27.rb', line 10042

def _reduce_283(val, _values, result)
                      arg, = val
                      lineno = arg.line || lexer.lineno # HACK

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

    result
end

#_reduce_284(val, _values, result) ⇒ Object



10051
10052
10053
10054
10055
10056
# File 'lib/ruby_parser27.rb', line 10051

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

    result
end

#_reduce_285(val, _values, result) ⇒ Object



10058
10059
10060
10061
10062
10063
# File 'lib/ruby_parser27.rb', line 10058

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

    result
end

#_reduce_286(val, _values, result) ⇒ Object



10065
10066
10067
10068
10069
10070
10071
10072
# File 'lib/ruby_parser27.rb', line 10065

def _reduce_286(val, _values, result)
                      # TODO: the line number from tSTAR has been dropped
                      args, _, _, id = val
                      line = lexer.lineno
                      result = self.list_append args, s(:splat, id).line(line)

    result
end

#_reduce_287(val, _values, result) ⇒ Object



10074
10075
10076
10077
10078
# File 'lib/ruby_parser27.rb', line 10074

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

    result
end

#_reduce_288(val, _values, result) ⇒ Object



10080
10081
10082
10083
10084
# File 'lib/ruby_parser27.rb', line 10080

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

    result
end

#_reduce_289(val, _values, result) ⇒ Object



10086
10087
10088
10089
10090
# File 'lib/ruby_parser27.rb', line 10086

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

    result
end

#_reduce_29(val, _values, result) ⇒ Object



8638
8639
8640
8641
8642
# File 'lib/ruby_parser27.rb', line 8638

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

    result
end

#_reduce_290(val, _values, result) ⇒ Object



10092
10093
10094
10095
10096
10097
10098
# File 'lib/ruby_parser27.rb', line 10092

def _reduce_290(val, _values, result)
                      # TODO: make all tXXXX terminals include lexer.lineno
                      arg, _, _, splat = val
                      result = self.arg_concat arg, splat

    result
end

#_reduce_291(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_3(val, _values, result) ⇒ Object



8488
8489
8490
8491
8492
8493
# File 'lib/ruby_parser27.rb', line 8488

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

    result
end

#_reduce_30(val, _values, result) ⇒ Object



8644
8645
8646
8647
8648
8649
# File 'lib/ruby_parser27.rb', line 8644

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

    result
end

#_reduce_302(val, _values, result) ⇒ Object

reduce 301 omitted



10127
10128
10129
10130
10131
10132
10133
# File 'lib/ruby_parser27.rb', line 10127

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

    result
end

#_reduce_303(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_304(val, _values, result) ⇒ Object



10141
10142
10143
10144
10145
10146
# File 'lib/ruby_parser27.rb', line 10141

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

    result
end

#_reduce_305(val, _values, result) ⇒ Object



10148
10149
10150
10151
10152
10153
# File 'lib/ruby_parser27.rb', line 10148

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

    result
end

#_reduce_306(val, _values, result) ⇒ Object



10155
10156
10157
10158
10159
10160
# File 'lib/ruby_parser27.rb', line 10155

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

    result
end

#_reduce_307(val, _values, result) ⇒ Object



10162
10163
10164
10165
10166
# File 'lib/ruby_parser27.rb', line 10162

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

    result
end

#_reduce_308(val, _values, result) ⇒ Object



10168
10169
10170
10171
10172
10173
10174
# File 'lib/ruby_parser27.rb', line 10168

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

    result
end

#_reduce_309(val, _values, result) ⇒ Object



10176
10177
10178
10179
10180
10181
10182
10183
# File 'lib/ruby_parser27.rb', line 10176

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

    result
end

#_reduce_31(val, _values, result) ⇒ Object



8651
8652
8653
8654
8655
8656
# File 'lib/ruby_parser27.rb', line 8651

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

    result
end

#_reduce_310(val, _values, result) ⇒ Object



10185
10186
10187
10188
10189
10190
10191
# File 'lib/ruby_parser27.rb', line 10185

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

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

    result
end

#_reduce_311(val, _values, result) ⇒ Object



10193
10194
10195
10196
10197
# File 'lib/ruby_parser27.rb', line 10193

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

    result
end

#_reduce_312(val, _values, result) ⇒ Object



10199
10200
10201
10202
# File 'lib/ruby_parser27.rb', line 10199

def _reduce_312(val, _values, result)
 result = lexer.lineno
    result
end

#_reduce_313(val, _values, result) ⇒ Object



10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
# File 'lib/ruby_parser27.rb', line 10204

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



10215
10216
10217
10218
10219
# File 'lib/ruby_parser27.rb', line 10215

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

    result
end

#_reduce_315(val, _values, result) ⇒ Object



10221
10222
10223
10224
10225
# File 'lib/ruby_parser27.rb', line 10221

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

    result
end

#_reduce_316(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_317(val, _values, result) ⇒ Object



10234
10235
10236
10237
10238
10239
10240
# File 'lib/ruby_parser27.rb', line 10234

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

                      result = new_yield(args).line line

    result
end

#_reduce_318(val, _values, result) ⇒ Object



10242
10243
10244
10245
10246
10247
10248
# File 'lib/ruby_parser27.rb', line 10242

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

                      result = new_yield.line line

    result
end

#_reduce_319(val, _values, result) ⇒ Object



10250
10251
10252
10253
10254
10255
10256
# File 'lib/ruby_parser27.rb', line 10250

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

                      result = new_yield.line line

    result
end

#_reduce_32(val, _values, result) ⇒ Object



8658
8659
8660
8661
8662
8663
# File 'lib/ruby_parser27.rb', line 8658

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

    result
end

#_reduce_320(val, _values, result) ⇒ Object



10258
10259
10260
10261
10262
10263
10264
# File 'lib/ruby_parser27.rb', line 10258

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

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

    result
end

#_reduce_321(val, _values, result) ⇒ Object



10266
10267
10268
10269
10270
10271
# File 'lib/ruby_parser27.rb', line 10266

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

    result
end

#_reduce_322(val, _values, result) ⇒ Object



10273
10274
10275
10276
10277
# File 'lib/ruby_parser27.rb', line 10273

def _reduce_322(val, _values, result)
                      debug 20

    result
end

#_reduce_323(val, _values, result) ⇒ Object



10279
10280
10281
10282
10283
10284
10285
10286
10287
# File 'lib/ruby_parser27.rb', line 10279

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

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

    result
end

#_reduce_325(val, _values, result) ⇒ Object

reduce 324 omitted



10291
10292
10293
10294
10295
10296
10297
10298
# File 'lib/ruby_parser27.rb', line 10291

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

    result
end

#_reduce_326(val, _values, result) ⇒ Object



10300
10301
10302
10303
10304
10305
# File 'lib/ruby_parser27.rb', line 10300

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

    result
end

#_reduce_327(val, _values, result) ⇒ Object



10307
10308
10309
10310
10311
10312
# File 'lib/ruby_parser27.rb', line 10307

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

    result
end

#_reduce_328(val, _values, result) ⇒ Object



10314
10315
10316
10317
10318
10319
# File 'lib/ruby_parser27.rb', line 10314

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

    result
end

#_reduce_329(val, _values, result) ⇒ Object



10321
10322
10323
10324
10325
10326
# File 'lib/ruby_parser27.rb', line 10321

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

    result
end

#_reduce_33(val, _values, result) ⇒ Object



8665
8666
8667
8668
8669
8670
# File 'lib/ruby_parser27.rb', line 8665

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

    result
end

#_reduce_330(val, _values, result) ⇒ Object



10328
10329
10330
10331
10332
10333
# File 'lib/ruby_parser27.rb', line 10328

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

    result
end

#_reduce_331(val, _values, result) ⇒ Object



10335
10336
10337
10338
10339
10340
# File 'lib/ruby_parser27.rb', line 10335

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

    result
end

#_reduce_332(val, _values, result) ⇒ Object



10342
10343
10344
10345
10346
10347
# File 'lib/ruby_parser27.rb', line 10342

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

    result
end

#_reduce_333(val, _values, result) ⇒ Object



10349
10350
10351
10352
10353
10354
10355
# File 'lib/ruby_parser27.rb', line 10349

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

                      result = new_case expr, body, line

    result
end

#_reduce_334(val, _values, result) ⇒ Object



10357
10358
10359
10360
10361
10362
# File 'lib/ruby_parser27.rb', line 10357

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

    result
end

#_reduce_335(val, _values, result) ⇒ Object



10364
10365
10366
10367
10368
10369
10370
10371
# File 'lib/ruby_parser27.rb', line 10364

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



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

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

    result
end

#_reduce_337(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_338(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_339(val, _values, result) ⇒ Object



10395
10396
10397
10398
10399
10400
# File 'lib/ruby_parser27.rb', line 10395

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

    result
end

#_reduce_34(val, _values, result) ⇒ Object



8672
8673
8674
8675
8676
8677
8678
8679
# File 'lib/ruby_parser27.rb', line 8672

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

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

    result
end

#_reduce_340(val, _values, result) ⇒ Object



10402
10403
10404
10405
10406
10407
10408
10409
# File 'lib/ruby_parser27.rb', line 10402

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

                      self.env.extend

    result
end

#_reduce_341(val, _values, result) ⇒ Object



10411
10412
10413
10414
10415
10416
# File 'lib/ruby_parser27.rb', line 10411

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

    result
end

#_reduce_342(val, _values, result) ⇒ Object



10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
# File 'lib/ruby_parser27.rb', line 10418

def _reduce_342(val, _values, result)
                      result = self.in_def

                      self.in_def = true # group = local_push
                      self.env.extend
                      lexer.cmdarg.push false
                      lexer.cond.push false

    result
end

#_reduce_343(val, _values, result) ⇒ Object



10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
# File 'lib/ruby_parser27.rb', line 10429

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



10440
10441
10442
10443
10444
# File 'lib/ruby_parser27.rb', line 10440

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

    result
end

#_reduce_345(val, _values, result) ⇒ Object



10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
# File 'lib/ruby_parser27.rb', line 10446

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

                      self.in_single += 1 # TODO: remove?

                      self.in_def = true # local_push
                      self.env.extend
                      lexer.cmdarg.push false
                      lexer.cond.push false

                      lexer.lex_state = EXPR_ENDFN|EXPR_LABEL

    result
end

#_reduce_346(val, _values, result) ⇒ Object



10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
# File 'lib/ruby_parser27.rb', line 10461

def _reduce_346(val, _values, result)
                      # [kdef, recv, _, _, (name, line), in_def, args, body, kend]
                      # =>
                      # [kdef, recv, (name, line), in_def, args, body, kend]

                      val.delete_at 3
                      val.delete_at 2

                      result, in_def = new_defs val

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

                      self.in_single -= 1

                      # TODO: restore cur_arg ? what's cur_arg?

    result
end

#_reduce_347(val, _values, result) ⇒ Object



10483
10484
10485
10486
10487
10488
# File 'lib/ruby_parser27.rb', line 10483

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

    result
end

#_reduce_348(val, _values, result) ⇒ Object



10490
10491
10492
10493
10494
10495
# File 'lib/ruby_parser27.rb', line 10490

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

    result
end

#_reduce_349(val, _values, result) ⇒ Object



10497
10498
10499
10500
10501
10502
# File 'lib/ruby_parser27.rb', line 10497

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

    result
end

#_reduce_35(val, _values, result) ⇒ Object



8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
# File 'lib/ruby_parser27.rb', line 8681

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

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

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

    result
end

#_reduce_350(val, _values, result) ⇒ Object



10504
10505
10506
10507
10508
10509
# File 'lib/ruby_parser27.rb', line 10504

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

    result
end

#_reduce_351(val, _values, result) ⇒ Object



10511
10512
10513
10514
10515
# File 'lib/ruby_parser27.rb', line 10511

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

    result
end

#_reduce_359(val, _values, result) ⇒ Object

reduce 358 omitted



10531
10532
10533
10534
10535
# File 'lib/ruby_parser27.rb', line 10531

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

    result
end

#_reduce_360(val, _values, result) ⇒ Object



10537
10538
10539
10540
10541
# File 'lib/ruby_parser27.rb', line 10537

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

    result
end

#_reduce_361(val, _values, result) ⇒ Object



10543
10544
10545
10546
10547
# File 'lib/ruby_parser27.rb', line 10543

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

    result
end

#_reduce_37(val, _values, result) ⇒ Object

reduce 36 omitted



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

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

    result
end

#_reduce_377(val, _values, result) ⇒ Object

reduce 376 omitted



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

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

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

    result
end

#_reduce_379(val, _values, result) ⇒ Object

reduce 378 omitted



10589
10590
10591
10592
10593
# File 'lib/ruby_parser27.rb', line 10589

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

    result
end

#_reduce_38(val, _values, result) ⇒ Object



8702
8703
8704
8705
8706
8707
8708
# File 'lib/ruby_parser27.rb', line 8702

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

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

    result
end

#_reduce_381(val, _values, result) ⇒ Object

reduce 380 omitted



10597
10598
10599
10600
10601
# File 'lib/ruby_parser27.rb', line 10597

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

    result
end

#_reduce_383(val, _values, result) ⇒ Object

reduce 382 omitted



10605
10606
10607
10608
10609
# File 'lib/ruby_parser27.rb', line 10605

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

    result
end

#_reduce_384(val, _values, result) ⇒ Object



10611
10612
10613
10614
10615
10616
10617
# File 'lib/ruby_parser27.rb', line 10611

def _reduce_384(val, _values, result)
                      sym, = val

                      result = s(:array, sym).line lexer.lineno

    result
end

#_reduce_385(val, _values, result) ⇒ Object



10619
10620
10621
10622
10623
# File 'lib/ruby_parser27.rb', line 10619

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

    result
end

#_reduce_386(val, _values, result) ⇒ Object



10625
10626
10627
10628
10629
10630
10631
# File 'lib/ruby_parser27.rb', line 10625

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

                      result = block_var args

    result
end

#_reduce_387(val, _values, result) ⇒ Object



10633
10634
10635
10636
10637
10638
10639
# File 'lib/ruby_parser27.rb', line 10633

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

                      result = block_var args, rest

    result
end

#_reduce_388(val, _values, result) ⇒ Object



10641
10642
10643
10644
10645
10646
10647
# File 'lib/ruby_parser27.rb', line 10641

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

                      result = block_var lhs, splat, rhs

    result
end

#_reduce_389(val, _values, result) ⇒ Object



10649
10650
10651
10652
10653
10654
10655
# File 'lib/ruby_parser27.rb', line 10649

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

                      result = block_var rest

    result
end

#_reduce_39(val, _values, result) ⇒ Object



8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
# File 'lib/ruby_parser27.rb', line 8710

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



10657
10658
10659
10660
10661
10662
10663
# File 'lib/ruby_parser27.rb', line 10657

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

                      result = block_var splat, rest

    result
end

#_reduce_391(val, _values, result) ⇒ Object



10665
10666
10667
10668
10669
10670
10671
10672
# File 'lib/ruby_parser27.rb', line 10665

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

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

    result
end

#_reduce_392(val, _values, result) ⇒ Object



10674
10675
10676
10677
10678
10679
# File 'lib/ruby_parser27.rb', line 10674

def _reduce_392(val, _values, result)
                      result = args [:*]
                      result.line lexer.lineno # FIX: tSTAR -> line

    result
end

#_reduce_393(val, _values, result) ⇒ Object



10681
10682
10683
10684
10685
# File 'lib/ruby_parser27.rb', line 10681

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

    result
end

#_reduce_394(val, _values, result) ⇒ Object



10687
10688
10689
10690
10691
# File 'lib/ruby_parser27.rb', line 10687

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

    result
end

#_reduce_395(val, _values, result) ⇒ Object



10693
10694
10695
10696
10697
# File 'lib/ruby_parser27.rb', line 10693

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

    result
end

#_reduce_396(val, _values, result) ⇒ Object



10699
10700
10701
10702
10703
# File 'lib/ruby_parser27.rb', line 10699

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

    result
end

#_reduce_397(val, _values, result) ⇒ Object



10705
10706
10707
10708
10709
10710
10711
# File 'lib/ruby_parser27.rb', line 10705

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

    result
end

#_reduce_398(val, _values, result) ⇒ Object



10713
10714
10715
10716
10717
# File 'lib/ruby_parser27.rb', line 10713

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

    result
end

#_reduce_40(val, _values, result) ⇒ Object



8721
8722
8723
8724
8725
# File 'lib/ruby_parser27.rb', line 8721

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

    result
end

#_reduce_400(val, _values, result) ⇒ Object

reduce 399 omitted



10721
10722
10723
10724
10725
# File 'lib/ruby_parser27.rb', line 10721

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

    result
end

#_reduce_401(val, _values, result) ⇒ Object



10727
10728
10729
10730
10731
# File 'lib/ruby_parser27.rb', line 10727

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

    result
end

#_reduce_402(val, _values, result) ⇒ Object



10733
10734
10735
10736
10737
# File 'lib/ruby_parser27.rb', line 10733

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

    result
end

#_reduce_403(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_404(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_405(val, _values, result) ⇒ Object



10751
10752
10753
10754
10755
# File 'lib/ruby_parser27.rb', line 10751

def _reduce_405(val, _values, result)
                      result = args(val) << nil

    result
end

#_reduce_406(val, _values, result) ⇒ Object



10757
10758
10759
10760
10761
# File 'lib/ruby_parser27.rb', line 10757

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

    result
end

#_reduce_407(val, _values, result) ⇒ Object



10763
10764
10765
10766
10767
# File 'lib/ruby_parser27.rb', line 10763

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

    result
end

#_reduce_408(val, _values, result) ⇒ Object



10769
10770
10771
10772
10773
# File 'lib/ruby_parser27.rb', line 10769

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

    result
end

#_reduce_409(val, _values, result) ⇒ Object



10775
10776
10777
10778
10779
# File 'lib/ruby_parser27.rb', line 10775

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

    result
end

#_reduce_410(val, _values, result) ⇒ Object



10781
10782
10783
10784
10785
# File 'lib/ruby_parser27.rb', line 10781

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

    result
end

#_reduce_411(val, _values, result) ⇒ Object



10787
10788
10789
10790
10791
# File 'lib/ruby_parser27.rb', line 10787

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

    result
end

#_reduce_412(val, _values, result) ⇒ Object



10793
10794
10795
10796
10797
# File 'lib/ruby_parser27.rb', line 10793

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

    result
end

#_reduce_413(val, _values, result) ⇒ Object



10799
10800
10801
10802
10803
# File 'lib/ruby_parser27.rb', line 10799

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

    result
end

#_reduce_414(val, _values, result) ⇒ Object



10805
10806
10807
10808
10809
# File 'lib/ruby_parser27.rb', line 10805

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

    result
end

#_reduce_415(val, _values, result) ⇒ Object



10811
10812
10813
10814
# File 'lib/ruby_parser27.rb', line 10811

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

#_reduce_416(val, _values, result) ⇒ Object



10816
10817
10818
10819
10820
# File 'lib/ruby_parser27.rb', line 10816

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

    result
end

#_reduce_417(val, _values, result) ⇒ Object



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

def _reduce_417(val, _values, result)
                      # TODO: current_arg = 0
                      result = args val

    result
end

#_reduce_418(val, _values, result) ⇒ Object



10829
10830
10831
10832
10833
# File 'lib/ruby_parser27.rb', line 10829

def _reduce_418(val, _values, result)
                      result = s(:args).line lexer.lineno

    result
end

#_reduce_419(val, _values, result) ⇒ Object



10835
10836
10837
10838
10839
10840
# File 'lib/ruby_parser27.rb', line 10835

def _reduce_419(val, _values, result)
                      # TODO: current_arg = 0
                      result = args val

    result
end

#_reduce_42(val, _values, result) ⇒ Object

reduce 41 omitted



8729
8730
8731
8732
8733
# File 'lib/ruby_parser27.rb', line 8729

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

    result
end

#_reduce_421(val, _values, result) ⇒ Object

reduce 420 omitted



10844
10845
10846
10847
10848
# File 'lib/ruby_parser27.rb', line 10844

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

    result
end

#_reduce_422(val, _values, result) ⇒ Object



10850
10851
10852
10853
10854
# File 'lib/ruby_parser27.rb', line 10850

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

    result
end

#_reduce_423(val, _values, result) ⇒ Object



10856
10857
10858
10859
10860
# File 'lib/ruby_parser27.rb', line 10856

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

    result
end

#_reduce_424(val, _values, result) ⇒ Object



10862
10863
10864
10865
10866
# File 'lib/ruby_parser27.rb', line 10862

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

    result
end

#_reduce_426(val, _values, result) ⇒ Object

reduce 425 omitted



10870
10871
10872
10873
10874
10875
10876
10877
# File 'lib/ruby_parser27.rb', line 10870

def _reduce_426(val, _values, result)
                      self.env.extend :dynamic
                      result = [lexer.lineno, lexer.lpar_beg]
                      lexer.paren_nest += 1
                      lexer.lpar_beg = lexer.paren_nest

    result
end

#_reduce_427(val, _values, result) ⇒ Object



10879
10880
10881
10882
10883
# File 'lib/ruby_parser27.rb', line 10879

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

    result
end

#_reduce_428(val, _values, result) ⇒ Object



10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
# File 'lib/ruby_parser27.rb', line 10885

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



10899
10900
10901
10902
10903
# File 'lib/ruby_parser27.rb', line 10899

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

    result
end

#_reduce_43(val, _values, result) ⇒ Object



8735
8736
8737
8738
8739
# File 'lib/ruby_parser27.rb', line 8735

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

    result
end

#_reduce_430(val, _values, result) ⇒ Object



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

def _reduce_430(val, _values, result)
                      result = val[0]
                      result = 0 if result == s(:args)

    result
end

#_reduce_431(val, _values, result) ⇒ Object



10912
10913
10914
10915
10916
# File 'lib/ruby_parser27.rb', line 10912

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

    result
end

#_reduce_432(val, _values, result) ⇒ Object



10918
10919
10920
10921
10922
# File 'lib/ruby_parser27.rb', line 10918

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

    result
end

#_reduce_433(val, _values, result) ⇒ Object



10924
10925
10926
10927
10928
10929
# File 'lib/ruby_parser27.rb', line 10924

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

    result
end

#_reduce_434(val, _values, result) ⇒ Object



10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
# File 'lib/ruby_parser27.rb', line 10931

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



10952
10953
10954
10955
10956
10957
10958
# File 'lib/ruby_parser27.rb', line 10952

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

                      result = new_call lhs, id.to_sym, args

    result
end

#_reduce_436(val, _values, result) ⇒ Object



10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
# File 'lib/ruby_parser27.rb', line 10960

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



10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
# File 'lib/ruby_parser27.rb', line 10971

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



10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
# File 'lib/ruby_parser27.rb', line 10982

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



10995
10996
10997
10998
10999
11000
11001
11002
# File 'lib/ruby_parser27.rb', line 10995

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



8741
8742
8743
8744
8745
# File 'lib/ruby_parser27.rb', line 8741

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

    result
end

#_reduce_440(val, _values, result) ⇒ Object



11004
11005
11006
11007
11008
11009
11010
# File 'lib/ruby_parser27.rb', line 11004

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

                      result = new_call recv, op.to_sym, args

    result
end

#_reduce_441(val, _values, result) ⇒ Object



11012
11013
11014
11015
11016
11017
11018
# File 'lib/ruby_parser27.rb', line 11012

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

                      result = new_call lhs, id.to_sym

    result
end

#_reduce_442(val, _values, result) ⇒ Object



11020
11021
11022
11023
11024
# File 'lib/ruby_parser27.rb', line 11020

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

    result
end

#_reduce_443(val, _values, result) ⇒ Object



11026
11027
11028
11029
11030
# File 'lib/ruby_parser27.rb', line 11026

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

    result
end

#_reduce_444(val, _values, result) ⇒ Object



11032
11033
11034
11035
11036
# File 'lib/ruby_parser27.rb', line 11032

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

    result
end

#_reduce_445(val, _values, result) ⇒ Object



11038
11039
11040
11041
11042
# File 'lib/ruby_parser27.rb', line 11038

def _reduce_445(val, _values, result)
                      result = s(:zsuper).line lexer.lineno

    result
end

#_reduce_446(val, _values, result) ⇒ Object



11044
11045
11046
11047
11048
# File 'lib/ruby_parser27.rb', line 11044

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

    result
end

#_reduce_447(val, _values, result) ⇒ Object



11050
11051
11052
11053
11054
11055
# File 'lib/ruby_parser27.rb', line 11050

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

    result
end

#_reduce_448(val, _values, result) ⇒ Object



11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
# File 'lib/ruby_parser27.rb', line 11057

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

                      result = body
                      result.line line

                      self.env.unextend

    result
end

#_reduce_449(val, _values, result) ⇒ Object



11068
11069
11070
11071
11072
11073
# File 'lib/ruby_parser27.rb', line 11068

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

    result
end

#_reduce_45(val, _values, result) ⇒ Object



8747
8748
8749
8750
8751
8752
8753
8754
8755
# File 'lib/ruby_parser27.rb', line 8747

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



11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
# File 'lib/ruby_parser27.rb', line 11075

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

                      result = body
                      result.line line

                      self.env.unextend

    result
end

#_reduce_451(val, _values, result) ⇒ Object



11086
11087
11088
11089
# File 'lib/ruby_parser27.rb', line 11086

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

#_reduce_452(val, _values, result) ⇒ Object



11091
11092
11093
11094
# File 'lib/ruby_parser27.rb', line 11091

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

#_reduce_453(val, _values, result) ⇒ Object



11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
# File 'lib/ruby_parser27.rb', line 11096

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



11107
11108
11109
11110
# File 'lib/ruby_parser27.rb', line 11107

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

#_reduce_455(val, _values, result) ⇒ Object



11112
11113
11114
11115
# File 'lib/ruby_parser27.rb', line 11112

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

#_reduce_456(val, _values, result) ⇒ Object



11117
11118
11119
11120
11121
11122
11123
11124
11125
# File 'lib/ruby_parser27.rb', line 11117

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

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

    result
end

#_reduce_457(val, _values, result) ⇒ Object



11127
11128
11129
11130
11131
11132
11133
# File 'lib/ruby_parser27.rb', line 11127

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

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

    result
end

#_reduce_458(val, _values, result) ⇒ Object



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

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

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

    result
end

#_reduce_459(val, _values, result) ⇒ Object



11143
11144
11145
11146
11147
11148
11149
# File 'lib/ruby_parser27.rb', line 11143

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

                      result = self.list_append args, id

    result
end

#_reduce_46(val, _values, result) ⇒ Object



8757
8758
8759
8760
8761
8762
8763
8764
8765
# File 'lib/ruby_parser27.rb', line 8757

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



11151
11152
11153
11154
11155
11156
11157
# File 'lib/ruby_parser27.rb', line 11151

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

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

    result
end

#_reduce_461(val, _values, result) ⇒ Object



11159
11160
11161
11162
11163
# File 'lib/ruby_parser27.rb', line 11159

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

    result
end

#_reduce_462(val, _values, result) ⇒ Object



11165
11166
11167
11168
11169
11170
11171
# File 'lib/ruby_parser27.rb', line 11165

def _reduce_462(val, _values, result)
                      result = new_when(val[2], val[4])
                      result.line val[1]
                      result << val[5] if val[5]

    result
end

#_reduce_465(val, _values, result) ⇒ Object

reduce 464 omitted



11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
# File 'lib/ruby_parser27.rb', line 11177

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



11188
11189
11190
11191
11192
11193
11194
11195
# File 'lib/ruby_parser27.rb', line 11188

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

    result
end

#_reduce_467(val, _values, result) ⇒ Object



11197
11198
11199
11200
11201
11202
11203
# File 'lib/ruby_parser27.rb', line 11197

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

                      result = new_in pat, body, cases, line

    result
end

#_reduce_47(val, _values, result) ⇒ Object



8767
8768
8769
8770
8771
8772
8773
# File 'lib/ruby_parser27.rb', line 8767

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



11211
11212
11213
11214
11215
11216
11217
11218
# File 'lib/ruby_parser27.rb', line 11211

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

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

    result
end

#_reduce_472(val, _values, result) ⇒ Object



11220
11221
11222
11223
11224
11225
11226
11227
# File 'lib/ruby_parser27.rb', line 11220

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

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

    result
end

#_reduce_474(val, _values, result) ⇒ Object

reduce 473 omitted



11231
11232
11233
11234
11235
11236
11237
11238
# File 'lib/ruby_parser27.rb', line 11231

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



11240
11241
11242
11243
11244
11245
11246
# File 'lib/ruby_parser27.rb', line 11240

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

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

    result
end

#_reduce_476(val, _values, result) ⇒ Object



11248
11249
11250
11251
11252
11253
# File 'lib/ruby_parser27.rb', line 11248

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

    result
end

#_reduce_477(val, _values, result) ⇒ Object



11255
11256
11257
11258
11259
11260
# File 'lib/ruby_parser27.rb', line 11255

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

    result
end

#_reduce_479(val, _values, result) ⇒ Object

reduce 478 omitted



11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
# File 'lib/ruby_parser27.rb', line 11264

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



8775
8776
8777
8778
8779
8780
8781
# File 'lib/ruby_parser27.rb', line 8775

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

reduce 480 omitted



11283
11284
11285
11286
11287
11288
11289
# File 'lib/ruby_parser27.rb', line 11283

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

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

    result
end

#_reduce_483(val, _values, result) ⇒ Object

reduce 482 omitted



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

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

#_reduce_484(val, _values, result) ⇒ Object



11298
11299
11300
11301
# File 'lib/ruby_parser27.rb', line 11298

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

#_reduce_486(val, _values, result) ⇒ Object

reduce 485 omitted



11305
11306
11307
11308
11309
11310
11311
11312
# File 'lib/ruby_parser27.rb', line 11305

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

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

    result
end

#_reduce_487(val, _values, result) ⇒ Object



11314
11315
11316
11317
11318
11319
11320
11321
# File 'lib/ruby_parser27.rb', line 11314

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

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

    result
end

#_reduce_488(val, _values, result) ⇒ Object



11323
11324
11325
11326
11327
11328
11329
11330
# File 'lib/ruby_parser27.rb', line 11323

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



11332
11333
11334
11335
11336
11337
11338
11339
# File 'lib/ruby_parser27.rb', line 11332

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

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

    result
end

#_reduce_49(val, _values, result) ⇒ Object



8783
8784
8785
8786
8787
# File 'lib/ruby_parser27.rb', line 8783

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

    result
end

#_reduce_490(val, _values, result) ⇒ Object



11341
11342
11343
11344
11345
11346
11347
# File 'lib/ruby_parser27.rb', line 11341

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

                      result = new_hash_pattern const, kwargs, const.line

    result
end

#_reduce_491(val, _values, result) ⇒ Object



11349
11350
11351
11352
11353
11354
11355
11356
# File 'lib/ruby_parser27.rb', line 11349

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



11358
11359
11360
11361
# File 'lib/ruby_parser27.rb', line 11358

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

#_reduce_493(val, _values, result) ⇒ Object



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

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

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

    result
end

#_reduce_494(val, _values, result) ⇒ Object



11372
11373
11374
11375
11376
11377
11378
# File 'lib/ruby_parser27.rb', line 11372

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

                      result = s(:array_pat).line line

    result
end

#_reduce_495(val, _values, result) ⇒ Object



11380
11381
11382
11383
11384
11385
11386
# File 'lib/ruby_parser27.rb', line 11380

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

    result
end

#_reduce_496(val, _values, result) ⇒ Object



11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
# File 'lib/ruby_parser27.rb', line 11388

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



11399
11400
11401
11402
11403
11404
11405
11406
# File 'lib/ruby_parser27.rb', line 11399

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

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

    result
end

#_reduce_498(val, _values, result) ⇒ Object



11408
11409
11410
11411
# File 'lib/ruby_parser27.rb', line 11408

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

#_reduce_499(val, _values, result) ⇒ Object



11413
11414
11415
11416
11417
11418
11419
11420
# File 'lib/ruby_parser27.rb', line 11413

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

                      pop_pktbl
                      result = expr

    result
end

#_reduce_50(val, _values, result) ⇒ Object



8789
8790
8791
8792
8793
8794
# File 'lib/ruby_parser27.rb', line 8789

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

    result
end

#_reduce_500(val, _values, result) ⇒ Object



11422
11423
11424
11425
11426
11427
11428
11429
# File 'lib/ruby_parser27.rb', line 11422

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



11431
11432
11433
11434
11435
11436
11437
# File 'lib/ruby_parser27.rb', line 11431

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

                      result = new_array_pattern_tail head, true, nil, nil

    result
end

#_reduce_502(val, _values, result) ⇒ Object



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

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



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

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



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

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



11468
11469
11470
11471
11472
11473
11474
# File 'lib/ruby_parser27.rb', line 11468

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

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

    result
end

#_reduce_506(val, _values, result) ⇒ Object



11476
11477
11478
11479
11480
11481
11482
# File 'lib/ruby_parser27.rb', line 11476

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

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

    result
end

#_reduce_508(val, _values, result) ⇒ Object

reduce 507 omitted



11486
11487
11488
11489
11490
11491
# File 'lib/ruby_parser27.rb', line 11486

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

    result
end

#_reduce_509(val, _values, result) ⇒ Object



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

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

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

    result
end

#_reduce_51(val, _values, result) ⇒ Object



8796
8797
8798
8799
8800
8801
8802
8803
8804
# File 'lib/ruby_parser27.rb', line 8796

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



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

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

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

    result
end

#_reduce_511(val, _values, result) ⇒ Object



11511
11512
11513
11514
11515
11516
11517
11518
# File 'lib/ruby_parser27.rb', line 11511

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

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

    result
end

#_reduce_512(val, _values, result) ⇒ Object



11520
11521
11522
11523
11524
11525
11526
11527
# File 'lib/ruby_parser27.rb', line 11520

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

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

    result
end

#_reduce_513(val, _values, result) ⇒ Object



11529
11530
11531
11532
11533
11534
11535
11536
# File 'lib/ruby_parser27.rb', line 11529

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

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

    result
end

#_reduce_515(val, _values, result) ⇒ Object

reduce 514 omitted



11540
11541
11542
11543
11544
11545
11546
# File 'lib/ruby_parser27.rb', line 11540

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

                      result = array_pat_concat lhs, rhs

    result
end

#_reduce_516(val, _values, result) ⇒ Object



11548
11549
11550
11551
11552
11553
11554
11555
# File 'lib/ruby_parser27.rb', line 11548

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

    result
end

#_reduce_517(val, _values, result) ⇒ Object



11557
11558
11559
11560
11561
11562
11563
# File 'lib/ruby_parser27.rb', line 11557

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



11565
11566
11567
11568
11569
11570
11571
# File 'lib/ruby_parser27.rb', line 11565

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

    result
end

#_reduce_519(val, _values, result) ⇒ Object



11573
11574
11575
11576
11577
11578
11579
# File 'lib/ruby_parser27.rb', line 11573

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

    result
end

#_reduce_520(val, _values, result) ⇒ Object



11581
11582
11583
11584
11585
11586
11587
# File 'lib/ruby_parser27.rb', line 11581

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

                      result = new_hash_pattern_tail nil, rest, rest.line

    result
end

#_reduce_521(val, _values, result) ⇒ Object



11589
11590
11591
11592
11593
11594
11595
11596
# File 'lib/ruby_parser27.rb', line 11589

def _reduce_521(val, _values, result)
                      kwarg, _, norest = val

                      # TODO? new_unique_key_hash(p, $1, &@$)
                      result = new_hash_pattern_tail kwarg, norest, kwarg.line

    result
end

#_reduce_522(val, _values, result) ⇒ Object



11598
11599
11600
11601
11602
11603
11604
# File 'lib/ruby_parser27.rb', line 11598

def _reduce_522(val, _values, result)
                      norest, = val

                      result = new_hash_pattern_tail nil, norest, norest.line

    result
end

#_reduce_524(val, _values, result) ⇒ Object

reduce 523 omitted



11608
11609
11610
11611
11612
11613
11614
# File 'lib/ruby_parser27.rb', line 11608

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

    result
end

#_reduce_525(val, _values, result) ⇒ Object



11616
11617
11618
11619
11620
11621
11622
11623
# File 'lib/ruby_parser27.rb', line 11616

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



11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
# File 'lib/ruby_parser27.rb', line 11625

def _reduce_526(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 666
                      end

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

    result
end

#_reduce_527(val, _values, result) ⇒ Object



11652
11653
11654
11655
11656
# File 'lib/ruby_parser27.rb', line 11652

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

    result
end

#_reduce_528(val, _values, result) ⇒ Object



11658
11659
11660
11661
11662
11663
11664
11665
11666
# File 'lib/ruby_parser27.rb', line 11658

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

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

    result
end

#_reduce_529(val, _values, result) ⇒ Object



11668
11669
11670
11671
11672
11673
11674
# File 'lib/ruby_parser27.rb', line 11668

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

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

    result
end

#_reduce_530(val, _values, result) ⇒ Object



11676
11677
11678
11679
11680
11681
11682
11683
# File 'lib/ruby_parser27.rb', line 11676

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

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

    result
end

#_reduce_532(val, _values, result) ⇒ Object

reduce 531 omitted



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

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



11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
# File 'lib/ruby_parser27.rb', line 11698

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



11709
11710
11711
11712
11713
11714
11715
# File 'lib/ruby_parser27.rb', line 11709

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

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

    result
end

#_reduce_535(val, _values, result) ⇒ Object



11717
11718
11719
11720
11721
11722
11723
# File 'lib/ruby_parser27.rb', line 11717

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

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

    result
end

#_reduce_539(val, _values, result) ⇒ Object

reduce 538 omitted



11731
11732
11733
11734
11735
11736
11737
# File 'lib/ruby_parser27.rb', line 11731

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

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

    result
end

#_reduce_54(val, _values, result) ⇒ Object

reduce 53 omitted



8810
8811
8812
8813
8814
8815
# File 'lib/ruby_parser27.rb', line 8810

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

    result
end

#_reduce_540(val, _values, result) ⇒ Object



11739
11740
11741
11742
11743
11744
11745
# File 'lib/ruby_parser27.rb', line 11739

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

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

    result
end

#_reduce_545(val, _values, result) ⇒ Object

reduce 544 omitted



11755
11756
11757
11758
11759
# File 'lib/ruby_parser27.rb', line 11755

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

    result
end

#_reduce_546(val, _values, result) ⇒ Object



11761
11762
11763
11764
11765
# File 'lib/ruby_parser27.rb', line 11761

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

    result
end

#_reduce_547(val, _values, result) ⇒ Object



11767
11768
11769
11770
11771
# File 'lib/ruby_parser27.rb', line 11767

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

    result
end

#_reduce_548(val, _values, result) ⇒ Object



11773
11774
11775
11776
11777
# File 'lib/ruby_parser27.rb', line 11773

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

    result
end

#_reduce_549(val, _values, result) ⇒ Object



11779
11780
11781
11782
11783
11784
11785
11786
# File 'lib/ruby_parser27.rb', line 11779

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

                      result = var

    result
end

#_reduce_55(val, _values, result) ⇒ Object



8817
8818
8819
8820
8821
8822
# File 'lib/ruby_parser27.rb', line 8817

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

    result
end

#_reduce_551(val, _values, result) ⇒ Object

reduce 550 omitted



11790
11791
11792
11793
11794
11795
11796
# File 'lib/ruby_parser27.rb', line 11790

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

    result
end

#_reduce_552(val, _values, result) ⇒ Object



11798
11799
11800
11801
11802
11803
# File 'lib/ruby_parser27.rb', line 11798

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

    result
end

#_reduce_553(val, _values, result) ⇒ Object



11805
11806
11807
11808
11809
# File 'lib/ruby_parser27.rb', line 11805

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

    result
end

#_reduce_554(val, _values, result) ⇒ Object



11811
11812
11813
11814
11815
11816
11817
11818
# File 'lib/ruby_parser27.rb', line 11811

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



11820
11821
11822
11823
11824
11825
# File 'lib/ruby_parser27.rb', line 11820

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

    result
end

#_reduce_556(val, _values, result) ⇒ Object



11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
# File 'lib/ruby_parser27.rb', line 11827

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



11840
11841
11842
11843
11844
# File 'lib/ruby_parser27.rb', line 11840

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

    result
end

#_reduce_558(val, _values, result) ⇒ Object



11846
11847
11848
11849
11850
11851
# File 'lib/ruby_parser27.rb', line 11846

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

    result
end

#_reduce_56(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_561(val, _values, result) ⇒ Object

reduce 560 omitted



11857
11858
11859
11860
11861
# File 'lib/ruby_parser27.rb', line 11857

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

    result
end

#_reduce_563(val, _values, result) ⇒ Object

reduce 562 omitted



11865
11866
11867
11868
11869
11870
11871
# File 'lib/ruby_parser27.rb', line 11865

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

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

    result
end

#_reduce_565(val, _values, result) ⇒ Object

reduce 564 omitted



11875
11876
11877
11878
11879
11880
# File 'lib/ruby_parser27.rb', line 11875

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

    result
end

#_reduce_567(val, _values, result) ⇒ Object

reduce 566 omitted



11884
11885
11886
11887
11888
11889
11890
# File 'lib/ruby_parser27.rb', line 11884

def _reduce_567(val, _values, result)
                      str, = val
                      str = s(:dstr, str.value) if str.sexp_type == :evstr
                      result = str

    result
end

#_reduce_568(val, _values, result) ⇒ Object



11892
11893
11894
11895
11896
# File 'lib/ruby_parser27.rb', line 11892

def _reduce_568(val, _values, result)
                      debug 37

    result
end

#_reduce_57(val, _values, result) ⇒ Object



8832
8833
8834
8835
8836
8837
8838
8839
# File 'lib/ruby_parser27.rb', line 8832

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

reduce 569 omitted



11900
11901
11902
11903
11904
# File 'lib/ruby_parser27.rb', line 11900

def _reduce_570(val, _values, result)
                      result = self.literal_concat val[0], val[1]

    result
end

#_reduce_571(val, _values, result) ⇒ Object



11906
11907
11908
11909
11910
11911
11912
11913
11914
# File 'lib/ruby_parser27.rb', line 11906

def _reduce_571(val, _values, result)
                      (_, line), str, (_, func) = val

                      str = dedent str if func =~ RubyLexer::STR_FUNC_DEDENT

                      result = str.line line

    result
end

#_reduce_572(val, _values, result) ⇒ Object



11916
11917
11918
11919
11920
# File 'lib/ruby_parser27.rb', line 11916

def _reduce_572(val, _values, result)
                      result = new_string val

    result
end

#_reduce_573(val, _values, result) ⇒ Object



11922
11923
11924
11925
11926
11927
# File 'lib/ruby_parser27.rb', line 11922

def _reduce_573(val, _values, result)
                      result = new_xstring val
                      # TODO: dedent?!?! SERIOUSLY?!?

    result
end

#_reduce_574(val, _values, result) ⇒ Object



11929
11930
11931
11932
11933
# File 'lib/ruby_parser27.rb', line 11929

def _reduce_574(val, _values, result)
                      result = new_regexp val

    result
end

#_reduce_575(val, _values, result) ⇒ Object



11935
11936
11937
11938
11939
11940
11941
11942
# File 'lib/ruby_parser27.rb', line 11935

def _reduce_575(val, _values, result)
                      (_, line), _, (_, line_max) = val

                      result = s(:array).line line
                      result.line_max = line_max

    result
end

#_reduce_576(val, _values, result) ⇒ Object



11944
11945
11946
11947
11948
11949
11950
11951
# File 'lib/ruby_parser27.rb', line 11944

def _reduce_576(val, _values, result)
                      (_, line), list, (_, line_max) = val

                      result = list.line line
                      result.line_max = line_max

    result
end

#_reduce_577(val, _values, result) ⇒ Object



11953
11954
11955
11956
11957
# File 'lib/ruby_parser27.rb', line 11953

def _reduce_577(val, _values, result)
                      result = new_word_list

    result
end

#_reduce_578(val, _values, result) ⇒ Object



11959
11960
11961
11962
11963
# File 'lib/ruby_parser27.rb', line 11959

def _reduce_578(val, _values, result)
                      result = val[0].dup << new_word_list_entry(val)

    result
end

#_reduce_58(val, _values, result) ⇒ Object



8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
# File 'lib/ruby_parser27.rb', line 8841

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

reduce 579 omitted



11967
11968
11969
11970
11971
# File 'lib/ruby_parser27.rb', line 11967

def _reduce_580(val, _values, result)
                      result = self.literal_concat val[0], val[1]

    result
end

#_reduce_581(val, _values, result) ⇒ Object



11973
11974
11975
11976
11977
11978
11979
11980
# File 'lib/ruby_parser27.rb', line 11973

def _reduce_581(val, _values, result)
                      (_, line), _, (_, line_max) = val

                      result = s(:array).line line
                      result.line_max = line_max

    result
end

#_reduce_582(val, _values, result) ⇒ Object



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

def _reduce_582(val, _values, result)
                      (_, line), list, (_, line_max), = val

                      result = list.line line
                      result.line_max = line_max

    result
end

#_reduce_583(val, _values, result) ⇒ Object



11991
11992
11993
11994
11995
# File 'lib/ruby_parser27.rb', line 11991

def _reduce_583(val, _values, result)
                      result = new_symbol_list

    result
end

#_reduce_584(val, _values, result) ⇒ Object



11997
11998
11999
12000
12001
12002
# File 'lib/ruby_parser27.rb', line 11997

def _reduce_584(val, _values, result)
                      list, * = val
                      result = list.dup << new_symbol_list_entry(val)

    result
end

#_reduce_585(val, _values, result) ⇒ Object



12004
12005
12006
12007
12008
12009
12010
12011
# File 'lib/ruby_parser27.rb', line 12004

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



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

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



12022
12023
12024
12025
12026
12027
12028
12029
# File 'lib/ruby_parser27.rb', line 12022

def _reduce_587(val, _values, result)
                      (_, line), _, (_, line_max) = val

                      result = s(:array).line line
                      result.line_max = line_max

    result
end

#_reduce_588(val, _values, result) ⇒ Object



12031
12032
12033
12034
12035
12036
12037
12038
# File 'lib/ruby_parser27.rb', line 12031

def _reduce_588(val, _values, result)
                      (_, line), list, (_, line_max) = val

                      result = list.line line
                      result.line_max = line_max

    result
end

#_reduce_589(val, _values, result) ⇒ Object



12040
12041
12042
12043
12044
# File 'lib/ruby_parser27.rb', line 12040

def _reduce_589(val, _values, result)
                      result = new_qword_list

    result
end

#_reduce_59(val, _values, result) ⇒ Object



8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
# File 'lib/ruby_parser27.rb', line 8852

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



12046
12047
12048
12049
12050
# File 'lib/ruby_parser27.rb', line 12046

def _reduce_590(val, _values, result)
                      result = val[0].dup << new_qword_list_entry(val)

    result
end

#_reduce_591(val, _values, result) ⇒ Object



12052
12053
12054
12055
12056
# File 'lib/ruby_parser27.rb', line 12052

def _reduce_591(val, _values, result)
                      result = new_qsym_list

    result
end

#_reduce_592(val, _values, result) ⇒ Object



12058
12059
12060
12061
12062
# File 'lib/ruby_parser27.rb', line 12058

def _reduce_592(val, _values, result)
                      result = val[0].dup << new_qsym_list_entry(val)

    result
end

#_reduce_593(val, _values, result) ⇒ Object



12064
12065
12066
12067
12068
12069
# File 'lib/ruby_parser27.rb', line 12064

def _reduce_593(val, _values, result)
                      line = prev_value_to_lineno _values.last
                      result = s(:str, +"").line line

    result
end

#_reduce_594(val, _values, result) ⇒ Object



12071
12072
12073
12074
12075
12076
# File 'lib/ruby_parser27.rb', line 12071

def _reduce_594(val, _values, result)
                      v1, v2 = val
                      result = literal_concat v1, v2

    result
end

#_reduce_595(val, _values, result) ⇒ Object



12078
12079
12080
12081
12082
# File 'lib/ruby_parser27.rb', line 12078

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

    result
end

#_reduce_596(val, _values, result) ⇒ Object



12084
12085
12086
12087
12088
12089
# File 'lib/ruby_parser27.rb', line 12084

def _reduce_596(val, _values, result)
                      v1, v2 = val
                      result = literal_concat v1, v2

    result
end

#_reduce_597(val, _values, result) ⇒ Object



12091
12092
12093
12094
12095
# File 'lib/ruby_parser27.rb', line 12091

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

    result
end

#_reduce_598(val, _values, result) ⇒ Object



12097
12098
12099
12100
12101
12102
# File 'lib/ruby_parser27.rb', line 12097

def _reduce_598(val, _values, result)
                      v1, v2 = val
                      result = literal_concat v1, v2

    result
end

#_reduce_599(val, _values, result) ⇒ Object



12104
12105
12106
12107
12108
# File 'lib/ruby_parser27.rb', line 12104

def _reduce_599(val, _values, result)
                      result = new_string val

    result
end

#_reduce_6(val, _values, result) ⇒ Object

reduce 5 omitted



8499
8500
8501
8502
8503
# File 'lib/ruby_parser27.rb', line 8499

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

    result
end

#_reduce_600(val, _values, result) ⇒ Object



12110
12111
12112
12113
12114
12115
12116
12117
# File 'lib/ruby_parser27.rb', line 12110

def _reduce_600(val, _values, result)
                      result = lexer.lex_strterm

                      lexer.lex_strterm = nil
                      lexer.lex_state = EXPR_BEG

    result
end

#_reduce_601(val, _values, result) ⇒ Object



12119
12120
12121
12122
12123
12124
12125
# File 'lib/ruby_parser27.rb', line 12119

def _reduce_601(val, _values, result)
                      _, strterm, str = val
                      lexer.lex_strterm = strterm
                      result = s(:evstr, str).line str.line

    result
end

#_reduce_602(val, _values, result) ⇒ Object



12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
# File 'lib/ruby_parser27.rb', line 12127

def _reduce_602(val, _values, result)
                      result = [lexer.lex_strterm,
                                lexer.brace_nest,
                                lexer.string_nest, # TODO: remove
                                lexer.lex_state,
                                lexer.lineno,
                               ]

                      lexer.cmdarg.push false
                      lexer.cond.push false

                      lexer.lex_strterm = nil
                      lexer.brace_nest  = 0
                      lexer.string_nest = 0

                      lexer.lex_state   = EXPR_BEG

    result
end

#_reduce_603(val, _values, result) ⇒ Object



12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
# File 'lib/ruby_parser27.rb', line 12147

def _reduce_603(val, _values, result)
                      _, memo, stmt, _ = val

                      lex_strterm, brace_nest, string_nest, oldlex_state, line = memo
                      # TODO: heredoc_indent

                      lexer.lex_strterm = lex_strterm
                      lexer.brace_nest  = brace_nest
                      lexer.string_nest = string_nest

                      lexer.cond.pop
                      lexer.cmdarg.pop

                      lexer.lex_state = oldlex_state

                      case stmt
                      when Sexp then
                        case stmt.sexp_type
                        when :str, :dstr, :evstr then
                          result = stmt
                        else
                          result = s(:evstr, stmt).line line
                        end
                      when nil then
                        result = s(:evstr).line line
                      else
                        debug 38
                        raise "unknown string body: #{stmt.inspect}"
                      end

    result
end

#_reduce_604(val, _values, result) ⇒ Object



12180
12181
12182
12183
12184
# File 'lib/ruby_parser27.rb', line 12180

def _reduce_604(val, _values, result)
                      result = wrap :gvar, val[0]

    result
end

#_reduce_605(val, _values, result) ⇒ Object



12186
12187
12188
12189
12190
# File 'lib/ruby_parser27.rb', line 12186

def _reduce_605(val, _values, result)
                      result = wrap :ivar, val[0]

    result
end

#_reduce_606(val, _values, result) ⇒ Object



12192
12193
12194
12195
12196
# File 'lib/ruby_parser27.rb', line 12192

def _reduce_606(val, _values, result)
                      result = wrap :cvar, val[0]

    result
end

#_reduce_61(val, _values, result) ⇒ Object

reduce 60 omitted



8868
8869
8870
8871
8872
# File 'lib/ruby_parser27.rb', line 8868

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

    result
end

#_reduce_610(val, _values, result) ⇒ Object

reduce 609 omitted



12204
12205
12206
12207
12208
12209
# File 'lib/ruby_parser27.rb', line 12204

def _reduce_610(val, _values, result)
                      lexer.lex_state = EXPR_END
                      result = wrap :lit, val[1]

    result
end

#_reduce_611(val, _values, result) ⇒ Object



12211
12212
12213
12214
12215
12216
# File 'lib/ruby_parser27.rb', line 12211

def _reduce_611(val, _values, result)
                      lexer.lex_state = EXPR_END
                      result = wrap :lit, val[0]

    result
end

#_reduce_616(val, _values, result) ⇒ Object

reduce 615 omitted



12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
# File 'lib/ruby_parser27.rb', line 12226

def _reduce_616(val, _values, result)
                      _, result, _ = val

                      lexer.lex_state = EXPR_END

                      result ||= s(:str, "").line lexer.lineno

                      case result.sexp_type
                      when :dstr then
                        result.sexp_type = :dsym
                      when :str then
                        result = s(:lit, result.last.to_sym).line result.line
                      when :evstr then
                        result = s(:dsym, "", result).line result.line
                      else
                        debug 39
                      end

    result
end

#_reduce_618(val, _values, result) ⇒ Object

reduce 617 omitted



12249
12250
12251
12252
12253
12254
# File 'lib/ruby_parser27.rb', line 12249

def _reduce_618(val, _values, result)
                      _, (num, line) = val
                      result = [-num, line]

    result
end

#_reduce_62(val, _values, result) ⇒ Object



8874
8875
8876
8877
8878
# File 'lib/ruby_parser27.rb', line 8874

def _reduce_62(val, _values, result)
                      lexer.cond.push true

    result
end

#_reduce_628(val, _values, result) ⇒ Object

reduce 627 omitted



12274
12275
12276
12277
# File 'lib/ruby_parser27.rb', line 12274

def _reduce_628(val, _values, result)
 result = s(:nil).line lexer.lineno
    result
end

#_reduce_629(val, _values, result) ⇒ Object



12279
12280
12281
12282
# File 'lib/ruby_parser27.rb', line 12279

def _reduce_629(val, _values, result)
 result = s(:self).line lexer.lineno
    result
end

#_reduce_63(val, _values, result) ⇒ Object



8880
8881
8882
8883
8884
# File 'lib/ruby_parser27.rb', line 8880

def _reduce_63(val, _values, result)
                      lexer.cond.pop

    result
end

#_reduce_630(val, _values, result) ⇒ Object



12284
12285
12286
12287
# File 'lib/ruby_parser27.rb', line 12284

def _reduce_630(val, _values, result)
 result = s(:true).line lexer.lineno
    result
end

#_reduce_631(val, _values, result) ⇒ Object



12289
12290
12291
12292
# File 'lib/ruby_parser27.rb', line 12289

def _reduce_631(val, _values, result)
 result = s(:false).line lexer.lineno
    result
end

#_reduce_632(val, _values, result) ⇒ Object



12294
12295
12296
12297
# File 'lib/ruby_parser27.rb', line 12294

def _reduce_632(val, _values, result)
 result = s(:str, self.file).line lexer.lineno
    result
end

#_reduce_633(val, _values, result) ⇒ Object



12299
12300
12301
12302
# File 'lib/ruby_parser27.rb', line 12299

def _reduce_633(val, _values, result)
 result = s(:lit, lexer.lineno).line lexer.lineno
    result
end

#_reduce_634(val, _values, result) ⇒ Object



12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
# File 'lib/ruby_parser27.rb', line 12304

def _reduce_634(val, _values, result)
                      l = lexer.lineno
                      result =
                        if defined? Encoding then
                          s(:colon2, s(:const, :Encoding).line(l), :UTF_8).line l
                        else
                          s(:str, "Unsupported!").line l
                        end

    result
end

#_reduce_635(val, _values, result) ⇒ Object



12316
12317
12318
12319
12320
12321
12322
12323
# File 'lib/ruby_parser27.rb', line 12316

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



12325
12326
12327
12328
12329
12330
# File 'lib/ruby_parser27.rb', line 12325

def _reduce_636(val, _values, result)
                      var = val[0]
                      result = Sexp === var ? var : self.gettable(var)

    result
end

#_reduce_637(val, _values, result) ⇒ Object



12332
12333
12334
12335
12336
# File 'lib/ruby_parser27.rb', line 12332

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

    result
end

#_reduce_638(val, _values, result) ⇒ Object



12338
12339
12340
12341
12342
12343
# File 'lib/ruby_parser27.rb', line 12338

def _reduce_638(val, _values, result)
                      result = self.assignable val[0]
                      debug 40

    result
end

#_reduce_639(val, _values, result) ⇒ Object



12345
12346
12347
12348
12349
12350
# File 'lib/ruby_parser27.rb', line 12345

def _reduce_639(val, _values, result)
                      (ref, line), = val
                      result = s(:nth_ref, ref).line line

    result
end

#_reduce_64(val, _values, result) ⇒ Object



8886
8887
8888
8889
8890
8891
# File 'lib/ruby_parser27.rb', line 8886

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

    result
end

#_reduce_640(val, _values, result) ⇒ Object



12352
12353
12354
12355
12356
12357
# File 'lib/ruby_parser27.rb', line 12352

def _reduce_640(val, _values, result)
                      (ref, line), = val
                      result = s(:back_ref, ref).line line

    result
end

#_reduce_641(val, _values, result) ⇒ Object



12359
12360
12361
12362
12363
12364
# File 'lib/ruby_parser27.rb', line 12359

def _reduce_641(val, _values, result)
                      lexer.lex_state = EXPR_BEG
                      lexer.command_start = true

    result
end

#_reduce_642(val, _values, result) ⇒ Object



12366
12367
12368
12369
12370
# File 'lib/ruby_parser27.rb', line 12366

def _reduce_642(val, _values, result)
                      result = val[2]

    result
end

#_reduce_643(val, _values, result) ⇒ Object



12372
12373
12374
12375
12376
# File 'lib/ruby_parser27.rb', line 12372

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

    result
end

#_reduce_644(val, _values, result) ⇒ Object



12378
12379
12380
12381
12382
# File 'lib/ruby_parser27.rb', line 12378

def _reduce_644(val, _values, result)
                      result = end_args val

    result
end

#_reduce_645(val, _values, result) ⇒ Object



12384
12385
12386
12387
12388
# File 'lib/ruby_parser27.rb', line 12384

def _reduce_645(val, _values, result)
                      result = end_args val

    result
end

#_reduce_646(val, _values, result) ⇒ Object



12390
12391
12392
12393
12394
# File 'lib/ruby_parser27.rb', line 12390

def _reduce_646(val, _values, result)
                      result = end_args val

    result
end

#_reduce_647(val, _values, result) ⇒ Object



12396
12397
12398
12399
12400
12401
12402
# File 'lib/ruby_parser27.rb', line 12396

def _reduce_647(val, _values, result)
                      result = self.in_kwarg
                      self.in_kwarg = true
                      self.lexer.lex_state |= EXPR_LABEL

    result
end

#_reduce_648(val, _values, result) ⇒ Object



12404
12405
12406
12407
12408
# File 'lib/ruby_parser27.rb', line 12404

def _reduce_648(val, _values, result)
                      result = end_args val

    result
end

#_reduce_649(val, _values, result) ⇒ Object



12410
12411
12412
12413
12414
# File 'lib/ruby_parser27.rb', line 12410

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

    result
end

#_reduce_650(val, _values, result) ⇒ Object



12416
12417
12418
12419
12420
# File 'lib/ruby_parser27.rb', line 12416

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

    result
end

#_reduce_651(val, _values, result) ⇒ Object



12422
12423
12424
12425
12426
# File 'lib/ruby_parser27.rb', line 12422

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

    result
end

#_reduce_652(val, _values, result) ⇒ Object



12428
12429
12430
12431
12432
# File 'lib/ruby_parser27.rb', line 12428

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

    result
end

#_reduce_654(val, _values, result) ⇒ Object

reduce 653 omitted



12436
12437
12438
12439
12440
# File 'lib/ruby_parser27.rb', line 12436

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

    result
end

#_reduce_655(val, _values, result) ⇒ Object



12442
12443
12444
12445
12446
# File 'lib/ruby_parser27.rb', line 12442

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

    result
end

#_reduce_656(val, _values, result) ⇒ Object



12448
12449
12450
12451
12452
# File 'lib/ruby_parser27.rb', line 12448

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

    result
end

#_reduce_657(val, _values, result) ⇒ Object



12454
12455
12456
12457
12458
# File 'lib/ruby_parser27.rb', line 12454

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

    result
end

#_reduce_658(val, _values, result) ⇒ Object



12460
12461
12462
12463
12464
# File 'lib/ruby_parser27.rb', line 12460

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

    result
end

#_reduce_659(val, _values, result) ⇒ Object



12466
12467
12468
12469
12470
# File 'lib/ruby_parser27.rb', line 12466

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

    result
end

#_reduce_660(val, _values, result) ⇒ Object



12472
12473
12474
12475
12476
# File 'lib/ruby_parser27.rb', line 12472

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

    result
end

#_reduce_661(val, _values, result) ⇒ Object



12478
12479
12480
12481
12482
# File 'lib/ruby_parser27.rb', line 12478

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

    result
end

#_reduce_662(val, _values, result) ⇒ Object



12484
12485
12486
12487
12488
# File 'lib/ruby_parser27.rb', line 12484

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

    result
end

#_reduce_663(val, _values, result) ⇒ Object



12490
12491
12492
12493
12494
# File 'lib/ruby_parser27.rb', line 12490

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

    result
end

#_reduce_664(val, _values, result) ⇒ Object



12496
12497
12498
12499
12500
# File 'lib/ruby_parser27.rb', line 12496

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

    result
end

#_reduce_665(val, _values, result) ⇒ Object



12502
12503
12504
12505
12506
# File 'lib/ruby_parser27.rb', line 12502

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

    result
end

#_reduce_666(val, _values, result) ⇒ Object



12508
12509
12510
12511
12512
# File 'lib/ruby_parser27.rb', line 12508

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

    result
end

#_reduce_667(val, _values, result) ⇒ Object



12514
12515
12516
12517
12518
# File 'lib/ruby_parser27.rb', line 12514

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

    result
end

#_reduce_668(val, _values, result) ⇒ Object



12520
12521
12522
12523
12524
# File 'lib/ruby_parser27.rb', line 12520

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

    result
end

#_reduce_669(val, _values, result) ⇒ Object



12526
12527
12528
12529
12530
# File 'lib/ruby_parser27.rb', line 12526

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

    result
end

#_reduce_670(val, _values, result) ⇒ Object



12532
12533
12534
12535
12536
12537
# File 'lib/ruby_parser27.rb', line 12532

def _reduce_670(val, _values, result)
                      result = args val
                      # result.line lexer.lineno

    result
end

#_reduce_671(val, _values, result) ⇒ Object



12539
12540
12541
12542
12543
# File 'lib/ruby_parser27.rb', line 12539

def _reduce_671(val, _values, result)
                      result = s(:forward_args).line lexer.lineno

    result
end

#_reduce_672(val, _values, result) ⇒ Object



12545
12546
12547
12548
12549
# File 'lib/ruby_parser27.rb', line 12545

def _reduce_672(val, _values, result)
                      yyerror "formal argument cannot be a constant"

    result
end

#_reduce_673(val, _values, result) ⇒ Object



12551
12552
12553
12554
12555
# File 'lib/ruby_parser27.rb', line 12551

def _reduce_673(val, _values, result)
                      yyerror "formal argument cannot be an instance variable"

    result
end

#_reduce_674(val, _values, result) ⇒ Object



12557
12558
12559
12560
12561
# File 'lib/ruby_parser27.rb', line 12557

def _reduce_674(val, _values, result)
                      yyerror "formal argument cannot be a global variable"

    result
end

#_reduce_675(val, _values, result) ⇒ Object



12563
12564
12565
12566
12567
# File 'lib/ruby_parser27.rb', line 12563

def _reduce_675(val, _values, result)
                      yyerror "formal argument cannot be a class variable"

    result
end

#_reduce_677(val, _values, result) ⇒ Object

reduce 676 omitted



12571
12572
12573
12574
12575
12576
12577
12578
12579
# File 'lib/ruby_parser27.rb', line 12571

def _reduce_677(val, _values, result)
                      (id, line), = val
                      identifier = id.to_sym
                      self.env[identifier] = :lvar

                      result = [identifier, line]

    result
end

#_reduce_68(val, _values, result) ⇒ Object

reduce 67 omitted



8899
8900
8901
8902
8903
8904
# File 'lib/ruby_parser27.rb', line 8899

def _reduce_68(val, _values, result)
                      blk, _, (msg, _line), args = val
                      result = new_call(blk, msg.to_sym, args).line blk.line

    result
end

#_reduce_680(val, _values, result) ⇒ Object

reduce 679 omitted



12585
12586
12587
12588
12589
12590
12591
# File 'lib/ruby_parser27.rb', line 12585

def _reduce_680(val, _values, result)
                      _, margs, _ = val

                      result = margs

    result
end

#_reduce_681(val, _values, result) ⇒ Object



12593
12594
12595
12596
12597
# File 'lib/ruby_parser27.rb', line 12593

def _reduce_681(val, _values, result)
                      result = new_arg val

    result
end

#_reduce_682(val, _values, result) ⇒ Object



12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
# File 'lib/ruby_parser27.rb', line 12599

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

reduce 683 omitted



12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
# File 'lib/ruby_parser27.rb', line 12622

def _reduce_684(val, _values, result)
                      # TODO: new_kw_arg
                      (label, line), arg = val

                      identifier = label.to_sym
                      self.env[identifier] = :lvar

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

    result
end

#_reduce_685(val, _values, result) ⇒ Object



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/ruby_parser27.rb', line 12635

def _reduce_685(val, _values, result)
                      (label, line), = val

                      id = label.to_sym
                      self.env[id] = :lvar

                      result = s(:array, s(:kwarg, id).line(line)).line line

    result
end

#_reduce_686(val, _values, result) ⇒ Object



12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
# File 'lib/ruby_parser27.rb', line 12646

def _reduce_686(val, _values, result)
                      # TODO: new_kw_arg
                      (label, line), expr = val
                      id = label.to_sym
                      self.env[id] = :lvar

                      result = s(:array, s(:kwarg, id, expr).line(line)).line line

    result
end

#_reduce_687(val, _values, result) ⇒ Object



12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
# File 'lib/ruby_parser27.rb', line 12657

def _reduce_687(val, _values, result)
                      # TODO: new_kw_arg
                      (label, line), = val
                      id = label.to_sym
                      self.env[id] = :lvar

                      result = s(:array, s(:kwarg, id).line(line)).line line

    result
end

#_reduce_689(val, _values, result) ⇒ Object

reduce 688 omitted



12670
12671
12672
12673
12674
12675
# File 'lib/ruby_parser27.rb', line 12670

def _reduce_689(val, _values, result)
                      list, _, item = val
                      result = list << item.last

    result
end

#_reduce_69(val, _values, result) ⇒ Object



8906
8907
8908
8909
8910
8911
# File 'lib/ruby_parser27.rb', line 8906

def _reduce_69(val, _values, result)
                      # self.env.extend(:dynamic)
                      result = self.lexer.lineno

    result
end

#_reduce_691(val, _values, result) ⇒ Object

reduce 690 omitted



12679
12680
12681
12682
12683
# File 'lib/ruby_parser27.rb', line 12679

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

    result
end

#_reduce_694(val, _values, result) ⇒ Object

reduce 693 omitted



12689
12690
12691
12692
12693
# File 'lib/ruby_parser27.rb', line 12689

def _reduce_694(val, _values, result)
                      result = :"**nil"

    result
end

#_reduce_695(val, _values, result) ⇒ Object



12695
12696
12697
12698
12699
12700
12701
12702
12703
# File 'lib/ruby_parser27.rb', line 12695

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

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

    result
end

#_reduce_696(val, _values, result) ⇒ Object



12705
12706
12707
12708
12709
12710
12711
# File 'lib/ruby_parser27.rb', line 12705

def _reduce_696(val, _values, result)
                      id = :"**"
                      self.env[id] = :lvar # TODO: needed?!?
                      result = [id, lexer.lineno] # TODO: tPOW/tDSTAR include lineno

    result
end

#_reduce_697(val, _values, result) ⇒ Object



12713
12714
12715
12716
12717
12718
12719
# File 'lib/ruby_parser27.rb', line 12713

def _reduce_697(val, _values, result)
                      lhs, _, rhs = val
                      result = self.assignable lhs, rhs
                      # TODO: detect duplicate names

    result
end

#_reduce_698(val, _values, result) ⇒ Object



12721
12722
12723
12724
12725
12726
# File 'lib/ruby_parser27.rb', line 12721

def _reduce_698(val, _values, result)
                      lhs, _, rhs = val
                      result = self.assignable lhs, rhs

    result
end

#_reduce_699(val, _values, result) ⇒ Object



12728
12729
12730
12731
12732
12733
# File 'lib/ruby_parser27.rb', line 12728

def _reduce_699(val, _values, result)
                      optblk, = val
                      result = s(:block, optblk).line optblk.line

    result
end

#_reduce_70(val, _values, result) ⇒ Object



8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
# File 'lib/ruby_parser27.rb', line 8913

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

                      result = body
                      result.line line

                      # self.env.unextend

    result
end

#_reduce_700(val, _values, result) ⇒ Object



12735
12736
12737
12738
12739
12740
12741
# File 'lib/ruby_parser27.rb', line 12735

def _reduce_700(val, _values, result)
                      optarg, _, optblk = val
                      result = optarg
                      result << optblk

    result
end

#_reduce_701(val, _values, result) ⇒ Object



12743
12744
12745
12746
12747
12748
# File 'lib/ruby_parser27.rb', line 12743

def _reduce_701(val, _values, result)
                      opt, = val
                      result = s(:block, opt).line opt.line

    result
end

#_reduce_702(val, _values, result) ⇒ Object



12750
12751
12752
12753
12754
# File 'lib/ruby_parser27.rb', line 12750

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

    result
end

#_reduce_705(val, _values, result) ⇒ Object

reduce 704 omitted



12760
12761
12762
12763
12764
12765
12766
12767
12768
# File 'lib/ruby_parser27.rb', line 12760

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



12770
12771
12772
12773
12774
12775
12776
# File 'lib/ruby_parser27.rb', line 12770

def _reduce_706(val, _values, result)
                      name = :"*"
                      self.env[name] = :lvar
                      result = [name, lexer.lineno] # FIX: tSTAR to include lineno

    result
end

#_reduce_709(val, _values, result) ⇒ Object

reduce 708 omitted



12782
12783
12784
12785
12786
12787
12788
12789
12790
# File 'lib/ruby_parser27.rb', line 12782

def _reduce_709(val, _values, result)
                      _, (id, line) = val
                      identifier = id.to_sym

                      self.env[identifier] = :lvar
                      result = ["&#{identifier}".to_sym, line]

    result
end

#_reduce_71(val, _values, result) ⇒ Object



8924
8925
8926
8927
8928
8929
# File 'lib/ruby_parser27.rb', line 8924

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

    result
end

#_reduce_710(val, _values, result) ⇒ Object



12792
12793
12794
12795
12796
12797
# File 'lib/ruby_parser27.rb', line 12792

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

    result
end

#_reduce_711(val, _values, result) ⇒ Object



12799
12800
12801
12802
12803
# File 'lib/ruby_parser27.rb', line 12799

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

    result
end

#_reduce_713(val, _values, result) ⇒ Object

reduce 712 omitted



12807
12808
12809
12810
12811
# File 'lib/ruby_parser27.rb', line 12807

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

    result
end

#_reduce_714(val, _values, result) ⇒ Object



12813
12814
12815
12816
12817
12818
12819
# File 'lib/ruby_parser27.rb', line 12813

def _reduce_714(val, _values, result)
                      result = val[2]
                      yyerror "Can't define single method for literals." if
                        result.sexp_type == :lit

    result
end

#_reduce_715(val, _values, result) ⇒ Object



12821
12822
12823
12824
12825
# File 'lib/ruby_parser27.rb', line 12821

def _reduce_715(val, _values, result)
                      result = s(:array).line lexer.lineno

    result
end

#_reduce_718(val, _values, result) ⇒ Object

reduce 717 omitted



12831
12832
12833
12834
12835
12836
12837
12838
12839
# File 'lib/ruby_parser27.rb', line 12831

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



12841
12842
12843
12844
12845
12846
# File 'lib/ruby_parser27.rb', line 12841

def _reduce_719(val, _values, result)
                      v1, _, v2 = val
                      result = s(:array, v1, v2).line v1.line

    result
end

#_reduce_72(val, _values, result) ⇒ Object



8931
8932
8933
8934
8935
8936
# File 'lib/ruby_parser27.rb', line 8931

def _reduce_72(val, _values, result)
                      call, args = val
                      result = call.concat args.sexp_body

    result
end

#_reduce_720(val, _values, result) ⇒ Object



12848
12849
12850
12851
12852
12853
12854
12855
# File 'lib/ruby_parser27.rb', line 12848

def _reduce_720(val, _values, result)
                      label, arg = val

                      lit = wrap :lit, label
                      result = s(:array, lit, arg).line lit.line

    result
end

#_reduce_721(val, _values, result) ⇒ Object



12857
12858
12859
12860
12861
12862
12863
12864
12865
# File 'lib/ruby_parser27.rb', line 12857

def _reduce_721(val, _values, result)
                      (_, line), sym, _, value = val

                      sym.sexp_type = :dsym

                      result = s(:array, sym, value).line line

    result
end

#_reduce_722(val, _values, result) ⇒ Object



12867
12868
12869
12870
12871
12872
12873
# File 'lib/ruby_parser27.rb', line 12867

def _reduce_722(val, _values, result)
                      _, arg = val
                      line = arg.line
                      result = s(:array, s(:kwsplat, arg).line(line)).line line

    result
end

#_reduce_73(val, _values, result) ⇒ Object



8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
# File 'lib/ruby_parser27.rb', line 8938

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



8953
8954
8955
8956
8957
8958
8959
8960
# File 'lib/ruby_parser27.rb', line 8953

def _reduce_74(val, _values, result)
                      lhs, callop, (op, _), args = val

                      result = new_call lhs, op.to_sym, args, callop
                      result.line lhs.line

    result
end

#_reduce_743(val, _values, result) ⇒ Object

reduce 742 omitted



12915
12916
12917
12918
12919
12920
# File 'lib/ruby_parser27.rb', line 12915

def _reduce_743(val, _values, result)
                      _, close = val
                      result = [close, lexer.lineno]

    result
end

#_reduce_744(val, _values, result) ⇒ Object



12922
12923
12924
12925
12926
12927
# File 'lib/ruby_parser27.rb', line 12922

def _reduce_744(val, _values, result)
                      _, close = val
                      result = [close, lexer.lineno]

    result
end

#_reduce_749(val, _values, result) ⇒ Object

reduce 748 omitted



12937
12938
12939
12940
# File 'lib/ruby_parser27.rb', line 12937

def _reduce_749(val, _values, result)
 yyerrok
    result
end

#_reduce_75(val, _values, result) ⇒ Object



8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
# File 'lib/ruby_parser27.rb', line 8962

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

reduce 751 omitted



12946
12947
12948
12949
# File 'lib/ruby_parser27.rb', line 12946

def _reduce_752(val, _values, result)
 yyerrok
    result
end

#_reduce_753(val, _values, result) ⇒ Object



12951
12952
12953
12954
# File 'lib/ruby_parser27.rb', line 12951

def _reduce_753(val, _values, result)
 result = nil;
    result
end

#_reduce_76(val, _values, result) ⇒ Object



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

def _reduce_76(val, _values, result)
                      lhs, _, (id, line), args = val

                      result = new_call lhs, id.to_sym, args
                      result.line line

    result
end

#_reduce_77(val, _values, result) ⇒ Object



8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
# File 'lib/ruby_parser27.rb', line 8983

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



8995
8996
8997
8998
8999
# File 'lib/ruby_parser27.rb', line 8995

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

    result
end

#_reduce_79(val, _values, result) ⇒ Object



9001
9002
9003
9004
9005
9006
9007
# File 'lib/ruby_parser27.rb', line 9001

def _reduce_79(val, _values, result)
                      (_, line), args = val
                      result = new_yield args
                      result.line line # TODO: push to new_yield

    result
end

#_reduce_80(val, _values, result) ⇒ Object



9009
9010
9011
9012
9013
9014
# File 'lib/ruby_parser27.rb', line 9009

def _reduce_80(val, _values, result)
                      line = val[0].last
                      result = s(:return, ret_args(val[1])).line(line)

    result
end

#_reduce_81(val, _values, result) ⇒ Object



9016
9017
9018
9019
9020
9021
# File 'lib/ruby_parser27.rb', line 9016

def _reduce_81(val, _values, result)
                      (_, line), args = val
                      result = s(:break, ret_args(args)).line line

    result
end

#_reduce_82(val, _values, result) ⇒ Object



9023
9024
9025
9026
9027
9028
# File 'lib/ruby_parser27.rb', line 9023

def _reduce_82(val, _values, result)
                      line = val[0].last
                      result = s(:next, ret_args(val[1])).line(line)

    result
end

#_reduce_84(val, _values, result) ⇒ Object

reduce 83 omitted



9032
9033
9034
9035
9036
# File 'lib/ruby_parser27.rb', line 9032

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

    result
end

#_reduce_86(val, _values, result) ⇒ Object

reduce 85 omitted



9040
9041
9042
9043
9044
9045
9046
9047
# File 'lib/ruby_parser27.rb', line 9040

def _reduce_86(val, _values, result)
                      _, arg, _ = val
                      l = arg.line

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

    result
end

#_reduce_87(val, _values, result) ⇒ Object



9049
9050
9051
9052
9053
9054
# File 'lib/ruby_parser27.rb', line 9049

def _reduce_87(val, _values, result)
                      head, = val
                      result = s(:masgn, head).line head.line

    result
end

#_reduce_88(val, _values, result) ⇒ Object



9056
9057
9058
9059
9060
9061
# File 'lib/ruby_parser27.rb', line 9056

def _reduce_88(val, _values, result)
                      lhs, rhs = val
                      result = s(:masgn, lhs << rhs.compact).line lhs.line

    result
end

#_reduce_89(val, _values, result) ⇒ Object



9063
9064
9065
9066
9067
9068
9069
# File 'lib/ruby_parser27.rb', line 9063

def _reduce_89(val, _values, result)
                      head, _, tail = val
                      head << s(:splat, tail).line(tail.line)
                      result = s(:masgn, head).line head.line

    result
end

#_reduce_9(val, _values, result) ⇒ Object

reduce 8 omitted



8509
8510
8511
8512
8513
8514
8515
8516
8517
# File 'lib/ruby_parser27.rb', line 8509

def _reduce_9(val, _values, result)
                      if (self.in_def || self.in_single > 0) then
                        debug 11
                        yyerror "BEGIN in method"
                      end
                      self.env.extend

    result
end

#_reduce_90(val, _values, result) ⇒ Object



9071
9072
9073
9074
9075
9076
9077
9078
9079
# File 'lib/ruby_parser27.rb', line 9071

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



9081
9082
9083
9084
9085
9086
9087
# File 'lib/ruby_parser27.rb', line 9081

def _reduce_91(val, _values, result)
                      head, _ = val
                      l = head.line
                      result = s(:masgn, head << s(:splat).line(l)).line l

    result
end

#_reduce_92(val, _values, result) ⇒ Object



9089
9090
9091
9092
9093
9094
9095
9096
# File 'lib/ruby_parser27.rb', line 9089

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



9098
9099
9100
9101
9102
9103
9104
9105
9106
# File 'lib/ruby_parser27.rb', line 9098

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



9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
# File 'lib/ruby_parser27.rb', line 9108

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



9119
9120
9121
9122
9123
9124
# File 'lib/ruby_parser27.rb', line 9119

def _reduce_95(val, _values, result)
                      l = lexer.lineno
                      result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l

    result
end

#_reduce_96(val, _values, result) ⇒ Object



9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
# File 'lib/ruby_parser27.rb', line 9126

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

reduce 97 omitted



9139
9140
9141
9142
9143
# File 'lib/ruby_parser27.rb', line 9139

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

    result
end

#_reduce_99(val, _values, result) ⇒ Object



9145
9146
9147
9148
9149
9150
# File 'lib/ruby_parser27.rb', line 9145

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

    result
end

#_reduce_none(val, _values, result) ⇒ Object



12956
12957
12958
# File 'lib/ruby_parser27.rb', line 12956

def _reduce_none(val, _values, result)
  val[0]
end