soml-parser/test/cases/class_definition/class_method.tst

17 lines
291 B
Scilab
Raw Normal View History

class Foo < Object
int test()
2015-10-09 16:32:05 +02:00
return 43
end
end
-- -- --
2015-10-09 16:32:05 +02:00
s(:statements,
s(:class, :Foo,
s(:derives, :Object),
2015-10-09 16:32:05 +02:00
s(:statements,
s(:function, :int,
s(:name, :test),
s(:parameters),
2015-10-09 16:32:05 +02:00
s(:statements,
s(:return,
s(:int, 43)))))))