moonscript/tests/outputs/loops.lua
2011-07-14 23:46:16 -07:00

39 lines
549 B
Lua

for x = 1, 10 do
print("yeah")
end
for x = 1, #something do
print("yeah")
end
for y = 100, 60, -3 do
print("count down", y)
end
for a = 1, 10 do
print("okay")
end
for a = 1, 10 do
for b = 2, 43 do
print(a, b)
end
end
for i in iter do
for j in yeah do
local x = 343 + i + j
print(i, j)
end
end
do
local _item_0 = something
for _index_0 = 1, #_item_0 do
local x = _item_0[_index_0]
print(x)
end
end
for k, v in pairs(hello) do
print(k, v)
end
local x
x = function()
for x in y do
local _ = y
end
end