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,3 +1,6 @@
[42, foo]
-- -- --
s(:list, [s(:array, [s(:int, 42), s(:name, "foo")])])
s(:expressions,
s(:array,
s(:int, 42),
s(:name, :foo)))

View File

@ -1,8 +1,11 @@
[ 3 + 4 , foo(22) ]
-- -- --
s(:list, [s(:array, [s(:operator, "+",
s(:int, 3),
s(:int, 4)), s(:call,
s(:name, "foo"),
s(:arguments,
s(:int, 22)))])])
s(:expressions,
s(:array,
s(:operator, "+",
s(:int, 3),
s(:int, 4)),
s(:call,
s(:name, :foo),
s(:arguments,
s(:int, 22)))))

View File

@ -1,5 +1,7 @@
{ foo => 33 }
-- -- --
s(:list, [s(:hash, [s(:assoc,
s(:name, "foo"),
s(:int, 33))])])
s(:expressions,
s(:hash,
s(:assoc,
s(:name, :foo),
s(:int, 33))))

View File

@ -1,5 +1,7 @@
{ foo => true }
-- -- --
s(:list, [s(:hash, [s(:assoc,
s(:name, "foo"),
s(:true))])])
s(:expressions,
s(:hash,
s(:assoc,
s(:name, :foo),
s(:true))))

View File

@ -1,7 +1,10 @@
{foo => 33 , bar => 42}
-- -- --
s(:list, [s(:hash, [s(:assoc,
s(:name, "foo"),
s(:int, 33)), s(:assoc,
s(:name, "bar"),
s(:int, 42))])])
s(:expressions,
s(:hash,
s(:assoc,
s(:name, :foo),
s(:int, 33)),
s(:assoc,
s(:name, :bar),
s(:int, 42))))

View File

@ -1,3 +1,5 @@
[42]
-- -- --
s(:list, [s(:array, [s(:int, 42)])])
s(:expressions,
s(:array,
s(:int, 42)))