ruby-changes:43788
From: nobu <ko1@a...>
Date: Thu, 11 Aug 2016 11:32:23 +0900 (JST)
Subject: [ruby-changes:43788] nobu:r55861 (trunk): parse.y: node_assign
nobu 2016-08-11 11:32:19 +0900 (Thu, 11 Aug 2016) New Revision: 55861 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55861 Log: parse.y: node_assign * parse.y (stmt, command_asgn): unifiy parser and ripper code by node_assign macro. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 55860) +++ parse.y (revision 55861) @@ -1337,12 +1337,8 @@ stmt : keyword_alias fitem {SET_LEX_STA https://github.com/ruby/ruby/blob/trunk/parse.y#L1337 } | lhs '=' mrhs { - /*%%%*/ value_expr($3); $$ = node_assign($1, $3); - /*% - $$ = dispatch2(assign, $1, $3); - %*/ } | mlhs '=' mrhs_arg { @@ -1358,12 +1354,8 @@ stmt : keyword_alias fitem {SET_LEX_STA https://github.com/ruby/ruby/blob/trunk/parse.y#L1354 command_asgn : lhs '=' command_rhs { - /*%%%*/ value_expr($3); $$ = node_assign($1, $3); - /*% - $$ = dispatch2(assign, $1, $3); - %*/ } ; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/