aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/backcall.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
committerLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
commite61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch)
tree6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/outputs/unicode/backcall.lua
parent289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff)
downloadyuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.tar.gz
yuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.tar.bz2
yuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.zip
add unicode identifier support, fix more issue from #144
Diffstat (limited to 'spec/outputs/unicode/backcall.lua')
-rw-r--r--spec/outputs/unicode/backcall.lua151
1 files changed, 151 insertions, 0 deletions
diff --git a/spec/outputs/unicode/backcall.lua b/spec/outputs/unicode/backcall.lua
new file mode 100644
index 0000000..91dfdff
--- /dev/null
+++ b/spec/outputs/unicode/backcall.lua
@@ -0,0 +1,151 @@
1do
2 _u6620_u5c04({
3 1,
4 2,
5 3
6 }, function(_u9879_u76ee)
7 return _u9879_u76ee * 2
8 end)
9end
10do
11 _u6620_u5c04(function(_u9879_u76ee)
12 return _u9879_u76ee * 2
13 end, {
14 1,
15 2,
16 3
17 })
18end
19do
20 _u8fc7_u6ee4(function(_u9879_u76ee)
21 return _u9879_u76ee > 2
22 end, (function()
23 return _u6620_u5c04(function(_u9879_u76ee)
24 return _u9879_u76ee * 2
25 end, {
26 1,
27 2,
28 3,
29 4
30 })
31 end)())
32end
33do
34 do
35 local _obj_0 = _u7f51_u7edc
36 if _obj_0 ~= nil then
37 _obj_0["获取"]("测试地址", function(_u6570_u636e)
38 local _call_0 = _u7f51_u9875_u4f53[".结果"]
39 _call_0["网页"](_call_0, _u6570_u636e)
40 return _u7f51_u7edc["请求"]("测试地址", _u6570_u636e, function(_u662f_u5426_u5904_u7406_u6210_u529f)
41 local _call_1 = _u7f51_u9875_u4f53[".结果"]
42 _call_1["添加"](_call_1, _u662f_u5426_u5904_u7406_u6210_u679c)
43 return _u8bbe_u7f6e_u8d85_u65f6_u56de_u8c03(1000, function()
44 return _u6253_u5370("完成")
45 end)
46 end)
47 end)
48 end
49 end
50end
51do
52 _u540c_u6b65_u72b6_u6001(function()
53 return _u5f02_u6b65_u52a0_u8f7d("文件.yue", function(_u9519_u8bef_u4fe1_u606f, _u6570_u636e)
54 if _u6570_u636e == nil then
55 _u6570_u636e = "nil"
56 end
57 if _u9519_u8bef_u4fe1_u606f then
58 _u6253_u5370(_u9519_u8bef_u4fe1_u606f)
59 return
60 end
61 return _u5f02_u6b65_u7f16_u8bd1(_u6570_u636e, function(_u4ee3_u7801)
62 local _u7ed3_u679c_u51fd_u6570 = _u52a0_u8f7d_u5b57_u7b26_u4e32(_u4ee3_u7801)
63 return _u7ed3_u679c_u51fd_u6570()
64 end)
65 end)
66 end)
67end
68do
69 _u51fd_u65701(function()
70 return _u51fd_u65702(function()
71 do
72 _u51fd_u65703(function()
73 return _u51fd_u65704(function() end)
74 end)
75 end
76 return _u51fd_u65705(function()
77 return _u51fd_u65706(function()
78 return _u51fd_u65707()
79 end)
80 end)
81 end)
82 end)
83end
84do
85 local _u7ed3_u679c, _u6d88_u606f
86 do
87 do
88 local _obj_0 = _u5f02_u6b65_u63a5_u6536("文件名.txt", function(_u6570_u636e)
89 _u6253_u5370(_u6570_u636e)
90 return _u5f02_u6b65_u5904_u7406(_u6570_u636e, function(_u4fe1_u606f)
91 return _u68c0_u67e5(_u4fe1_u606f)
92 end)
93 end)
94 _u7ed3_u679c, _u6d88_u606f = _obj_0["结果"], _obj_0["消息"]
95 end
96 end
97 _u6253_u5370(_u7ed3_u679c, _u6d88_u606f)
98 local _u603b_u5927_u5c0f = _u5408_u5e76(((function()
99 local _accum_0 = { }
100 local _len_0 = 1
101 local _list_0 = _u6587_u4ef6_u6570_u7ec4
102 for _index_0 = 1, #_list_0 do
103 local _u6587_u4ef6 = _list_0[_index_0]
104 _accum_0[_len_0] = _u5f02_u6b65_u52a0_u8f7d(_u6587_u4ef6, function(_u6570_u636e)
105 return _u52a0_u5165_u7f13_u5b58(_u6587_u4ef6, _u6570_u636e)
106 end)
107 _len_0 = _len_0 + 1
108 end
109 return _accum_0
110 end)()), 0, function(_u5bf9_u8c61a, _u5bf9_u8c61b)
111 return _u5bf9_u8c61a + _u5bf9_u8c61b
112 end)
113end
114local _u5c5e_u6027A
115do
116 _u5c5e_u6027A = _u5c5e_u6027_u5b9a_u4e49(function(self)
117 return self["_值"]
118 end, function(self, _u503c)
119 _u6253_u5370("之前值: " .. tostring(self["_值"]))
120 _u6253_u5370("最新值: " .. tostring(_u503c))
121 self["_值"] = _u503c
122 end)
123end
124local _u5c5e_u6027B
125do
126 _u5c5e_u6027B = _u5c5e_u6027_u5b9a_u4e49(function(self)
127 return self["_值"]
128 end, function(self, _u503c)
129 _u6253_u5370("之前值: " .. tostring(self["_值"]))
130 _u6253_u5370("最新值: " .. tostring(_u503c))
131 self["_值"] = _u503c
132 end)
133end
134_u8b66_u544a("嗨")
135local _u53d8_u91cfx, _u53d8_u91cfy, _u53d8_u91cfz
136do
137 _u53d8_u91cfx = (_u53d8_u91cfa) < -_u53d8_u91cfb
138end
139do
140 _u53d8_u91cfx, _u53d8_u91cfy, _u53d8_u91cfz = _u53d8_u91cfb(function(_u53d8_u91cfa) end)
141end
142do
143 _u53d8_u91cfx, _u53d8_u91cfy, _u53d8_u91cfz = _u53d8_u91cfb(function(_u53d8_u91cfa) end)
144end
145do
146 _u53d8_u91cfx = _u53d8_u91cfa <= _u53d8_u91cfb
147end
148do
149 _u53d8_u91cfx, _u53d8_u91cfy, _u53d8_u91cfz = _u53d8_u91cfb(function(self, _u53d8_u91cfa) end)
150end
151return nil