soml-parser/test/cases/class_definition/class_method.tst
2015-10-09 17:32:05 +03:00

17 lines
291 B
Scilab

class Foo < Object
int test()
return 43
end
end
-- -- --
s(:statements,
s(:class, :Foo,
s(:derives, :Object),
s(:statements,
s(:function, :int,
s(:name, :test),
s(:parameters),
s(:statements,
s(:return,
s(:int, 43)))))))