summaryrefslogtreecommitdiff
path: root/spec/inputs/existential.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/existential.yue
parent90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff)
downloadyuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz
yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2
yuescript-7066392d1c974065181d95d93274136dcd625d43.zip
stop reusing variables, rename project.
Diffstat (limited to 'spec/inputs/existential.yue')
-rw-r--r--spec/inputs/existential.yue51
1 files changed, 51 insertions, 0 deletions
diff --git a/spec/inputs/existential.yue b/spec/inputs/existential.yue
new file mode 100644
index 0000000..3055705
--- /dev/null
+++ b/spec/inputs/existential.yue
@@ -0,0 +1,51 @@
1
2f1?!
3
4f2? "arg0",123
5
6x = tab?.value
7
8print abc?["hello world"]?.xyz
9
10if print and x?
11 print x
12
13@?\func 998
14
15with abc?!\func?!
16 if \p? "abc"
17 return 123
18
19if {:x} = a?.if?\then?(123)? @?\function 998
20 print x
21
22res = b.function\do!\while?("OK")\if("def",998)\f?
23print res
24
25solipsism = true if mind? and not world?
26
27speed = 0
28speed or= 15
29
30footprints = yeti or "bear"
31
32major = 'Computer Science'
33
34unless major?
35 signUpForClass 'Introduction to Wines'
36
37if window?
38 environment = 'browser (probably)'
39
40zip = lottery.drawWinner?!.address?.zipcode
41
42len = utf8?.len or string?.len or (o) -> #o
43
44a = tb1?\end? 123 + tb2?\then 456
45
46b = tb1?\end? or tb2?\then
47
48with? io.open "test.txt", "w"
49 \write "hello"
50 \close!
51