soml-parser/test/cases/function_definition/class_function.tst
2015-10-09 17:28:47 +03:00

14 lines
243 B
Scilab

int self.length( ref x )
return 5
end
-- -- --
s(:statements,
s(:function, :int,
s(:name, :length),
s(:parameters,
s(:parameter, :ref, :x)),
s(:statements,
s(:return,
s(:int, 5))),
s(:receiver, :self)))