summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-31 05:29:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-31 05:29:54 +0000
commit9a51fecc55dca8f4feb0b558c048532d5f5b1f3e (patch)
tree0ed5e86f76f9adff8eb848d6be67500adb86edd2 /parse.y
parent4e2edd1992f7dc775e430547cc4cec28f2bd1035 (diff)
downloadruby-9a51fecc55dca8f4feb0b558c048532d5f5b1f3e.tar.gz
ruby-9a51fecc55dca8f4feb0b558c048532d5f5b1f3e.tar.xz
ruby-9a51fecc55dca8f4feb0b558c048532d5f5b1f3e.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y10
1 files changed, 8 insertions, 2 deletions
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