aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/existential.yue
blob: ec388970ca281fd89538974479718c9bdc6d8d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

f1?!

f2? "arg0",123

x = tab?.value

print abc?["hello world"]?.xyz

if print and x?
	print x

@?\func 998

with abc?!\func?!
	if \p? "abc"
		return 123

if {:x} := a?.if?\then?(123)? @?\function 998
	print x

res = b.function\do!\while?("OK")\if("def",998)\f?
print res

solipsism = true if mind? and not world?

speed = 0
speed or= 15

footprints = yeti or "bear"

major = 'Computer Science'

unless major?
	signUpForClass 'Introduction to Wines'

if window?
	environment = 'browser (probably)'

zip = lottery.drawWinner?!.address?.zipcode

len = utf8?.len or string?.len or (o) -> #o

a = tb1?\end? 123 + tb2?\then 456

b = tb1?\end? or tb2?\then

with? io.open "test.txt", "w"
	\write "hello"
	\close!

tb?.<call>? 123

with? tb.<>?.<index>
	.a = 1

nil