2011-05-29 01:36:19 +00:00
|
|
|
local x = function() print(what) end
|
2011-05-28 23:45:59 +00:00
|
|
|
local _ = function() end
|
2011-05-29 01:36:19 +00:00
|
|
|
_ = function()
|
|
|
|
return function() return function() end end
|
|
|
|
end
|
2011-05-21 22:26:46 +00:00
|
|
|
go(to(the(barn)))
|
2011-05-29 01:36:19 +00:00
|
|
|
open(function() the(function() return door end) end)
|
2011-05-21 22:26:46 +00:00
|
|
|
open(function()
|
|
|
|
the(door)
|
2011-05-29 01:36:19 +00:00
|
|
|
local hello = function() my(func) end
|
2011-05-21 22:26:46 +00:00
|
|
|
end)
|
2011-05-28 23:45:59 +00:00
|
|
|
local h = function() return hi end
|
2011-05-21 22:26:46 +00:00
|
|
|
eat(function() end, world)
|
|
|
|
local a = 1 + 2 * 3 / 6
|
2011-05-29 23:25:52 +00:00
|
|
|
local bunch, go, here
|
|
|
|
a, bunch, go, here = another, world
|
2011-05-22 07:58:17 +00:00
|
|
|
func(arg1, arg2, another, arg3)
|
2011-05-29 23:25:52 +00:00
|
|
|
local we
|
|
|
|
here, we = function() end, yeah
|
2011-05-28 23:45:59 +00:00
|
|
|
local the, different = function() return approach end, yeah
|
2011-05-21 22:26:46 +00:00
|
|
|
dad()
|
|
|
|
dad(lord)
|
2011-05-22 19:19:13 +00:00
|
|
|
hello(one, two)();
|
2011-05-21 22:26:46 +00:00
|
|
|
(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))
|
2011-05-22 19:19:13 +00:00
|
|
|
hairy[hands][are](gross)(okay(okay[world]));
|
|
|
|
(get[something] + 5)[years]
|
2011-05-29 23:25:52 +00:00
|
|
|
local i
|
|
|
|
i, x = 200, 300
|
2011-05-22 19:19:13 +00:00
|
|
|
local yeah = (1 + 5) * 3
|
|
|
|
yeah = ((1 + 5) * 3) / 2
|
|
|
|
yeah = ((1 + 5) * 3) / 2 + i % 100
|
|
|
|
local whoa = (1 + 2) * (3 + 4) * (4 + 5);
|
|
|
|
(function() end)()
|
2011-05-28 23:45:59 +00:00
|
|
|
return(5 + function() return 4 + 2 end)
|
|
|
|
return(5 + (function() return 4 end) + 2)
|
2011-05-22 19:19:13 +00:00
|
|
|
print(5 + function()
|
2011-05-28 23:45:59 +00:00
|
|
|
_ = 34
|
2011-05-22 19:19:13 +00:00
|
|
|
good(nads)
|
2011-05-23 02:28:25 +00:00
|
|
|
end)
|
|
|
|
something('else', "ya")
|
|
|
|
something('else')
|
|
|
|
something("else")
|
2011-05-24 06:58:10 +00:00
|
|
|
here(we)("go")[12123]
|
2011-05-29 01:36:19 +00:00
|
|
|
local something = { test = 12323, what = function() print("hello world") end }
|
2011-05-24 06:58:10 +00:00
|
|
|
print(something.test)
|
|
|
|
local frick = { hello = "world" }
|
|
|
|
local argon = { num = 100, world = function(self)
|
|
|
|
print(self.num)
|
2011-05-29 01:36:19 +00:00
|
|
|
return({ something = function() print("hi from something") end })
|
2011-05-24 06:58:10 +00:00
|
|
|
end, somethin = function(self,str)
|
|
|
|
print("string is", str)
|
2011-05-29 01:36:19 +00:00
|
|
|
return({ world = function(a,b) print("sum", a + b) end })
|
2011-05-24 06:58:10 +00:00
|
|
|
end }
|
|
|
|
something.what()
|
|
|
|
argon:world().something()
|
2011-05-28 07:21:25 +00:00
|
|
|
argon:somethin("200").world(1, 2)
|
|
|
|
x = -434
|
|
|
|
x = -hello(world(one(two)))
|
|
|
|
local hi = -"herfef"
|
|
|
|
x = -(function()
|
|
|
|
local tmp = {}
|
|
|
|
for x in x do
|
|
|
|
table.insert(tmp, x)
|
|
|
|
end
|
|
|
|
return tmp
|
|
|
|
end)()
|
|
|
|
if cool then
|
|
|
|
print("hello")
|
|
|
|
end
|
|
|
|
print("nutjob")
|
|
|
|
if hello then
|
2011-05-28 23:45:59 +00:00
|
|
|
_ = 343
|
2011-05-28 07:21:25 +00:00
|
|
|
end
|
|
|
|
if cool then
|
|
|
|
print("what")
|
|
|
|
else
|
2011-05-29 21:40:40 +00:00
|
|
|
_ = whack
|
2011-05-28 07:21:25 +00:00
|
|
|
end
|
|
|
|
local arg = { ... }
|
2011-05-29 01:36:19 +00:00
|
|
|
x = function(...) dump({ ... }) end
|
2011-05-28 07:21:25 +00:00
|
|
|
x = not true
|
|
|
|
local y = not (5 + 5)
|
|
|
|
y = #"hello"
|
2011-05-30 05:38:47 +00:00
|
|
|
x = #{ #{ }, #{ 1 }, #{ 1, 2 } }
|
|
|
|
_ = hello, world
|