diff options
author | murphy <murphy@rubychan.de> | 2006-03-24 21:58:29 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-03-24 21:58:29 +0000 |
commit | 0d919d07f67166981cea476e1febbc40af2eae9c (patch) | |
tree | f776062bf24c2425f73ee3af5f8a031e7c867b39 /test | |
parent | 7863986fad84f56ba537ce3714d614c33391fd85 (diff) | |
download | coderay-0d919d07f67166981cea476e1febbc40af2eae9c.tar.gz |
Ruby Scanner: Capital methods (Kernel#Array etc.) are now highlighted as idents.
Tests adjusted.
highlight.rb updated.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/evil.out.raydebug | 2 | ||||
-rw-r--r-- | test/ruby/example.out.raydebug | 92 | ||||
-rw-r--r-- | test/ruby/jarh.out.raydebug | 2 | ||||
-rw-r--r-- | test/ruby/pleac.out.raydebug | 16 |
4 files changed, 56 insertions, 56 deletions
diff --git a/test/ruby/evil.out.raydebug b/test/ruby/evil.out.raydebug index b62d778..eaa455a 100644 --- a/test/ruby/evil.out.raydebug +++ b/test/ruby/evil.out.raydebug @@ -480,7 +480,7 @@ ident(p) ident(x) -ident(p) constant(Array)operator(()string<delimiter(")content(foo)char(\\n)content(bar)delimiter(")>operator(\))
+ident(p) ident(Array)operator(()string<delimiter(")content(foo)char(\\n)content(bar)delimiter(")>operator(\))
diff --git a/test/ruby/example.out.raydebug b/test/ruby/example.out.raydebug index bd32f36..4e16094 100644 --- a/test/ruby/example.out.raydebug +++ b/test/ruby/example.out.raydebug @@ -2949,93 +2949,93 @@ comment(# @size = 0.5 + 0.2 * Math.cos(Deg2Rad * @angle\)) comment(# Make context current)
instance_variable(@glcanvas)operator(.)ident(makeCurrent)operator(()operator(\))
- constant(GL)operator(.)constant(Viewport)operator(()integer(0)operator(,) integer(0)operator(,) instance_variable(@glcanvas)operator(.)ident(width)operator(,) instance_variable(@glcanvas)operator(.)ident(height)operator(\))
+ constant(GL)operator(.)ident(Viewport)operator(()integer(0)operator(,) integer(0)operator(,) instance_variable(@glcanvas)operator(.)ident(width)operator(,) instance_variable(@glcanvas)operator(.)ident(height)operator(\))
- constant(GL)operator(.)constant(ClearColor)operator(()float(1.0)operator(/)integer(256)operator(,) float(0.0)operator(,) float(5.0)operator(/)integer(256)operator(,) float(1.0)operator(\))
- constant(GL)operator(.)constant(Clear)operator(()constant(GL)operator(::)constant(COLOR_BUFFER_BIT)operator(|)constant(GL)operator(::)constant(DEPTH_BUFFER_BIT)operator(\))
- constant(GL)operator(.)constant(Enable)operator(()constant(GL)operator(::)constant(DEPTH_TEST)operator(\))
+ constant(GL)operator(.)ident(ClearColor)operator(()float(1.0)operator(/)integer(256)operator(,) float(0.0)operator(,) float(5.0)operator(/)integer(256)operator(,) float(1.0)operator(\))
+ constant(GL)operator(.)ident(Clear)operator(()constant(GL)operator(::)constant(COLOR_BUFFER_BIT)operator(|)constant(GL)operator(::)constant(DEPTH_BUFFER_BIT)operator(\))
+ constant(GL)operator(.)ident(Enable)operator(()constant(GL)operator(::)constant(DEPTH_TEST)operator(\))
- constant(GL)operator(.)constant(Disable)operator(()constant(GL)operator(::)constant(DITHER)operator(\))
+ constant(GL)operator(.)ident(Disable)operator(()constant(GL)operator(::)constant(DITHER)operator(\))
- constant(GL)operator(.)constant(MatrixMode)operator(()constant(GL)operator(::)constant(PROJECTION)operator(\))
- constant(GL)operator(.)constant(LoadIdentity)operator(()operator(\))
- constant(GLU)operator(.)constant(Perspective)operator(()float(30.0)operator(,) ident(aspect)operator(,) float(1.0)operator(,) float(100.0)operator(\))
+ constant(GL)operator(.)ident(MatrixMode)operator(()constant(GL)operator(::)constant(PROJECTION)operator(\))
+ constant(GL)operator(.)ident(LoadIdentity)operator(()operator(\))
+ constant(GLU)operator(.)ident(Perspective)operator(()float(30.0)operator(,) ident(aspect)operator(,) float(1.0)operator(,) float(100.0)operator(\))
- constant(GL)operator(.)constant(MatrixMode)operator(()constant(GL)operator(::)constant(MODELVIEW)operator(\))
- constant(GL)operator(.)constant(LoadIdentity)operator(()operator(\))
- constant(GLU)operator(.)constant(LookAt)operator(()float(5.0)operator(,) float(10.0)operator(,) float(15.0)operator(,) float(0.0)operator(,) float(0.0)operator(,) float(0.0)operator(,) float(0.0)operator(,) float(1.0)operator(,) float(0.0)operator(\))
+ constant(GL)operator(.)ident(MatrixMode)operator(()constant(GL)operator(::)constant(MODELVIEW)operator(\))
+ constant(GL)operator(.)ident(LoadIdentity)operator(()operator(\))
+ constant(GLU)operator(.)ident(LookAt)operator(()float(5.0)operator(,) float(10.0)operator(,) float(15.0)operator(,) float(0.0)operator(,) float(0.0)operator(,) float(0.0)operator(,) float(0.0)operator(,) float(1.0)operator(,) float(0.0)operator(\))
- constant(GL)operator(.)constant(ShadeModel)operator(()constant(GL)operator(::)constant(SMOOTH)operator(\))
- constant(GL)operator(.)constant(Light)operator(()constant(GL)operator(::)constant(LIGHT0)operator(,) constant(GL)operator(::)constant(POSITION)operator(,) ident(lightPosition)operator(\))
- constant(GL)operator(.)constant(Light)operator(()constant(GL)operator(::)constant(LIGHT0)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(lightAmbient)operator(\))
- constant(GL)operator(.)constant(Light)operator(()constant(GL)operator(::)constant(LIGHT0)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(lightDiffuse)operator(\))
- constant(GL)operator(.)constant(Enable)operator(()constant(GL)operator(::)constant(LIGHT0)operator(\))
- constant(GL)operator(.)constant(Enable)operator(()constant(GL)operator(::)constant(LIGHTING)operator(\))
+ constant(GL)operator(.)ident(ShadeModel)operator(()constant(GL)operator(::)constant(SMOOTH)operator(\))
+ constant(GL)operator(.)ident(Light)operator(()constant(GL)operator(::)constant(LIGHT0)operator(,) constant(GL)operator(::)constant(POSITION)operator(,) ident(lightPosition)operator(\))
+ constant(GL)operator(.)ident(Light)operator(()constant(GL)operator(::)constant(LIGHT0)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(lightAmbient)operator(\))
+ constant(GL)operator(.)ident(Light)operator(()constant(GL)operator(::)constant(LIGHT0)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(lightDiffuse)operator(\))
+ constant(GL)operator(.)ident(Enable)operator(()constant(GL)operator(::)constant(LIGHT0)operator(\))
+ constant(GL)operator(.)ident(Enable)operator(()constant(GL)operator(::)constant(LIGHTING)operator(\))
- constant(GL)operator(.)constant(Rotated)operator(()float(0.1)operator(*)instance_variable(@angle)operator(,) float(0.0)operator(,) float(1.0)operator(,) float(0.0)operator(\))
+ constant(GL)operator(.)ident(Rotated)operator(()float(0.1)operator(*)instance_variable(@angle)operator(,) float(0.0)operator(,) float(1.0)operator(,) float(0.0)operator(\))
reserved(for) ident(x) reserved(in) operator(-)constant(D_MAX)operator(..)constant(D_MAX)
reserved(for) ident(y) reserved(in) operator(-)constant(D_MAX)operator(..)constant(D_MAX)
ident(h1) operator(=) operator(()ident(x) operator(+) ident(y) operator(-) integer(2)operator(\))operator(.)ident(abs)
ident(h2) operator(=) operator(()ident(y) operator(-) ident(x) operator(+) integer(1)operator(\))operator(.)ident(abs)
constant(GL)operator(.)constant(PushMatrix)
ident(c) operator(=) operator([)integer(1)operator(,) integer(0)operator(,) integer(0)operator(,) integer(1)operator(])
- constant(GL)operator(.)constant(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(c)operator(\))
- constant(GL)operator(.)constant(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(c)operator(\))
+ constant(GL)operator(.)ident(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(c)operator(\))
+ constant(GL)operator(.)ident(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(c)operator(\))
- constant(GL)operator(.)constant(Translated)operator(()
+ constant(GL)operator(.)ident(Translated)operator(()
ident(y) operator(*) constant(SQUARE_DISTANCE)operator(,)
constant(AMPLITUDE) operator(*) ident(h1)operator(,)
ident(x) operator(*) constant(SQUARE_DISTANCE)
operator(\))
- constant(GL)operator(.)constant(Begin)operator(()constant(GL)operator(::)constant(TRIANGLE_STRIP)operator(\))
- constant(GL)operator(.)constant(Normal)operator(()float(1.0)operator(,) float(0.0)operator(,) float(0.0)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Begin)operator(()constant(GL)operator(::)constant(TRIANGLE_STRIP)operator(\))
+ constant(GL)operator(.)ident(Normal)operator(()float(1.0)operator(,) float(0.0)operator(,) float(0.0)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
constant(GL)operator(.)constant(End)
constant(GL)operator(.)constant(PopMatrix)
constant(GL)operator(.)constant(PushMatrix)
ident(c) operator(=) operator([)integer(0)operator(,) integer(0)operator(,) integer(1)operator(,) integer(1)operator(])
- constant(GL)operator(.)constant(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(c)operator(\))
- constant(GL)operator(.)constant(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(c)operator(\))
+ constant(GL)operator(.)ident(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(c)operator(\))
+ constant(GL)operator(.)ident(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(c)operator(\))
- constant(GL)operator(.)constant(Translated)operator(()
+ constant(GL)operator(.)ident(Translated)operator(()
ident(y) operator(*) constant(SQUARE_DISTANCE)operator(,)
constant(AMPLITUDE) operator(*) ident(h2)operator(,)
ident(x) operator(*) constant(SQUARE_DISTANCE)
operator(\))
- constant(GL)operator(.)constant(Begin)operator(()constant(GL)operator(::)constant(TRIANGLE_STRIP)operator(\))
- constant(GL)operator(.)constant(Normal)operator(()float(1.0)operator(,) float(0.0)operator(,) float(0.0)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Begin)operator(()constant(GL)operator(::)constant(TRIANGLE_STRIP)operator(\))
+ constant(GL)operator(.)ident(Normal)operator(()float(1.0)operator(,) float(0.0)operator(,) float(0.0)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
constant(GL)operator(.)constant(End)
constant(GL)operator(.)constant(PopMatrix)
constant(GL)operator(.)constant(PushMatrix)
ident(c) operator(=) operator([)float(0.0) operator(+) operator(()ident(x)operator(/)float(10.0)operator(\))operator(,) float(0.0) operator(+) operator(()ident(y)operator(/)float(10.0)operator(\))operator(,) integer(0)operator(,) integer(1)operator(])
- constant(GL)operator(.)constant(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(c)operator(\))
- constant(GL)operator(.)constant(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(c)operator(\))
+ constant(GL)operator(.)ident(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(AMBIENT)operator(,) ident(c)operator(\))
+ constant(GL)operator(.)ident(Material)operator(()constant(GL)operator(::)constant(FRONT)operator(,) constant(GL)operator(::)constant(DIFFUSE)operator(,) ident(c)operator(\))
- constant(GL)operator(.)constant(Translated)operator(()
+ constant(GL)operator(.)ident(Translated)operator(()
ident(y) operator(*) constant(SQUARE_DISTANCE)operator(,)
integer(0)operator(,)
ident(x) operator(*) constant(SQUARE_DISTANCE)
operator(\))
- constant(GL)operator(.)constant(Begin)operator(()constant(GL)operator(::)constant(TRIANGLE_STRIP)operator(\))
- constant(GL)operator(.)constant(Normal)operator(()float(1.0)operator(,) float(0.0)operator(,) float(0.0)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
- constant(GL)operator(.)constant(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Begin)operator(()constant(GL)operator(::)constant(TRIANGLE_STRIP)operator(\))
+ constant(GL)operator(.)ident(Normal)operator(()float(1.0)operator(,) float(0.0)operator(,) float(0.0)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(-)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(-)constant(SQUARE_SIZE)operator(\))
+ constant(GL)operator(.)ident(Vertex)operator(()operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(,) operator(+)constant(SQUARE_SIZE)operator(\))
constant(GL)operator(.)constant(End)
constant(GL)operator(.)constant(PopMatrix)
@@ -3090,7 +3090,7 @@ comment(# @size = 0.5 + 0.2 * Math.cos(Deg2Rad * @angle\)) operator(})
instance_variable(@glcanvas)operator(.)ident(connect)operator(()constant(SEL_CONFIGURE)operator(\)) operator({)
reserved(if) instance_variable(@glcanvas)operator(.)ident(makeCurrent)
- constant(GL)operator(.)constant(Viewport)operator(()integer(0)operator(,) integer(0)operator(,) instance_variable(@glcanvas)operator(.)ident(width)operator(,) instance_variable(@glcanvas)operator(.)ident(height)operator(\))
+ constant(GL)operator(.)ident(Viewport)operator(()integer(0)operator(,) integer(0)operator(,) instance_variable(@glcanvas)operator(.)ident(width)operator(,) instance_variable(@glcanvas)operator(.)ident(height)operator(\))
instance_variable(@glcanvas)operator(.)ident(makeNonCurrent)
reserved(end)
operator(})
diff --git a/test/ruby/jarh.out.raydebug b/test/ruby/jarh.out.raydebug index 5fc2f3f..0c3b36d 100644 --- a/test/ruby/jarh.out.raydebug +++ b/test/ruby/jarh.out.raydebug @@ -263,7 +263,7 @@ ident(print) string<delimiter(')content(Just another Ruby hacker,)delimiter(')>o ident(print) string<delimiter(%w.)content(J u s t )content(\\ )content(a n o t h e r )content(\\ )content(R u b y )content(\\ )content(h a c k e r ,)delimiter(.)>
-ident(print) constant(String)operator(()operator([)string<delimiter(%[)content(Just another Ruby hacker,)delimiter(])>operator(])operator(\))
+ident(print) ident(String)operator(()operator([)string<delimiter(%[)content(Just another Ruby hacker,)delimiter(])>operator(])operator(\))
ident(print) ident(catch)operator(()symbol(:x)operator(\))operator({)ident(throw) symbol(:x)operator(,) string<delimiter(')content(Just another Ruby hacker,)delimiter(')>operator(})
diff --git a/test/ruby/pleac.out.raydebug b/test/ruby/pleac.out.raydebug index 9465bcd..fbf465f 100644 --- a/test/ruby/pleac.out.raydebug +++ b/test/ruby/pleac.out.raydebug @@ -317,15 +317,15 @@ comment(# @@INCLUDE@@ include/ruby/psgrep.rb) comment(# @@PLEAC@@_2.1)
comment(# Matz tells that you can use Integer(\) for strict checked conversion.)
-constant(Integer)operator(()string<delimiter(")content(abc)delimiter(")>operator(\))
+ident(Integer)operator(()string<delimiter(")content(abc)delimiter(")>operator(\))
comment(#=> `Integer': invalid value for Integer: "abc" (ArgumentError\))
-constant(Integer)operator(()string<delimiter(")content(567)delimiter(")>operator(\))
+ident(Integer)operator(()string<delimiter(")content(567)delimiter(")>operator(\))
comment(#=> 567)
comment(# You may use Float(\) for floating point stuff)
-constant(Integer)operator(()string<delimiter(")content(56.7)delimiter(")>operator(\))
+ident(Integer)operator(()string<delimiter(")content(56.7)delimiter(")>operator(\))
comment(#=> `Integer': invalid value for Integer: "56.7" (ArgumentError\))
-constant(Float)operator(()string<delimiter(")content(56.7)delimiter(")>operator(\))
+ident(Float)operator(()string<delimiter(")content(56.7)delimiter(")>operator(\))
comment(#=> 56.7)
comment(# You may also use a regexp for that)
@@ -598,8 +598,8 @@ comment(# @@PLEAC@@_2.15) ident(require) string<delimiter(')content(complex.rb)delimiter(')>
ident(require) string<delimiter(')content(rational.rb)delimiter(')>
-ident(a) operator(=) constant(Complex)operator(()integer(3)operator(,) integer(5)operator(\)) comment(# 3 + 5i)
-ident(b) operator(=) constant(Complex)operator(()integer(2)operator(,) integer(-2)operator(\)) comment(# 2 - 2i)
+ident(a) operator(=) ident(Complex)operator(()integer(3)operator(,) integer(5)operator(\)) comment(# 3 + 5i)
+ident(b) operator(=) ident(Complex)operator(()integer(2)operator(,) integer(-2)operator(\)) comment(# 2 - 2i)
ident(puts) string<delimiter(")content(c = )inline<delimiter(#{)ident(a)operator(*)ident(b)delimiter(})>delimiter(")>
ident(c) operator(=) ident(a) operator(*) ident(b)
@@ -799,7 +799,7 @@ ident(number_of_times)operator(.)ident(times) operator({) ident(total_time) operator(+=) ident(time)
operator(})
ident(printf) string<delimiter(")content(On average, sorting %d random numbers takes %.5f seconds)char(\\n)delimiter(")>operator(,)
- ident(size)operator(,) operator(()ident(total_time)operator(/)constant(Float)operator(()ident(number_of_times)operator(\))operator(\))
+ ident(size)operator(,) operator(()ident(total_time)operator(/)ident(Float)operator(()ident(number_of_times)operator(\))operator(\))
comment(# @@PLEAC@@_3.10)
@@ -5505,7 +5505,7 @@ ident(values) operator(=) operator(()integer(1)operator(..)integer(5)operator(\) reserved(for) ident(i) reserved(in) ident(values)
ident(max) operator(=) ident(i) reserved(if) ident(max) operator(<) ident(i)
reserved(end)
-ident(ratio) operator(=) constant(Float)operator(()ident(ws_col)integer(-12)operator(\))operator(/)ident(max) comment(# chars per unit)
+ident(ratio) operator(=) ident(Float)operator(()ident(ws_col)integer(-12)operator(\))operator(/)ident(max) comment(# chars per unit)
reserved(for) ident(i) reserved(in) ident(values)
ident(printf) string<delimiter(")content(%8.1f %s)char(\\n)delimiter(")>operator(,) ident(i)operator(,) string<delimiter(")content(*)delimiter(")> operator(*) operator(()ident(ratio)operator(*)ident(i)operator(\))
reserved(end)
|