preparing test

This commit is contained in:
Torsten Ruger 2015-09-20 14:29:24 +03:00
parent f51563e99b
commit d0b950eed9

View File

@ -1,12 +1,30 @@
class Foo < Object class Foo < Object
int field = 3
int func()
return self.field
end
ofthen(3 , var) ofthen(3 , var)
end end
-- -- -- -- -- --
s(:expressions, s(:expressions,
s(:class, :Foo, s(:class, :Foo,
s(:derives, :Object), s(:derives, :Object),
s(:call, s(:name, :int),
s(:name, :ofthen), s(:assign,
s(:arguments, s(:name, :field),
s(:int, 3), s(:int, 3)),
s(:name, :var))))) s(:function, :int,
s(:name, :func),
s(:parameters),
s(:expressions,
s(:return,
s(:field_access,
s(:receiver,
s(:name, :self)),
s(:field,
s(:name, :field)))))),
s(:call,
s(:name, :ofthen),
s(:arguments,
s(:int, 3),
s(:name, :var)))))