2015-09-18 20:55:02 +02:00
|
|
|
class Foo < Object
|
2015-09-19 13:53:30 +02:00
|
|
|
int test()
|
2015-10-09 16:32:05 +02:00
|
|
|
return 43
|
2015-09-18 20:55:02 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
-- -- --
|
2015-10-09 16:32:05 +02:00
|
|
|
s(:statements,
|
2015-09-20 15:03:27 +02:00
|
|
|
s(:class, :Foo,
|
|
|
|
s(:derives, :Object),
|
2015-10-09 16:32:05 +02:00
|
|
|
s(:statements,
|
2015-09-20 15:03:27 +02:00
|
|
|
s(:function, :int,
|
|
|
|
s(:name, :test),
|
|
|
|
s(:parameters),
|
2015-10-09 16:32:05 +02:00
|
|
|
s(:statements,
|
|
|
|
s(:return,
|
|
|
|
s(:int, 43)))))))
|