From 9a51fecc55dca8f4feb0b558c048532d5f5b1f3e Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 31 Aug 2000 05:29:54 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 3f0d637ec..a9416a7ab 100644 --- a/parse.y +++ b/parse.y @@ -214,8 +214,8 @@ static void top_local_setup(); * precedence table */ -%nonassoc kDO -%nonassoc kDO2 +/*%nonassoc kDO +%nonassoc kDO2*/ %left kIF_MOD kUNLESS_MOD kWHILE_MOD kUNTIL_MOD kRESCUE_MOD %left kOR kAND %right kNOT @@ -392,6 +392,12 @@ stmt : block_call value_expr($3); $$ = node_assign($1, $3); } + | mlhs '=' stmt_rhs + { + value_expr($3); + $1->nd_value = $3; + $$ = $1; + } | expr expr : mlhs '=' mrhs -- cgit