aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-07-07 16:22:17 +0800
committerLi Jin <dragon-fly@qq.com>2022-07-07 16:22:17 +0800
commit1eb9ed57de854aa996614b7016bac04a68105389 (patch)
tree27b46d4a5482ac0ab542d18548c0691aa8115d93 /spec/outputs
parentb26b0c3e7061cd629500994e26fa162ac2668373 (diff)
downloadyuescript-1eb9ed57de854aa996614b7016bac04a68105389.tar.gz
yuescript-1eb9ed57de854aa996614b7016bac04a68105389.tar.bz2
yuescript-1eb9ed57de854aa996614b7016bac04a68105389.zip
add spec.
Diffstat (limited to 'spec/outputs')
-rw-r--r--spec/outputs/macro.lua21
1 files changed, 20 insertions, 1 deletions
diff --git a/spec/outputs/macro.lua b/spec/outputs/macro.lua
index b3085bb..5917f43 100644
--- a/spec/outputs/macro.lua
+++ b/spec/outputs/macro.lua
@@ -6,6 +6,25 @@ end
6if (f1() and f2() and f3()) then 6if (f1() and f2() and f3()) then
7 print("OK") 7 print("OK")
8end 8end
9local item
10do
11 local _src_, _dst_
12 do
13 _dst_ = {
14 pos = { },
15 flags = flags:tonumber()
16 }
17 do
18 _src_ = self
19 _dst_.id = _src_.id
20 _dst_.connections = _src_.connections
21 _dst_.pos.x = _src_.pos.x
22 _dst_.pos.y = _src_.pos.y
23 _dst_.pos.z = _src_.pos.z
24 end
25 item = _dst_
26 end
27end
9if (x == "Apple" or x == "Pig" or x == "Dog") then 28if (x == "Apple" or x == "Pig" or x == "Dog") then
10 print("exist") 29 print("exist")
11end 30end
@@ -258,7 +277,7 @@ print((setmetatable({
258 return 998 277 return 998
259 end 278 end
260})) 279}))
261print("current line: " .. tostring(261)); 280print("current line: " .. tostring(271));
262-- TODO 281-- TODO
263do 282do
264 print(1) 283 print(1)