fix array and hash constants, now seperated out

This commit is contained in:
Torsten Ruger
2015-10-09 17:29:24 +03:00
parent dff0e8fab4
commit b424306156
7 changed files with 34 additions and 40 deletions

View File

@ -1,6 +1,5 @@
[42, foo]
-- -- --
s(:expressions,
s(:array,
s(:int, 42),
s(:name, :foo)))
s(:array,
s(:int, 42),
s(:name, :foo))

View File

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

View File

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