soml-parser/test/cases/function_definition/function_no_arg.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

12 lines
173 B
Scilab

int foo()
return 5
end
-- -- --
s(:statements,
s(:function, :Integer,
s(:name, :foo),
s(:parameters),
s(:statements,
s(:return,
s(:int, 5)))))