mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
53 lines
940 B
Lua
53 lines
940 B
Lua
|
local _exp_0 = value
|
||
|
if "cool" == _exp_0 then
|
||
|
print("hello world")
|
||
|
end
|
||
|
local _exp_1 = value
|
||
|
if "cool" == _exp_1 then
|
||
|
print("hello world")
|
||
|
else
|
||
|
print("okay rad")
|
||
|
end
|
||
|
local _exp_2 = value
|
||
|
if "cool" == _exp_2 then
|
||
|
print("hello world")
|
||
|
elseif "yeah" == _exp_2 then
|
||
|
local _ = [[FFFF]] + [[MMMM]]
|
||
|
elseif 2323 + 32434 == _exp_2 then
|
||
|
print("okay")
|
||
|
else
|
||
|
print("okay rad")
|
||
|
end
|
||
|
local out
|
||
|
local _exp_3 = value
|
||
|
if "cool" == _exp_3 then
|
||
|
out = print("hello world")
|
||
|
else
|
||
|
out = print("okay rad")
|
||
|
end
|
||
|
local _exp_4 = value
|
||
|
if "cool" == _exp_4 then
|
||
|
out = xxxx
|
||
|
elseif "umm" == _exp_4 then
|
||
|
out = 34340
|
||
|
else
|
||
|
out = error("this failed big time")
|
||
|
end
|
||
|
do
|
||
|
local _with_0 = something
|
||
|
local _exp_5 = _with_0:value()
|
||
|
if _with_0.okay == _exp_5 then
|
||
|
local _ = "world"
|
||
|
else
|
||
|
local _ = "yesh"
|
||
|
end
|
||
|
end
|
||
|
fix(this)
|
||
|
call_func((function()
|
||
|
local _exp_5 = something
|
||
|
if 1 == _exp_5 then
|
||
|
return "yes"
|
||
|
else
|
||
|
return "no"
|
||
|
end
|
||
|
end)())
|