ruby-changes:6064
From: matz <ko1@a...>
Date: Thu, 26 Jun 2008 00:49:35 +0900 (JST)
Subject: [ruby-changes:6064] Ruby:r17574 (trunk): * parse.y (primary): not operand might be empty.
matz 2008-06-26 00:49:17 +0900 (Thu, 26 Jun 2008)
New Revision: 17574
Modified files:
trunk/ChangeLog
trunk/parse.y
Log:
* parse.y (primary): not operand might be empty. [ruby-dev:35227]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=17574&r2=17573&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17574&r2=17573&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 17573)
+++ ChangeLog (revision 17574)
@@ -1,3 +1,7 @@
+Thu Jun 26 00:48:31 2008 Yukihiro Matsumoto <matz@r...>
+
+ * parse.y (primary): not operand might be empty. [ruby-dev:35227]
+
Wed Jun 25 21:54:34 2008 Yukihiro Matsumoto <matz@r...>
* parse.y (primary): make functional-style not operator to act
Index: parse.y
===================================================================
--- parse.y (revision 17573)
+++ parse.y (revision 17574)
@@ -2621,6 +2621,14 @@
$$ = dispatch2(unary, ripper_intern("not"), $3);
%*/
}
+ | keyword_not '(' rparen
+ {
+ /*%%%*/
+ $$ = NEW_LIT(Qtrue);
+ /*%
+ $$ = dispatch2(unary, ripper_intern("not"), Qnil);
+ %*/
+ }
| operation brace_block
{
/*%%%*/
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/