fix test after syntax changes

This commit is contained in:
Torsten Ruger
2015-10-19 15:21:23 +03:00
parent 3061ddfed9
commit 6710567af9
15 changed files with 42 additions and 46 deletions

View File

@ -1,4 +1,4 @@
while( n > 1)
while_allgood( n > 1)
tmp = a
a = b
b = tmp + b
@ -6,8 +6,8 @@ while( n > 1)
n = n - 1
end
-- -- --
s(:while_statement,
s(:condition,
s(:while_statement, :allgood,
s(:conditional,
s(:operator_value, :>,
s(:name, :n),
s(:int, 1))),

View File

@ -1,10 +1,10 @@
while(1)
while_false(1)
tmp = a
puts(b)
end
-- -- --
s(:while_statement,
s(:condition,
s(:while_statement, :false,
s(:conditional,
s(:int, 1)),
s(:statements,
s(:assignment,

View File

@ -1,10 +1,10 @@
while(1)
while_true(1)
tmp = String.new()
tmp.puts(i)
end
-- -- --
s(:while_statement,
s(:condition,
s(:while_statement, :true,
s(:conditional,
s(:int, 1)),
s(:statements,
s(:assignment,