aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/existential.mp
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/existential.mp')
-rw-r--r--spec/inputs/existential.mp51
1 files changed, 51 insertions, 0 deletions
diff --git a/spec/inputs/existential.mp b/spec/inputs/existential.mp
new file mode 100644
index 0000000..3055705
--- /dev/null
+++ b/spec/inputs/existential.mp
@@ -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