soml-parser/test/cases/function_definition/function_ops.tst
2015-09-20 14:43:08 +03:00

17 lines
306 B
Scilab

int foo(int x)
int abba = 5
abba + 5
end
-- -- --
s(:expressions,
s(:function, :int,
s(:name, :foo),
s(:parameters,
s(:parameter, :int, :x)),
s(:expressions,
s(:field_def, :int, :abba,
s(:int, 5)),
s(:operator, "+",
s(:name, :abba),
s(:int, 5)))))