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

14 lines
247 B
Scilab
Raw Normal View History

int foo( int n ,ref m)
2015-10-09 16:28:47 +02:00
return n
end
-- -- --
2015-10-09 16:28:47 +02:00
s(:statements,
s(:function, :int,
s(:name, :foo),
s(:parameters,
s(:parameter, :int, :n),
s(:parameter, :ref, :m)),
2015-10-09 16:28:47 +02:00
s(:statements,
s(:return,
s(:name, :n)))))