[前][次][番号順一覧][スレッド一覧]

ruby-changes:31334

From: marcandre <ko1@a...>
Date: Thu, 24 Oct 2013 21:59:00 +0900 (JST)
Subject: [ruby-changes:31334] marcandRe: r43413 (trunk): * parse.y: Remove +(binary) and -(binary) special cases [Feature #9048]

marcandre	2013-10-24 21:58:54 +0900 (Thu, 24 Oct 2013)

  New Revision: 43413

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43413

  Log:
    * parse.y: Remove +(binary) and -(binary) special cases [Feature #9048]

  Modified files:
    trunk/ChangeLog
    trunk/parse.y
    trunk/test/ruby/test_m17n.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43412)
+++ ChangeLog	(revision 43413)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 24 21:57:24 2013  Marc-Andre Lafortune  <ruby-core@m...>
+
+	* parse.y: Remove +(binary) and -(binary) special cases
+	  [Feature #9048]
+
 Thu Oct 24 12:45:53 2013  Zachary Scott  <e@z...>
 
 	* object.c: [DOC] Document first argument also takes string for:
Index: parse.y
===================================================================
--- parse.y	(revision 43412)
+++ parse.y	(revision 43413)
@@ -10147,8 +10147,6 @@ static const struct { https://github.com/ruby/ruby/blob/trunk/parse.y#L10147
 } op_tbl[] = {
     {tDOT2,	".."},
     {tDOT3,	"..."},
-    {'+',	"+(binary)"},
-    {'-',	"-(binary)"},
     {tPOW,	"**"},
     {tDSTAR,	"**"},
     {tUPLUS,	"+@"},
Index: test/ruby/test_m17n.rb
===================================================================
--- test/ruby/test_m17n.rb	(revision 43412)
+++ test/ruby/test_m17n.rb	(revision 43413)
@@ -1230,7 +1230,7 @@ class TestM17N < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_m17n.rb#L1230
 
   def test_symbol_op
     ops = %w"
-      .. ... + - +(binary) -(binary) * / % ** +@ -@ | ^ & ! <=> > >= < <= ==
+      .. ... + - * / % ** +@ -@ | ^ & ! <=> > >= < <= ==
       === != =~ !~ ~ ! [] []= << >> :: `
     "
     ops.each do |op|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]