soml-parser/test/cases/while_statement/while.tst
2015-10-09 17:28:13 +03:00

17 lines
255 B
Scilab

while(1)
tmp = a
puts(b)
end
-- -- --
s(:while_statement,
s(:condition,
s(:int, 1)),
s(:statements,
s(:assignment,
s(:name, :tmp),
s(:name, :a)),
s(:call,
s(:name, :puts),
s(:arguments,
s(:name, :b)))))