aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/global.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/global.yue
parent90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff)
downloadyuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz
yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2
yuescript-7066392d1c974065181d95d93274136dcd625d43.zip
stop reusing variables, rename project.
Diffstat (limited to 'spec/inputs/global.yue')
-rw-r--r--spec/inputs/global.yue77
1 files changed, 77 insertions, 0 deletions
diff --git a/spec/inputs/global.yue b/spec/inputs/global.yue
new file mode 100644
index 0000000..7d6cfde
--- /dev/null
+++ b/spec/inputs/global.yue
@@ -0,0 +1,77 @@
1
2do
3 global a,b,c = 223, 343
4 global cool = "dad"
5
6do
7 global class Something
8 umm: "cool"
9
10do
11 global a,b,c
12 a,b,c,d = "hello"
13
14
15do
16 What = if this
17 232
18 else
19 4343
20
21 global ^
22
23 another = 3434
24 Another = 7890
25
26 if inner then Yeah = "10000"
27
28 What = if this
29 232
30 else
31 4343
32
33
34do
35 global *
36
37 What = if this
38 232
39 else
40 4343
41
42 x,y,z = 1,2,3
43
44 y = ->
45 hallo = 3434
46
47 with tmp
48 j = 2000
49
50
51do
52 global *
53 x = 3434
54 if y then
55 x = 10
56
57do
58 global *
59 if y then
60 x = 10
61 x = 3434
62
63do
64 do
65 global *
66
67 k = 1212
68
69 do
70 h = 100
71
72 y = ->
73 h = 100
74 k = 100
75
76 h = 100
77