moonscript/tests/outputs/syntax.lua
leaf corcoran 6e0927f55d strings
2011-05-22 00:58:17 -07:00

29 lines
717 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
a = another
local bunch, go, here = world
func(arg1, arg2, another, arg3)
here = function() end
local we = 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]