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

14 lines
228 B
Scilab

int foo(ref x)
a = 1
end
-- -- --
s(:statements,
s(:function, :int,
s(:name, :foo),
s(:parameters,
s(:parameter, :ref, :x)),
s(:statements,
s(:assignment,
s(:name, :a),
s(:int, 1)))))