aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/ambiguous.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-10-08 13:01:18 +0800
committerLi Jin <dragon-fly@qq.com>2020-10-08 13:01:18 +0800
commit97bbe98289fb74c7cf2d9793b80a1a27b4146045 (patch)
tree4bee0dded55bad28f6822b6e2dd3ea5251c66ae2 /spec/inputs/ambiguous.moon
parent5b656d2913e4f9f0017698ec835ce4ddda1dc81f (diff)
downloadyuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.gz
yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.bz2
yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.zip
change file extension moonp.
Diffstat (limited to 'spec/inputs/ambiguous.moon')
-rw-r--r--spec/inputs/ambiguous.moon26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/inputs/ambiguous.moon b/spec/inputs/ambiguous.moon
deleted file mode 100644
index a5980db..0000000
--- a/spec/inputs/ambiguous.moon
+++ /dev/null
@@ -1,26 +0,0 @@
1import bind from grasp
2(bind stmt) color: "Red"
3
4a = 'b'
5c = d
6(a b) c d
7import c from d
8(a b) c d
9(c d) a b
10a, b = c, d
11(d a) c
12
13macro block f = (func,arg)-> "(#{func}) #{arg}"
14for i = 1, 10
15 a = ->
16 $f print, 1
17 a = f
18 $f print, 2
19 if cond
20 $f print, 3
21 ::abc::
22 (print) 4
23 goto abc
24 (print) 5
25nil
26