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

16 lines
270 B
Scilab

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