soml-parser/test/cases/function_definition/function_foo2.tst
Torsten Ruger ab0a94bd51 change type to class name
although int is still allowed for integers (gets replaced though)
2015-10-14 15:48:53 +03:00

16 lines
282 B
Scilab

int foo(int x)
int a = 5
return a
end
-- -- --
s(:statements,
s(:function, :Integer,
s(:name, :foo),
s(:parameters,
s(:parameter, :Integer, :x)),
s(:statements,
s(:field_def, :Integer, :a,
s(:int, 5)),
s(:return,
s(:name, :a)))))