aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/do.mp
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/do.mp')
-rw-r--r--spec/inputs/do.mp27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/inputs/do.mp b/spec/inputs/do.mp
new file mode 100644
index 0000000..2fbcbb9
--- /dev/null
+++ b/spec/inputs/do.mp
@@ -0,0 +1,27 @@
1
2do
3 print "hello"
4 print "world"
5
6x = do
7 print "hello"
8 print "world"
9
10y = do
11 things = "shhh"
12 -> "hello: " .. things
13
14_ = -> if something then do "yeah"
15
16t = {
17 y: do
18 number = 100
19 (x) -> x + number
20}
21
22(y=(do
23 x = 10 + 2
24 x), k=do
25 "nothing") -> do
26 "uhhh"
27