2015-09-18 21:55:02 +03:00
|
|
|
int foo(ref x)
|
2015-10-09 17:28:47 +03:00
|
|
|
a = 1
|
2015-09-18 21:55:02 +03:00
|
|
|
end
|
|
|
|
-- -- --
|
2015-10-09 17:28:47 +03:00
|
|
|
s(:statements,
|
2015-09-20 12:56:06 +03:00
|
|
|
s(:function, :int,
|
|
|
|
s(:name, :foo),
|
|
|
|
s(:parameters,
|
|
|
|
s(:parameter, :ref, :x)),
|
2015-10-09 17:28:47 +03:00
|
|
|
s(:statements,
|
|
|
|
s(:assignment,
|
|
|
|
s(:name, :a),
|
|
|
|
s(:int, 1)))))
|