fix all the cases, much white noise, array to list, string to sym stuff

This commit is contained in:
Torsten Ruger
2015-09-19 14:53:30 +03:00
parent 3b0b91f2fb
commit 21b652456d
78 changed files with 690 additions and 559 deletions

View File

@ -1,7 +1,8 @@
puts(3 , a )
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments,
s(:int, 3),
s(:name, "a")))])
s(:expressions,
s(:call,
s(:name, :puts),
s(:arguments,
s(:int, 3),
s(:name, :a))))

View File

@ -1,7 +1,8 @@
baz(42, foo)
-- -- --
s(:list, [s(:call,
s(:name, "baz"),
s(:arguments,
s(:int, 42),
s(:name, "foo")))])
s(:expressions,
s(:call,
s(:name, :baz),
s(:arguments,
s(:int, 42),
s(:name, :foo))))

View File

@ -1,6 +1,7 @@
puts( "hello")
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments,
s(:string, "hello")))])
s(:expressions,
s(:call,
s(:name, :puts),
s(:arguments,
s(:string, "hello"))))

View File

@ -1,7 +1,8 @@
42.put()
-- -- --
s(:list, [s(:call,
s(:name, "put"),
s(:arguments),
s(:receiver,
s(:int, 42)))])
s(:expressions,
s(:call,
s(:name, :put),
s(:arguments),
s(:receiver,
s(:int, 42))))

View File

@ -1,6 +1,7 @@
puts( 5)
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments,
s(:int, 5)))])
s(:expressions,
s(:call,
s(:name, :puts),
s(:arguments,
s(:int, 5))))

View File

@ -1,6 +1,7 @@
foo(42)
-- -- --
s(:list, [s(:call,
s(:name, "foo"),
s(:arguments,
s(:int, 42)))])
s(:expressions,
s(:call,
s(:name, :foo),
s(:arguments,
s(:int, 42))))

View File

@ -1,8 +1,9 @@
Object.foo(42)
-- -- --
s(:list, [s(:call,
s(:name, "foo"),
s(:arguments,
s(:int, 42)),
s(:receiver,
s(:module, "Object")))])
s(:expressions,
s(:call,
s(:name, :foo),
s(:arguments,
s(:int, 42)),
s(:receiver,
s(:module, "Object"))))

View File

@ -1,8 +1,9 @@
my_my.foo(42)
-- -- --
s(:list, [s(:call,
s(:name, "foo"),
s(:arguments,
s(:int, 42)),
s(:receiver,
s(:name, "my_my")))])
s(:expressions,
s(:call,
s(:name, :foo),
s(:arguments,
s(:int, 42)),
s(:receiver,
s(:name, :my_my))))

View File

@ -1,8 +1,9 @@
self.foo(42)
-- -- --
s(:list, [s(:call,
s(:name, "foo"),
s(:arguments,
s(:int, 42)),
s(:receiver,
s(:name, "self")))])
s(:expressions,
s(:call,
s(:name, :foo),
s(:arguments,
s(:int, 42)),
s(:receiver,
s(:name, :self))))

View File

@ -1,7 +1,8 @@
"hello".puts()
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments),
s(:receiver,
s(:string, "hello")))])
s(:expressions,
s(:call,
s(:name, :puts),
s(:arguments),
s(:receiver,
s(:string, "hello"))))