2011-05-21 22:26:46 +00:00
|
|
|
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-06-03 03:55:33 +00:00
|
|
|
local the, different
|
2011-07-14 07:02:07 +00:00
|
|
|
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-06-13 05:38:42 +00:00
|
|
|
hairy[hands][are](gross)(okay(okay[world]))
|
2011-07-16 18:00:39 +00:00
|
|
|
local _ = (get[something] + 5)[years]
|
|
|
|
local 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
|
2011-07-16 18:00:39 +00:00
|
|
|
local whoa = (1 + 2) * (3 + 4) * (4 + 5)
|
2011-07-16 19:35:43 +00:00
|
|
|
_ = function()
|
|
|
|
if something then
|
|
|
|
return 1, 2, 4
|
|
|
|
end
|
|
|
|
return print("hello")
|
|
|
|
end
|
|
|
|
_ = function()
|
|
|
|
if hello then
|
|
|
|
return "heloo", "world"
|
|
|
|
else
|
|
|
|
return no, way
|
|
|
|
end
|
|
|
|
end
|
|
|
|
_ = function()
|
|
|
|
return 1, 2, 34
|
|
|
|
end
|
|
|
|
return 5 + function()
|
2011-07-14 07:02:07 +00:00
|
|
|
return 4 + 2
|
2011-07-16 19:35:43 +00:00
|
|
|
end
|
|
|
|
return 5 + (function()
|
2011-07-14 07:02:07 +00:00
|
|
|
return 4
|
2011-07-16 19:35:43 +00:00
|
|
|
end) + 2
|
2011-05-22 19:19:13 +00:00
|
|
|
print(5 + function()
|
2011-05-28 23:45:59 +00:00
|
|
|
_ = 34
|
2011-06-02 04:11:03 +00:00
|
|
|
return good(nads)
|
2011-05-23 02:28:25 +00:00
|
|
|
end)
|
|
|
|
something('else', "ya")
|
|
|
|
something('else')
|
|
|
|
something("else")
|
2015-09-27 04:07:22 +00:00
|
|
|
_ = something([[hey]]) * 2
|
|
|
|
_ = something([======[hey]======]) * 2
|
2015-09-29 07:32:46 +00:00
|
|
|
_ = something('else'), 2
|
|
|
|
_ = something("else"), 2
|
|
|
|
_ = something([[else]]), 2
|
|
|
|
something('else', 2)
|
|
|
|
something("else", 2)
|
|
|
|
something([[else]], 2)
|
2011-06-13 05:38:42 +00:00
|
|
|
_ = here(we)("go")[12123]
|
2011-07-14 07:02:07 +00:00
|
|
|
local something = {
|
|
|
|
test = 12323,
|
|
|
|
what = function()
|
|
|
|
return print("hello world")
|
|
|
|
end
|
|
|
|
}
|
2011-05-24 06:58:10 +00:00
|
|
|
print(something.test)
|
2011-07-14 07:02:07 +00:00
|
|
|
local frick = {
|
|
|
|
hello = "world"
|
|
|
|
}
|
|
|
|
local argon = {
|
|
|
|
num = 100,
|
|
|
|
world = function(self)
|
2011-05-24 06:58:10 +00:00
|
|
|
print(self.num)
|
2011-07-14 07:02:07 +00:00
|
|
|
return {
|
|
|
|
something = function()
|
|
|
|
return print("hi from something")
|
|
|
|
end
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
somethin = function(self, str)
|
2011-05-24 06:58:10 +00:00
|
|
|
print("string is", str)
|
2011-07-14 07:02:07 +00:00
|
|
|
return {
|
|
|
|
world = function(a, b)
|
|
|
|
return print("sum", a + b)
|
|
|
|
end
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|
2011-05-24 06:58:10 +00:00
|
|
|
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()
|
2011-07-14 07:02:07 +00:00
|
|
|
local _accum_0 = { }
|
2013-01-12 21:01:34 +00:00
|
|
|
local _len_0 = 1
|
2011-05-28 07:21:25 +00:00
|
|
|
for x in x do
|
2011-08-14 02:19:17 +00:00
|
|
|
_accum_0[_len_0] = x
|
2013-01-12 21:01:34 +00:00
|
|
|
_len_0 = _len_0 + 1
|
2011-05-28 07:21:25 +00:00
|
|
|
end
|
2011-07-14 07:02:07 +00:00
|
|
|
return _accum_0
|
2011-05-28 07:21:25 +00:00
|
|
|
end)()
|
|
|
|
if cool then
|
|
|
|
print("hello")
|
|
|
|
end
|
2012-01-14 05:41:38 +00:00
|
|
|
if not (cool) then
|
|
|
|
print("hello")
|
|
|
|
end
|
|
|
|
if not (1212 and 3434) then
|
|
|
|
print("hello")
|
|
|
|
end
|
2013-01-12 23:09:17 +00:00
|
|
|
for i = 1, 10 do
|
|
|
|
print("hello")
|
|
|
|
end
|
2011-05-28 07:21:25 +00:00
|
|
|
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
|
2011-07-14 07:02:07 +00:00
|
|
|
local arg = {
|
|
|
|
...
|
|
|
|
}
|
|
|
|
x = function(...)
|
|
|
|
return dump({
|
|
|
|
...
|
|
|
|
})
|
|
|
|
end
|
2011-05-28 07:21:25 +00:00
|
|
|
x = not true
|
|
|
|
local y = not (5 + 5)
|
|
|
|
y = #"hello"
|
2011-07-14 07:02:07 +00:00
|
|
|
x = #{
|
|
|
|
#{ },
|
|
|
|
#{
|
|
|
|
1
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
1,
|
|
|
|
2
|
|
|
|
}
|
|
|
|
}
|
2011-06-02 06:27:19 +00:00
|
|
|
_ = hello, world
|
|
|
|
something:hello(what)(a, b)
|
|
|
|
something:hello(what)
|
|
|
|
something.hello:world(a, b)
|
2011-06-13 15:23:09 +00:00
|
|
|
something.hello:world(1, 2, 3)(a, b)
|
|
|
|
x = 1232
|
2012-09-07 23:41:19 +00:00
|
|
|
x = x + (10 + 3)
|
2011-06-13 15:23:09 +00:00
|
|
|
local j = j - "hello"
|
|
|
|
y = y * 2
|
|
|
|
y = y / 100
|
2011-06-13 15:44:17 +00:00
|
|
|
local m = m % 2
|
2011-08-20 17:44:08 +00:00
|
|
|
local hello = hello .. "world"
|
2012-11-02 16:12:05 +00:00
|
|
|
self.__class.something = self.__class.something + 10
|
|
|
|
self.something = self.something + 10
|
2017-10-17 00:13:55 +00:00
|
|
|
local _update_0 = "hello"
|
|
|
|
a[_update_0] = a[_update_0] + 10
|
|
|
|
local _update_1 = "hello" .. tostring(tostring(ff))
|
|
|
|
a[_update_1] = a[_update_1] + 10
|
|
|
|
local _update_2 = four
|
|
|
|
a[_update_2].x = a[_update_2].x + 10
|
2011-06-13 15:44:17 +00:00
|
|
|
x = 0
|
2011-10-10 07:24:16 +00:00
|
|
|
local _list_0 = values
|
|
|
|
for _index_0 = 1, #_list_0 do
|
|
|
|
local v = _list_0[_index_0]
|
|
|
|
_ = ((function()
|
|
|
|
if ntype(v) == "fndef" then
|
|
|
|
x = x + 1
|
|
|
|
end
|
|
|
|
end)())
|
2011-06-19 20:00:27 +00:00
|
|
|
end
|
2011-08-20 17:44:08 +00:00
|
|
|
hello = {
|
2011-06-19 20:00:27 +00:00
|
|
|
something = world,
|
|
|
|
["if"] = "hello",
|
|
|
|
["else"] = 3434,
|
|
|
|
["function"] = "okay",
|
|
|
|
good = 230203
|
2011-06-20 15:28:25 +00:00
|
|
|
}
|
2012-11-11 06:09:36 +00:00
|
|
|
div({
|
|
|
|
class = "cool"
|
|
|
|
})
|
2011-06-20 15:28:25 +00:00
|
|
|
_ = 5 + what(wack)
|
|
|
|
what(whack + 5)
|
|
|
|
_ = 5 - what(wack)
|
|
|
|
what(whack - 5)
|
2020-04-30 21:37:36 +00:00
|
|
|
x = hello - world - something;
|
2011-07-17 00:14:57 +00:00
|
|
|
(function(something)
|
|
|
|
if something == nil then
|
|
|
|
do
|
|
|
|
local _with_0 = what
|
|
|
|
_with_0:cool(100)
|
|
|
|
something = _with_0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return print(something)
|
2011-07-23 02:21:12 +00:00
|
|
|
end)()
|
|
|
|
if something then
|
2011-08-13 02:33:41 +00:00
|
|
|
_ = 03589
|
2011-07-23 02:21:12 +00:00
|
|
|
else
|
|
|
|
_ = 3434
|
|
|
|
end
|
|
|
|
if something then
|
|
|
|
_ = yeah
|
|
|
|
elseif "ymmm" then
|
|
|
|
print("cool")
|
|
|
|
else
|
|
|
|
_ = okay
|
2011-10-01 03:20:36 +00:00
|
|
|
end
|
|
|
|
x = notsomething
|
|
|
|
y = ifsomething
|
|
|
|
local z = x and b
|
2011-12-09 06:44:07 +00:00
|
|
|
z = x(andb)
|
|
|
|
while 10 > something({
|
|
|
|
something = "world"
|
|
|
|
}) do
|
|
|
|
print("yeah")
|
|
|
|
end
|
|
|
|
x = {
|
|
|
|
okay = sure
|
|
|
|
}
|
|
|
|
yeah({
|
|
|
|
okay = man,
|
|
|
|
sure = sir
|
|
|
|
})
|
|
|
|
hello("no comma", {
|
|
|
|
yeah = dada,
|
|
|
|
another = world
|
|
|
|
})
|
|
|
|
hello("comma", {
|
|
|
|
something = hello_world,
|
|
|
|
frick = you
|
|
|
|
})
|
|
|
|
another(hello, one, two, three, four, {
|
|
|
|
yeah = man
|
|
|
|
}, {
|
|
|
|
okay = yeah
|
2012-09-07 23:41:19 +00:00
|
|
|
})
|
|
|
|
a = a + (3 - 5)
|
|
|
|
a = a * (3 + 5)
|
|
|
|
a = a * 3
|
2016-09-25 18:36:07 +00:00
|
|
|
a = a >> 3
|
|
|
|
a = a << 3
|
2012-10-01 22:12:01 +00:00
|
|
|
a = a / func("cool")
|
|
|
|
x["then"] = "hello"
|
2012-11-01 15:00:21 +00:00
|
|
|
x["while"]["true"] = "hello"
|
|
|
|
x = x or "hello"
|
2013-04-16 18:16:47 +00:00
|
|
|
x = x and "hello"
|
|
|
|
z = a - b
|
|
|
|
z = a(-b)
|
|
|
|
z = a - b
|
|
|
|
z = a - b
|