soml-parser/test/cases/root/double_root.tst

20 lines
305 B
Scilab
Raw Normal View History

int foo(ref x)
a = 5
end
foo( 3 )
-- -- --
s(:expressions,
s(:function, :int,
s(:name, :foo),
s(:parameters,
s(:parameter, :ref, :x)),
s(:expressions,
s(:assign,
s(:name, :a),
s(:int, 5)))),
s(:call,
s(:name, :foo),
s(:arguments,
s(:int, 3))))