17 lines
291 B
Scilab
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)))))))
|