summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-28 00:23:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-28 00:23:57 +0000
commitb6630a375d9c79de6b7ec0d684f7053292be0df5 (patch)
tree63fd2bad5570020fc992ab0f0c2abad8e7234751
parentc7d9ba96cb2d848d3931a2075378daa17b3d62a2 (diff)
* parse.y (primary): remove meaningless else-only case statement
syntax. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y16
2 files changed, 5 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index a1285dafe2..f07e985e93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jun 28 09:16:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (primary): remove meaningless else-only case statement
+ syntax.
+
Wed Jun 28 08:08:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_eval): problem to handle else part. [ruby-dev:28873]
diff --git a/parse.y b/parse.y
index c098fd82b3..9089adff36 100644
--- a/parse.y
+++ b/parse.y
@@ -2602,14 +2602,6 @@ primary : literal
$$ = dispatch2(case, $2, $4);
%*/
}
- | keyword_case expr_value opt_terms keyword_else compstmt keyword_end
- {
- /*%%%*/
- $$ = block_append($2, $5);
- /*%
- $$ = dispatch2(case, $2, dispatch1(else, $5));
- %*/
- }
| keyword_case opt_terms case_body keyword_end
{
/*%%%*/
@@ -2618,14 +2610,6 @@ primary : literal
$$ = dispatch2(case, Qnil, $3);
%*/
}
- | keyword_case opt_terms keyword_else compstmt keyword_end
- {
- /*%%%*/
- $$ = $4;
- /*%
- $$ = dispatch2(case, Qnil, dispatch1(else, $4));
- %*/
- }
| keyword_for for_var keyword_in {COND_PUSH(1);} expr_value do {COND_POP();}
compstmt
keyword_end