diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
| commit | 97bbe98289fb74c7cf2d9793b80a1a27b4146045 (patch) | |
| tree | 4bee0dded55bad28f6822b6e2dd3ea5251c66ae2 /spec/inputs/ambiguous.moon | |
| parent | 5b656d2913e4f9f0017698ec835ce4ddda1dc81f (diff) | |
| download | yuescript-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.moon | 26 |
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 @@ | |||
| 1 | import bind from grasp | ||
| 2 | (bind stmt) color: "Red" | ||
| 3 | |||
| 4 | a = 'b' | ||
| 5 | c = d | ||
| 6 | (a b) c d | ||
| 7 | import c from d | ||
| 8 | (a b) c d | ||
| 9 | (c d) a b | ||
| 10 | a, b = c, d | ||
| 11 | (d a) c | ||
| 12 | |||
| 13 | macro block f = (func,arg)-> "(#{func}) #{arg}" | ||
| 14 | for 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 | ||
| 25 | nil | ||
| 26 | |||
