moonscript/tests/outputs/syntax.lua
2011-05-21 15:26:46 -07:00

27 lines
723 B
Lua

local x = function() print(what) end
function() end
function() function() function() end end end
go(to(the(barn)))
open(function() the(function() door end) end)
open(function()
the(door)
local hello = function() my(func) end
end)
local h = function() hi end
eat(function() end, world)
local a = 1 + 2 * 3 / 6
local a, bunch, go, here = another, world
func(arg(1, arg(2, another, arg(3))))
local here, we = function() end, yeah
local the, different = function() approach end, yeah
dad()
dad(lord)
hello(one, two)()
(5 + 5)(world)
fun(a)(b)
fun(a)(b)
fun(a)(b, bad(hello))
hello(world(what(are(you(doing(here))))))
what(the)[3243](world, yeck(heck))
hairy[hands][are](gross)(okay(okay[world]))
(get[something] + 5)[years]