soml-parser/test/cases/function_definition/class_function.tst

14 lines
243 B
Scilab
Raw Normal View History

int self.length( ref x )
2015-10-09 16:28:47 +02:00
return 5
end
-- -- --
2015-10-09 16:28:47 +02:00
s(:statements,
s(:function, :int,
s(:name, :length),
s(:parameters,
s(:parameter, :ref, :x)),
2015-10-09 16:28:47 +02:00
s(:statements,
s(:return,
s(:int, 5))),
s(:receiver, :self)))