aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/ambiguous.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
committerLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
commit60a979e224f26117f5be82bfca757a2483cef0fd (patch)
tree7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/ambiguous.lua
parenta19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff)
downloadyuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip
fix test.
Diffstat (limited to 'spec/outputs/ambiguous.lua')
-rw-r--r--spec/outputs/ambiguous.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/outputs/ambiguous.lua b/spec/outputs/ambiguous.lua
new file mode 100644
index 0000000..6039d73
--- /dev/null
+++ b/spec/outputs/ambiguous.lua
@@ -0,0 +1,30 @@
1local bind = grasp.bind;
2(bind(stmt))({
3 color = "Red"
4})
5local a = 'b'
6local c = d;
7(a(b))(c(d))
8c = d.c;
9(a(b))(c(d));
10(c(d))(a(b))
11local b
12a, b = c, d;
13(d(a))(c)
14for i = 1, 10 do
15 a = function() end
16 (print)(1)
17 a = f;
18 (print)(2)
19 if cond then
20 (print)(3)
21 end
22 ::abc::;
23 (print)(4)
24 goto abc;
25 (print)(5)
26end
27do
28 print(123)
29end
30return nil