moonscript/tests/outputs/string.lua
2012-09-30 08:57:11 -07:00

27 lines
701 B
Lua

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]===]
local mm = [[well trhere]]
local x = "\\"
x = "a\\b"
x = "\\\n"
x = "\""
local a = "hello " .. tostring(hello) .. " hello"
local b = tostring(hello) .. " hello"
local c = "hello " .. tostring(5 + 1)
local d = tostring(hello(world))
local e = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3)
local f = [[hello #{world} world]]
a = 'hello #{hello} hello'
b = '#{hello} hello'
c = 'hello #{hello}'