aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/assign.moon
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/assign.moon')
-rw-r--r--spec/inputs/assign.moon30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/inputs/assign.moon b/spec/inputs/assign.moon
new file mode 100644
index 0000000..1e5e7a6
--- /dev/null
+++ b/spec/inputs/assign.moon
@@ -0,0 +1,30 @@
1
2->
3 joop = 2302
4
5 (hi) ->
6 d = 100
7 hi = 1021
8
9 a,b,c,d = 1,2,3,4
10
11 hello[232], (5+5)[121], hello, x[99] = 100, 200, 300
12
13 joop = 12
14
15joop = 2345
16
17a, b = if hello
18 "hello"
19else
20 "nothing", "yeah"
21
22
23a, b = if hello
24 if yeah then "one", "two" else "mmhh"
25else
26 print "the other"
27 "nothing", "yeah"
28
29
30