lib/ruby19_parser.y in ruby_parser-3.0.0.a5 vs lib/ruby19_parser.y in ruby_parser-3.0.0.a6

- old
+ new

@@ -580,11 +580,11 @@ result = new_op_asgn val } | var_lhs tOP_ASGN arg kRESCUE_MOD arg { result = new_op_asgn val - result = self.node_assign s(:rescue, result, new_resbody(s(:array), val[4])) + result = s(:rescue, result, new_resbody(s(:array), val[4])) } | primary_value tLBRACK2 opt_call_args rbracket tOP_ASGN arg { val[2][0] = :arglist result = s(:op_asgn1, val[0], val[2], val[4].to_sym, val[5]) @@ -964,11 +964,11 @@ { result = s(:defined, val[3]) } | kNOT tLPAREN2 expr rparen { - raise "no2: #{val.inspect}" + result = s(:call, val[2], :"!") } | kNOT tLPAREN2 rparen { raise "no3: #{val.inspect}" } @@ -1307,10 +1307,10 @@ opt_block_param: none | block_param_def block_param_def: tPIPE opt_bv_decl tPIPE { - raise "no17: #{val.inspect}" + result = val[1] || 0 } | tOROP { result = 0 self.lexer.command_start = true