aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/do.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-10 16:30:34 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-10 16:30:34 +0800
commit52a6536103f46c26a3ba9b149b0fe7b40d524d8c (patch)
tree67e4759f8e1ea922079d0e162d84ecba5e558261 /spec/inputs/do.moon
parent975167856ed0b11c2ede03c6eb750ca4e4a6a7fc (diff)
downloadyuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.gz
yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.bz2
yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.zip
update.
Diffstat (limited to 'spec/inputs/do.moon')
-rw-r--r--spec/inputs/do.moon27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/inputs/do.moon b/spec/inputs/do.moon
new file mode 100644
index 0000000..334e68f
--- /dev/null
+++ b/spec/inputs/do.moon
@@ -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