2011-05-22 07:58:17 +00:00
|
|
|
local hi = "hello"
|
|
|
|
local hello = "what the heckyes"
|
|
|
|
print(hi)
|
|
|
|
local umm = 'umm'
|
|
|
|
local here, another = "yeah", 'world'
|
|
|
|
local aye = "YU'M"
|
|
|
|
you('"hmmm" I said')
|
|
|
|
print(aye, you)
|
|
|
|
another = [[ hello world ]]
|
|
|
|
local hi_there = [[ hi there
|
|
|
|
]]
|
|
|
|
local well = [==[ "helo" ]==]
|
|
|
|
local hola = [===[ eat noots]===]
|
2011-09-12 06:36:01 +00:00
|
|
|
local mm = [[well trhere]]
|
2012-10-01 00:58:46 +00:00
|
|
|
local oo = ""
|
2011-09-12 06:36:01 +00:00
|
|
|
local x = "\\"
|
|
|
|
x = "a\\b"
|
|
|
|
x = "\\\n"
|
2012-09-28 01:13:03 +00:00
|
|
|
x = "\""
|
|
|
|
local a = "hello " .. tostring(hello) .. " hello"
|
|
|
|
local b = tostring(hello) .. " hello"
|
2012-09-30 15:57:11 +00:00
|
|
|
local c = "hello " .. tostring(5 + 1)
|
|
|
|
local d = tostring(hello(world))
|
|
|
|
local e = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3)
|
|
|
|
local f = [[hello #{world} world]]
|
2012-09-28 01:13:03 +00:00
|
|
|
a = 'hello #{hello} hello'
|
|
|
|
b = '#{hello} hello'
|
2012-10-01 00:43:50 +00:00
|
|
|
c = 'hello #{hello}'
|
|
|
|
local _ = "hello"
|
|
|
|
("hello"):format(1);
|
|
|
|
("hello"):format(1, 2, 3);
|
|
|
|
("hello"):format(1, 2, 3)(1, 2, 3);
|
|
|
|
("hello"):world();
|
|
|
|
("hello"):format().hello(1, 2, 3);
|
|
|
|
("hello"):format(1, 2, 3)
|
|
|
|
something("hello"):world()
|
|
|
|
something(("hello"):world())
|