soml-parser/test/cases/function_definition/function_ops.tst

19 lines
355 B
Scilab

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