moonscript/tests/inputs/string.moon

67 lines
749 B
Plaintext
Raw Normal View History

2011-05-22 07:58:17 +00:00
hi = "hello"
hello = "what the heckyes"
print hi
umm = 'umm'
here, another = "yeah", 'world'
aye = "YU'M"
you '"hmmm" I said'
print aye, you
another = [[ hello world ]]
hi_there = [[
hi there
]]
well = [==[ "helo" ]==]
hola = [===[
eat noots]===]
mm = [[well trhere]]
2012-10-01 00:58:46 +00:00
oo = ""
2011-05-22 07:58:17 +00:00
2011-09-12 06:36:01 +00:00
x = "\\"
x = "a\\b"
x = "\\\n"
x = "\""
--
a = "hello #{hello} hello"
b = "#{hello} hello"
c = "hello #{5+1}"
d = "#{hello world}"
e = "#{1} #{2} #{3}"
f = [[hello #{world} world]]
--
a = 'hello #{hello} hello'
b = '#{hello} hello'
c = 'hello #{hello}'
--
"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!