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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
export a,b,c = 223, 343, 123
export cool = "dad"
d,e,f = 3, 2, 1
export d, e, f
export class Something
umm: "cool"
export if this
232
else
4343
export What = if this
232
else
4343
export y = ->
hallo = 3434
export with tmp
j = 2000
export cbVal = do
h = 100
(x)<- f
return x h
export yy = ->
h = 100
k = 100
export switch h
when 100, 150 then 200
when 200 then 300
else 0
export Constant = switch value
when "good" then 1
when "better" then 2
when "best" then 3
export item = 123
|> func
export x
f if a then b
f do 123
f switch a
when b then c
f [i for i = 1,10]
f for i = 1,10 do i
f {k,v for k,v in pairs tb}
f for k,v in pairs tb do {k,v}
f while a do true
f with a
.b = 123
f a?.b
f a\b
f class A
_ = "#{if a then b}"
_ = "#{do 123}"
_ = "#{switch a
when b then c}"
_ = "#{[i for i = 1,10]}"
_ = "#{for i = 1,10 do i}"
_ = "#{{k,v for k,v in pairs tb}}"
_ = "#{for k,v in pairs tb do {k,v}}"
_ = "#{while a do true}"
_ = "#{with a
.b = 123}"
_ = "#{a?.b}"
_ = "#{a\b}"
_ = "#{class A}"
local *
v1 = 1
export v2 = 2
export v3 = class v4
v5 = 5
export.<"abc"> = 1
export.<name> = "export"
export.<call> = => {}
export["a-b-c-x"] = 123
|