aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/string.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
committerLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
commit7066392d1c974065181d95d93274136dcd625d43 (patch)
treecf51eafc2c52cbc12246a306bca172d799193d30 /spec/inputs/string.yue
parent90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff)
downloadyuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz
yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2
yuescript-7066392d1c974065181d95d93274136dcd625d43.zip
stop reusing variables, rename project.
Diffstat (limited to 'spec/inputs/string.yue')
-rw-r--r--spec/inputs/string.yue66
1 files changed, 66 insertions, 0 deletions
diff --git a/spec/inputs/string.yue b/spec/inputs/string.yue
new file mode 100644
index 0000000..5d8f772
--- /dev/null
+++ b/spec/inputs/string.yue
@@ -0,0 +1,66 @@
1
2hi = "hello"
3hello = "what the heckyes"
4print hi
5
6umm = 'umm'
7
8here, another = "yeah", 'world'
9
10aye = "YU'M"
11you '"hmmm" I said'
12
13print aye, you
14
15another = [[ hello world ]]
16
17
18hi_there = [[
19 hi there
20]]
21
22well = [==[ "helo" ]==]
23
24hola = [===[
25 eat noots]===]
26
27mm = [[well trhere]]
28
29oo = ""
30
31x = "\\"
32x = "a\\b"
33x = "\\\n"
34x = "\""
35
36--
37
38a = "hello #{hello} hello"
39b = "#{hello} hello"
40c = "hello #{5+1}"
41d = "#{hello world}"
42e = "#{1} #{2} #{3}"
43
44f = [[hello #{world} world]]
45
46--
47
48a = 'hello #{hello} hello'
49b = '#{hello} hello'
50c = 'hello #{hello}'
51
52
53--
54
55_ = "hello"
56"hello"\format 1
57"hello"\format(1,2,3)
58"hello"\format(1,2,3) 1,2,3
59
60"hello"\world!
61"hello"\format!.hello 1,2,3
62"hello"\format 1,2,3
63
64something"hello"\world!
65something "hello"\world!
66