From 4a3cc26c6dfd74e61c8b6480038d6a292ea86e47 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 21 Mar 2024 09:14:34 +0800 Subject: remove redundant 'do' blocks in code generation. --- spec/outputs/unicode/ambiguous.lua | 40 ++-- spec/outputs/unicode/assign.lua | 86 +++----- spec/outputs/unicode/attrib.lua | 18 +- spec/outputs/unicode/backcall.lua | 24 +- spec/outputs/unicode/bubbling.lua | 16 +- spec/outputs/unicode/class.lua | 44 ++-- spec/outputs/unicode/cond.lua | 68 +++--- spec/outputs/unicode/destructure.lua | 136 ++++++------ spec/outputs/unicode/global.lua | 42 ++-- spec/outputs/unicode/import.lua | 18 +- spec/outputs/unicode/in_expression.lua | 6 +- spec/outputs/unicode/local.lua | 80 ++++--- spec/outputs/unicode/loops.lua | 20 +- spec/outputs/unicode/macro.lua | 262 +++++++++++----------- spec/outputs/unicode/metatable.lua | 22 +- spec/outputs/unicode/multiline_chain.lua | 16 +- spec/outputs/unicode/nil_coalescing.lua | 96 ++++---- spec/outputs/unicode/stub.lua | 10 +- spec/outputs/unicode/switch.lua | 366 +++++++++++++++---------------- spec/outputs/unicode/syntax.lua | 14 +- spec/outputs/unicode/tables.lua | 8 +- spec/outputs/unicode/vararg.lua | 88 ++++---- spec/outputs/unicode/with.lua | 182 +++++++-------- 23 files changed, 766 insertions(+), 896 deletions(-) (limited to 'spec/outputs/unicode') diff --git a/spec/outputs/unicode/ambiguous.lua b/spec/outputs/unicode/ambiguous.lua index 3783026..ac90016 100644 --- a/spec/outputs/unicode/ambiguous.lua +++ b/spec/outputs/unicode/ambiguous.lua @@ -13,11 +13,17 @@ _u53d8_u91cfa, _u53d8_u91cfb = _u53d8_u91cfc, _u53d8_u91cfd; (_u53d8_u91cfd(_u53d8_u91cfa))(_u53d8_u91cfc) for _u8ba1_u6570 = 1, 10 do _u53d8_u91cfa = function() end - (_u6253_u5370)(1) - _u53d8_u91cfa = _u53d8_u91cff; - (_u6253_u5370)(2) + do + (_u6253_u5370)(1) + end + _u53d8_u91cfa = _u53d8_u91cff + do + (_u6253_u5370)(2) + end if _u6761_u4ef6 then - (_u6253_u5370)(3) + do + (_u6253_u5370)(3) + end end ::_u8df3_u8f6c_u4f4d_u7f6e::; (_u6253_u5370)(4) @@ -40,7 +46,9 @@ do end) end do - _u6253_u5370(123) + do + _u6253_u5370(123) + end end do _u51fd_u6570f({ @@ -97,18 +105,16 @@ do _u6570_u5b57_u6570_u7ec4 = _accum_0 end local _u5bf9_u8c61_u6570_u7ec4 - do - local _accum_0 = { } - local _len_0 = 1 - local _list_0 = _u7269_u4ef6_u6570_u7ec4 - for _index_0 = 1, #_list_0 do - local _u7269_u4ef6 = _list_0[_index_0] - _accum_0[_len_0] = { - ["名称"] = _u7269_u4ef6 - } - _len_0 = _len_0 + 1 - end - _u5bf9_u8c61_u6570_u7ec4 = _accum_0 + local _accum_0 = { } + local _len_0 = 1 + local _list_0 = _u7269_u4ef6_u6570_u7ec4 + for _index_0 = 1, #_list_0 do + local _u7269_u4ef6 = _list_0[_index_0] + _accum_0[_len_0] = { + ["名称"] = _u7269_u4ef6 + } + _len_0 = _len_0 + 1 end + _u5bf9_u8c61_u6570_u7ec4 = _accum_0 end return nil diff --git a/spec/outputs/unicode/assign.lua b/spec/outputs/unicode/assign.lua index 290b248..16ece1a 100644 --- a/spec/outputs/unicode/assign.lua +++ b/spec/outputs/unicode/assign.lua @@ -52,18 +52,16 @@ return __u65e0_u6548_u53d8_u91cf(function() setmetatable(a_u53d8_u91cf, _anon_func_0(_u6253_u5370)) do local _u5143_u7d20a, _u5143_u7d20b - do - local _exp_0 = _u5bf9_u8c61c - if "a" == _exp_0 then - do - local _obj_0 = _u5b57_u5178 - _u5143_u7d20a, _u5143_u7d20b = _obj_0[1], _obj_0[2] - end - elseif "b" == _exp_0 then - do - local _obj_0 = _u51fd_u6570() - _u5143_u7d20a, _u5143_u7d20b = _obj_0[1], _obj_0[2] - end + local _exp_0 = _u5bf9_u8c61c + if "a" == _exp_0 then + do + local _obj_0 = _u5b57_u5178 + _u5143_u7d20a, _u5143_u7d20b = _obj_0[1], _obj_0[2] + end + elseif "b" == _exp_0 then + do + local _obj_0 = _u51fd_u6570() + _u5143_u7d20a, _u5143_u7d20b = _obj_0[1], _obj_0[2] end end end @@ -78,15 +76,11 @@ return __u65e0_u6548_u53d8_u91cf(function() do local _u53d8_u91cfa if x_u6761_u4ef6 then - do - local _exp_0 = _u5bf9_u8c61y - if 1 == _exp_0 then - do - local _obj_0, _obj_1 = _u51fd_u6570() - _u53d8_u91cfb[#_u53d8_u91cfb + 1] = _obj_1 - _u53d8_u91cfa = _obj_0 - end - end + local _exp_0 = _u5bf9_u8c61y + if 1 == _exp_0 then + local _obj_0, _obj_1 = _u51fd_u6570() + _u53d8_u91cfb[#_u53d8_u91cfb + 1] = _obj_1 + _u53d8_u91cfa = _obj_0 end end end @@ -94,11 +88,9 @@ return __u65e0_u6548_u53d8_u91cf(function() local _u53d8_u91cfa local _u5143_u7d20b if x_u6761_u4ef6 then - do - local _obj_0, _obj_1 = _u51fd_u6570() - _u53d8_u91cfa = _obj_0 - _u5143_u7d20b = _obj_1[1] - end + local _obj_0, _obj_1 = _u51fd_u6570() + _u53d8_u91cfa = _obj_0 + _u5143_u7d20b = _obj_1[1] else _u53d8_u91cfa = 123 _u5143_u7d20b = _u8868[1] @@ -107,42 +99,28 @@ return __u65e0_u6548_u53d8_u91cf(function() do local _u53d8_u91cfa, _u5bf9_u8c61c if _u6761_u4ef6x then - do - local _exp_0 = _u5bf9_u8c61y - if 1 == _exp_0 then - do - local _obj_0, _obj_1, _obj_2, _obj_3 = _u51fd_u6570() - do - local _obj_4 = _u6570_u7ec4b - _obj_4[#_obj_4 + 1] = _obj_1 - end - _u53d8_u91cfa, _u5bf9_u8c61c, getmetatable(_u5bf9_u8c61d).__add = _obj_0, _obj_2, _obj_3 - end - end + local _exp_0 = _u5bf9_u8c61y + if 1 == _exp_0 then + local _obj_0, _obj_1, _obj_2, _obj_3 = _u51fd_u6570() + local _obj_4 = _u6570_u7ec4b + _obj_4[#_obj_4 + 1] = _obj_1 + _u53d8_u91cfa, _u5bf9_u8c61c, getmetatable(_u5bf9_u8c61d).__add = _obj_0, _obj_2, _obj_3 end elseif _u6761_u4ef6x2 then if _u6761_u4ef6y2 then - do - local _obj_0, _obj_1, _obj_2, _obj_3 = _u51fd_u65701() - do - local _obj_4 = _u6570_u7ec4b - _obj_4[#_obj_4 + 1] = _obj_1 - end - _u53d8_u91cfa, _u5bf9_u8c61c, getmetatable(_u5bf9_u8c61d).__add = _obj_0, _obj_2, _obj_3 - end + local _obj_0, _obj_1, _obj_2, _obj_3 = _u51fd_u65701() + local _obj_4 = _u6570_u7ec4b + _obj_4[#_obj_4 + 1] = _obj_1 + _u53d8_u91cfa, _u5bf9_u8c61c, getmetatable(_u5bf9_u8c61d).__add = _obj_0, _obj_2, _obj_3 end else _u6253_u5370("hello") do _u6253_u5370(123) - do - local _obj_0, _obj_1, _obj_2 = _u51fd_u65702() - do - local _obj_3 = _u6570_u7ec4b - _obj_3[#_obj_3 + 1] = _obj_0 - end - _u53d8_u91cfa, _u5bf9_u8c61c, getmetatable(_u5bf9_u8c61d).__add = 1, _obj_1, _obj_2 - end + local _obj_0, _obj_1, _obj_2 = _u51fd_u65702() + local _obj_3 = _u6570_u7ec4b + _obj_3[#_obj_3 + 1] = _obj_0 + _u53d8_u91cfa, _u5bf9_u8c61c, getmetatable(_u5bf9_u8c61d).__add = 1, _obj_1, _obj_2 end end end diff --git a/spec/outputs/unicode/attrib.lua b/spec/outputs/unicode/attrib.lua index 0f60451..58ad4b2 100644 --- a/spec/outputs/unicode/attrib.lua +++ b/spec/outputs/unicode/attrib.lua @@ -14,20 +14,16 @@ end do local _u5e38_u91cfa = _u51fd_u6570() local _u5143_u7d20b, _u5143_u7d20c, _u5143_u7d20d - do - local _obj_0, _obj_1 = _u51fd_u65701() - _u5143_u7d20b, _u5143_u7d20c = _obj_0[1], _obj_0[2] - _u5143_u7d20d = _obj_1[1] - end + local _obj_0, _obj_1 = _u51fd_u65701() + _u5143_u7d20b, _u5143_u7d20c = _obj_0[1], _obj_0[2] + _u5143_u7d20d = _obj_1[1] end do local _u5e38_u91cfa, _u5143_u7d20b, _u5143_u7d20c, _u5143_u7d20d - do - local _obj_0, _obj_1, _obj_2 = _u51fd_u6570() - _u5e38_u91cfa = _obj_0 - _u5143_u7d20b, _u5143_u7d20c = _obj_1[1], _obj_1[2] - _u5143_u7d20d = _obj_2[1] - end + local _obj_0, _obj_1, _obj_2 = _u51fd_u6570() + _u5e38_u91cfa = _obj_0 + _u5143_u7d20b, _u5143_u7d20c = _obj_1[1], _obj_1[2] + _u5143_u7d20d = _obj_2[1] end do local _u5173_u95ed_u53d8_u91cfv = (function() diff --git a/spec/outputs/unicode/backcall.lua b/spec/outputs/unicode/backcall.lua index 91dfdff..f4bd5a3 100644 --- a/spec/outputs/unicode/backcall.lua +++ b/spec/outputs/unicode/backcall.lua @@ -31,21 +31,19 @@ do end)()) end do - do - local _obj_0 = _u7f51_u7edc - if _obj_0 ~= nil then - _obj_0["获取"]("测试地址", function(_u6570_u636e) - local _call_0 = _u7f51_u9875_u4f53[".结果"] - _call_0["网页"](_call_0, _u6570_u636e) - return _u7f51_u7edc["请求"]("测试地址", _u6570_u636e, function(_u662f_u5426_u5904_u7406_u6210_u529f) - local _call_1 = _u7f51_u9875_u4f53[".结果"] - _call_1["添加"](_call_1, _u662f_u5426_u5904_u7406_u6210_u679c) - return _u8bbe_u7f6e_u8d85_u65f6_u56de_u8c03(1000, function() - return _u6253_u5370("完成") - end) + local _obj_0 = _u7f51_u7edc + if _obj_0 ~= nil then + _obj_0["获取"]("测试地址", function(_u6570_u636e) + local _call_0 = _u7f51_u9875_u4f53[".结果"] + _call_0["网页"](_call_0, _u6570_u636e) + return _u7f51_u7edc["请求"]("测试地址", _u6570_u636e, function(_u662f_u5426_u5904_u7406_u6210_u529f) + local _call_1 = _u7f51_u9875_u4f53[".结果"] + _call_1["添加"](_call_1, _u662f_u5426_u5904_u7406_u6210_u679c) + return _u8bbe_u7f6e_u8d85_u65f6_u56de_u8c03(1000, function() + return _u6253_u5370("完成") end) end) - end + end) end end do diff --git a/spec/outputs/unicode/bubbling.lua b/spec/outputs/unicode/bubbling.lua index cb8750d..55666ba 100644 --- a/spec/outputs/unicode/bubbling.lua +++ b/spec/outputs/unicode/bubbling.lua @@ -109,15 +109,13 @@ __u65e0_u6548_u53d8_u91cf = function(...) _u6570_u7ec4a = _accum_0 end local _u6570_u7ec4b - do - local _accum_0 = { } - local _len_0 = 1 - for _u8ba1_u6570 = 1, 10 do - _accum_0[_len_0] = function(...) - return _u6253_u5370(...) - end - _len_0 = _len_0 + 1 + local _accum_0 = { } + local _len_0 = 1 + for _u8ba1_u6570 = 1, 10 do + _accum_0[_len_0] = function(...) + return _u6253_u5370(...) end - _u6570_u7ec4b = _accum_0 + _len_0 = _len_0 + 1 end + _u6570_u7ec4b = _accum_0 end diff --git a/spec/outputs/unicode/class.lua b/spec/outputs/unicode/class.lua index 4d309e3..23fc8f4 100644 --- a/spec/outputs/unicode/class.lua +++ b/spec/outputs/unicode/class.lua @@ -497,30 +497,28 @@ _u6253_u5370("你好") local _u53d8_u91cfyyy _u53d8_u91cfyyy = function() local _u9177 - do - local _class_0 - local _base_0 = { } - if _base_0.__index == nil then - _base_0.__index = _base_0 - end - _class_0 = setmetatable({ - __init = function() end, - __base = _base_0, - __name = "酷" - }, { - __index = _base_0, - __call = function(cls, ...) - local _self_0 = setmetatable({ }, _base_0) - cls.__init(_self_0, ...) - return _self_0 - end - }) - _base_0.__class = _class_0 - local self = _class_0; - _ = nil - _u9177 = _class_0 - return _class_0 + local _class_0 + local _base_0 = { } + if _base_0.__index == nil then + _base_0.__index = _base_0 end + _class_0 = setmetatable({ + __init = function() end, + __base = _base_0, + __name = "酷" + }, { + __index = _base_0, + __call = function(cls, ...) + local _self_0 = setmetatable({ }, _base_0) + cls.__init(_self_0, ...) + return _self_0 + end + }) + _base_0.__class = _class_0 + local self = _class_0; + _ = nil + _u9177 = _class_0 + return _class_0 end do local _class_0 diff --git a/spec/outputs/unicode/cond.lua b/spec/outputs/unicode/cond.lua index ed5d274..2b5af8a 100644 --- a/spec/outputs/unicode/cond.lua +++ b/spec/outputs/unicode/cond.lua @@ -113,19 +113,15 @@ local z_u53d8_u91cf = false if false then __u65e0_u6548_u53d8_u91cf = _u4e00 else - do - local _u6761_u4ef6x = true - if _u6761_u4ef6x then - __u65e0_u6548_u53d8_u91cf = _u4e8c + local _u6761_u4ef6x = true + if _u6761_u4ef6x then + __u65e0_u6548_u53d8_u91cf = _u4e8c + else + local _u6761_u4ef6z = true + if _u6761_u4ef6z then + __u65e0_u6548_u53d8_u91cf = _u4e09 else - do - local _u6761_u4ef6z = true - if _u6761_u4ef6z then - __u65e0_u6548_u53d8_u91cf = _u4e09 - else - __u65e0_u6548_u53d8_u91cf = _u56db - end - end + __u65e0_u6548_u53d8_u91cf = _u56db end end end @@ -133,35 +129,27 @@ local _u8f93_u51fa if false then _u8f93_u51fa = _u4e00 else - do - local _u6761_u4ef6x = true - if _u6761_u4ef6x then - _u8f93_u51fa = _u4e8c + local _u6761_u4ef6x = true + if _u6761_u4ef6x then + _u8f93_u51fa = _u4e8c + else + local _u6761_u4ef6z = true + if _u6761_u4ef6z then + _u8f93_u51fa = _u4e09 else - do - local _u6761_u4ef6z = true - if _u6761_u4ef6z then - _u8f93_u51fa = _u4e09 - else - _u8f93_u51fa = _u56db - end - end + _u8f93_u51fa = _u56db end end end local _u53d8_u91cf _u53d8_u91cf = function() - do - local _u67d0_u4e1c_u897f = true - if _u67d0_u4e1c_u897f then - return 1 - else - do - local _u53e6_u4e00_u4e2a = false - if _u53e6_u4e00_u4e2a then - return 2 - end - end + local _u67d0_u4e1c_u897f = true + if _u67d0_u4e1c_u897f then + return 1 + else + local _u53e6_u4e00_u4e2a = false + if _u53e6_u4e00_u4e2a then + return 2 end end end @@ -319,12 +307,10 @@ do end end do - do - local __u6a21_u5757 = { } - if __u6a21_u5757 then - local _u4e1c_u897f = __u6a21_u5757["东西"] - local a_u529f_u80fd, b_u529f_u80fd = __u6a21_u5757["a功能"], __u6a21_u5757["b功能"] - end + local __u6a21_u5757 = { } + if __u6a21_u5757 then + local _u4e1c_u897f = __u6a21_u5757["东西"] + local a_u529f_u80fd, b_u529f_u80fd = __u6a21_u5757["a功能"], __u6a21_u5757["b功能"] end end do diff --git a/spec/outputs/unicode/destructure.lua b/spec/outputs/unicode/destructure.lua index 002c4b0..7263d49 100644 --- a/spec/outputs/unicode/destructure.lua +++ b/spec/outputs/unicode/destructure.lua @@ -127,11 +127,9 @@ do end end do - do - local _with_0 = _u4e1c_u897f - local _u5143_u7d20a, _u5143_u7d20b = _with_0[1], _with_0[2] - _u6253_u5370(_u5143_u7d20a, _u5143_u7d20b) - end + local _with_0 = _u4e1c_u897f + local _u5143_u7d20a, _u5143_u7d20b = _with_0[1], _with_0[2] + _u6253_u5370(_u5143_u7d20a, _u5143_u7d20b) end do local _u4e1c_u897f = nil @@ -320,11 +318,9 @@ do _tmp_0 = _obj_0["函数"] end if _tmp_0 == nil then - do - local _obj_0 = _u9879_u76ee - if _obj_0 ~= nil then - _tmp_0 = _obj_0["默认值"] - end + local _obj_0 = _u9879_u76ee + if _obj_0 ~= nil then + _tmp_0 = _obj_0["默认值"] end end a_u5bf9_u8c61["b字段"](function() @@ -436,11 +432,9 @@ do end local _u53d8_u91cfy1, _u53d8_u91cfy4 local _u5b57_u6bb5y2, _u5b57_u6bb5y3 - do - local _obj_0, _obj_1 = _u51fd_u65702() - _u53d8_u91cfy1, _u53d8_u91cfy4 = _u51fd_u65701(), _obj_1 - _u5b57_u6bb5y2, _u5b57_u6bb5y3 = _obj_0["字段y2"], _obj_0["字段y3"] - end + local _obj_0, _obj_1 = _u51fd_u65702() + _u53d8_u91cfy1, _u53d8_u91cfy4 = _u51fd_u65701(), _obj_1 + _u5b57_u6bb5y2, _u5b57_u6bb5y3 = _obj_0["字段y2"], _obj_0["字段y3"] end do local _u53d8_u91cfv1, _u53d8_u91cfv2, _u53d8_u91cfv3, _u53d8_u91cfv4 @@ -470,11 +464,9 @@ do end do local _u503c, _u5143_u503c - do - local _obj_0 = _u5bf9_u8c61tb - _u503c = _obj_0[_u540d_u79f0] - _u5143_u503c = getmetatable(_obj_0)[_u540d_u79f0] - end + local _obj_0 = _u5bf9_u8c61tb + _u503c = _obj_0[_u540d_u79f0] + _u5143_u503c = getmetatable(_obj_0)[_u540d_u79f0] end do local tostring, add @@ -487,24 +479,22 @@ do end) end end - do - local _exp_0 = _u5bf9_u8c61tb - local _type_0 = type(_exp_0) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - if _tab_0 then - local name, _u5143_u5b57_u6bb5 - do - local _obj_0 = getmetatable(_exp_0) - name = _obj_0.__name - _u5143_u5b57_u6bb5 = _obj_0["123"] - if name == nil then - name = "项目" - end - end - if _u5143_u5b57_u6bb5 ~= nil then - _u6253_u5370(name, _u5143_u5b57_u6bb5) + local _exp_0 = _u5bf9_u8c61tb + local _type_0 = type(_exp_0) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + if _tab_0 then + local name, _u5143_u5b57_u6bb5 + do + local _obj_0 = getmetatable(_exp_0) + name = _obj_0.__name + _u5143_u5b57_u6bb5 = _obj_0["123"] + if name == nil then + name = "项目" end end + if _u5143_u5b57_u6bb5 ~= nil then + _u6253_u5370(name, _u5143_u5b57_u6bb5) + end end end do @@ -586,52 +576,50 @@ do _u6253_u5370(add, _u5b57_u6bb5) end end - do - local _exp_0 = tb - local _type_0 = type(_exp_0) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - if _tab_0 then - do - local _obj_0 = _exp_0["字段c"] - local _type_1 = type(_obj_0) - if "table" == _type_1 or "userdata" == _type_1 then - do - local _obj_1 = getmetatable(_obj_0) - local _type_2 = type(_obj_1) - if "table" == _type_2 or "userdata" == _type_2 then - _u5143_u5b57_u6bb5 = _obj_1["字段abc"] - end + local _exp_0 = tb + local _type_0 = type(_exp_0) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + if _tab_0 then + do + local _obj_0 = _exp_0["字段c"] + local _type_1 = type(_obj_0) + if "table" == _type_1 or "userdata" == _type_1 then + do + local _obj_1 = getmetatable(_obj_0) + local _type_2 = type(_obj_1) + if "table" == _type_2 or "userdata" == _type_2 then + _u5143_u5b57_u6bb5 = _obj_1["字段abc"] end end end - if _u5143_u5b57_u6bb5 == nil then - _u5143_u5b57_u6bb5 = "默认值" - end + end + if _u5143_u5b57_u6bb5 == nil then + _u5143_u5b57_u6bb5 = "默认值" + end + do + local _obj_0 = getmetatable(_exp_0) do - local _obj_0 = getmetatable(_exp_0) - do - local _obj_1 = _obj_0[ [[any string]]] - local _type_1 = type(_obj_1) - if "table" == _type_1 or "userdata" == _type_1 then - _u53d8_u91cfabc = _obj_1["字段d"] - end - end - do - local _obj_1 = _obj_0['字符串'] - local _type_1 = type(_obj_1) - if "table" == _type_1 or "userdata" == _type_1 then - _u6709_u9ed8_u8ba4_u503c = _obj_1["字段e"] - end - end - if _u53d8_u91cfabc == nil then - _u53d8_u91cfabc = 123 + local _obj_1 = _obj_0[ [[any string]]] + local _type_1 = type(_obj_1) + if "table" == _type_1 or "userdata" == _type_1 then + _u53d8_u91cfabc = _obj_1["字段d"] end - if _u6709_u9ed8_u8ba4_u503c == nil then - _u6709_u9ed8_u8ba4_u503c = { } + end + do + local _obj_1 = _obj_0['字符串'] + local _type_1 = type(_obj_1) + if "table" == _type_1 or "userdata" == _type_1 then + _u6709_u9ed8_u8ba4_u503c = _obj_1["字段e"] end end - _u6253_u5370(_u5143_u5b57_u6bb5, _u53d8_u91cfabc, _u6709_u9ed8_u8ba4_u503c) + if _u53d8_u91cfabc == nil then + _u53d8_u91cfabc = 123 + end + if _u6709_u9ed8_u8ba4_u503c == nil then + _u6709_u9ed8_u8ba4_u503c = { } + end end + _u6253_u5370(_u5143_u5b57_u6bb5, _u53d8_u91cfabc, _u6709_u9ed8_u8ba4_u503c) end end return nil diff --git a/spec/outputs/unicode/global.lua b/spec/outputs/unicode/global.lua index c91db52..a34ce6d 100644 --- a/spec/outputs/unicode/global.lua +++ b/spec/outputs/unicode/global.lua @@ -3,29 +3,27 @@ do _u9177 = "📉" end do - do - local _class_0 - local _base_0 = { - ["嗯"] = "🆒" - } - if _base_0.__index == nil then - _base_0.__index = _base_0 - end - _class_0 = setmetatable({ - __init = function() end, - __base = _base_0, - __name = "全局类" - }, { - __index = _base_0, - __call = function(cls, ...) - local _self_0 = setmetatable({ }, _base_0) - cls.__init(_self_0, ...) - return _self_0 - end - }) - _base_0.__class = _class_0 - _u5168_u5c40_u7c7b = _class_0 + local _class_0 + local _base_0 = { + ["嗯"] = "🆒" + } + if _base_0.__index == nil then + _base_0.__index = _base_0 end + _class_0 = setmetatable({ + __init = function() end, + __base = _base_0, + __name = "全局类" + }, { + __index = _base_0, + __call = function(cls, ...) + local _self_0 = setmetatable({ }, _base_0) + cls.__init(_self_0, ...) + return _self_0 + end + }) + _base_0.__class = _class_0 + _u5168_u5c40_u7c7b = _class_0 end do local _u53d8_u91cfc, _u53d8_u91cfd diff --git a/spec/outputs/unicode/import.lua b/spec/outputs/unicode/import.lua index 3499295..e4aec89 100644 --- a/spec/outputs/unicode/import.lua +++ b/spec/outputs/unicode/import.lua @@ -30,16 +30,14 @@ do end if _u7f29_u8fdb then local _u597d_u5427, _u5f88_u597d - do - local _obj_1 = _u5f88_u591a_u8868[100] - _u597d_u5427, _u5f88_u597d = _obj_1["好吧"], (function() - local _base_0 = _obj_1 - local _fn_0 = _base_0["很好"] - return _fn_0 and function(...) - return _fn_0(_base_0, ...) - end - end)() - end + local _obj_1 = _u5f88_u591a_u8868[100] + _u597d_u5427, _u5f88_u597d = _obj_1["好吧"], (function() + local _base_0 = _obj_1 + local _fn_0 = _base_0["很好"] + return _fn_0 and function(...) + return _fn_0(_base_0, ...) + end + end)() end do local _u5b57_u6bb5a, _u5b57_u6bb5b, _u5b57_u6bb5c = _u5bf9_u8c61z["字段a"], _u5bf9_u8c61z["字段b"], _u5bf9_u8c61z["字段c"] diff --git a/spec/outputs/unicode/in_expression.lua b/spec/outputs/unicode/in_expression.lua index 2f47b1f..4b8f711 100644 --- a/spec/outputs/unicode/in_expression.lua +++ b/spec/outputs/unicode/in_expression.lua @@ -173,10 +173,8 @@ do _u51fd_u65704 = function() local _u53d8_u91cfa = 2 local _u53d8_u91cfb - do - local _val_0 = a - _u53d8_u91cfb = 1 == _val_0 or 2 == _val_0 or 3 == _val_0 or 4 == _val_0 - end + local _val_0 = a + _u53d8_u91cfb = 1 == _val_0 or 2 == _val_0 or 3 == _val_0 or 4 == _val_0 end local _u51fd_u65705 _u51fd_u65705 = function() diff --git a/spec/outputs/unicode/local.lua b/spec/outputs/unicode/local.lua index 170144b..4b4b366 100644 --- a/spec/outputs/unicode/local.lua +++ b/spec/outputs/unicode/local.lua @@ -98,50 +98,46 @@ do F_u4e94 = 6 O_u4e00 = _class_0 end - do - local _class_0 - local N_u65e0 - local _base_0 = { } - if _base_0.__index == nil then - _base_0.__index = _base_0 - end - _class_0 = setmetatable({ - __init = function() end, - __base = _base_0, - __name = "T二" - }, { - __index = _base_0, - __call = function(cls, ...) - local _self_0 = setmetatable({ }, _base_0) - cls.__init(_self_0, ...) - return _self_0 - end - }) - _base_0.__class = _class_0 - local self = _class_0; - do - local _class_1 - local _base_1 = { } - if _base_1.__index == nil then - _base_1.__index = _base_1 - end - _class_1 = setmetatable({ - __init = function() end, - __base = _base_1, - __name = "N无" - }, { - __index = _base_1, - __call = function(cls, ...) - local _self_0 = setmetatable({ }, _base_1) - cls.__init(_self_0, ...) - return _self_0 - end - }) - _base_1.__class = _class_1 - N_u65e0 = _class_1 + local _class_0 + local N_u65e0 + local _base_0 = { } + if _base_0.__index == nil then + _base_0.__index = _base_0 + end + _class_0 = setmetatable({ + __init = function() end, + __base = _base_0, + __name = "T二" + }, { + __index = _base_0, + __call = function(cls, ...) + local _self_0 = setmetatable({ }, _base_0) + cls.__init(_self_0, ...) + return _self_0 end - T_u4e8c = _class_0 + }) + _base_0.__class = _class_0 + local self = _class_0; + local _class_1 + local _base_1 = { } + if _base_1.__index == nil then + _base_1.__index = _base_1 end + _class_1 = setmetatable({ + __init = function() end, + __base = _base_1, + __name = "N无" + }, { + __index = _base_1, + __call = function(cls, ...) + local _self_0 = setmetatable({ }, _base_1) + cls.__init(_self_0, ...) + return _self_0 + end + }) + _base_1.__class = _class_1 + N_u65e0 = _class_1 + T_u4e8c = _class_0 end do local _list_0 = { } diff --git a/spec/outputs/unicode/loops.lua b/spec/outputs/unicode/loops.lua index d630343..8379993 100644 --- a/spec/outputs/unicode/loops.lua +++ b/spec/outputs/unicode/loops.lua @@ -297,17 +297,15 @@ end do for _u53d8_u91cfi = 1, 10 do repeat - do - local _with_0 = _u5bf9_u8c61tb - if _with_0 ~= nil then - _with_0["字段a"] = 1 - if _with_0["字段b"] then - goto _continue_12 - end - do - if _with_0["字段c"] then - break - end + local _with_0 = _u5bf9_u8c61tb + if _with_0 ~= nil then + _with_0["字段a"] = 1 + if _with_0["字段b"] then + goto _continue_12 + end + do + if _with_0["字段c"] then + break end end end diff --git a/spec/outputs/unicode/macro.lua b/spec/outputs/unicode/macro.lua index 88f6de7..069f429 100644 --- a/spec/outputs/unicode/macro.lua +++ b/spec/outputs/unicode/macro.lua @@ -1,4 +1,6 @@ -assert(_u5bf9_u8c61 == nil) +do + assert(_u5bf9_u8c61 == nil) +end local _u7ed3_u679c = (_u5bf9_u8c61 == nil) if _u51fd_u65701() then _u6253_u5370("没问题") @@ -9,89 +11,89 @@ end local _u5bf9_u8c61 do local __u6e90_, __u76ee_u6807_ - do - __u76ee_u6807_ = { - ["位置"] = { }, - ["标签"] = (function() - local _call_0 = _u6807_u7b7e - return _call_0["转数字"](_call_0) - end)() - } - do - __u6e90_ = self - __u76ee_u6807_["标识"] = __u6e90_["标识"] - __u76ee_u6807_["连接们"] = __u6e90_["连接们"] - __u76ee_u6807_["位置"]["x坐标"] = __u6e90_["位置"]["x坐标"] - __u76ee_u6807_["位置"]["y坐标"] = __u6e90_["位置"]["y坐标"] - __u76ee_u6807_["位置"]["z坐标"] = __u6e90_["位置"]["z坐标"] - end - _u5bf9_u8c61 = __u76ee_u6807_ - end + __u76ee_u6807_ = { + ["位置"] = { }, + ["标签"] = (function() + local _call_0 = _u6807_u7b7e + return _call_0["转数字"](_call_0) + end)() + } + __u6e90_ = self + __u76ee_u6807_["标识"] = __u6e90_["标识"] + __u76ee_u6807_["连接们"] = __u6e90_["连接们"] + __u76ee_u6807_["位置"]["x坐标"] = __u6e90_["位置"]["x坐标"] + __u76ee_u6807_["位置"]["y坐标"] = __u6e90_["位置"]["y坐标"] + __u76ee_u6807_["位置"]["z坐标"] = __u6e90_["位置"]["z坐标"] + _u5bf9_u8c61 = __u76ee_u6807_ end if (_u53d8_u91cfx == "🍎" or _u53d8_u91cfx == "🐷" or _u53d8_u91cfx == "🐶") then _u6253_u5370("存在") end -local _list_0 = (function() - local _accum_0 = { } - local _len_0 = 1 +do local _list_0 = (function() - local _accum_1 = { } - local _len_1 = 1 - local _list_0 = { - 1, - 2, - 3 - } + local _accum_0 = { } + local _len_0 = 1 + local _list_0 = (function() + local _accum_1 = { } + local _len_1 = 1 + local _list_0 = { + 1, + 2, + 3 + } + for _index_0 = 1, #_list_0 do + local _ = _list_0[_index_0] + _accum_1[_len_1] = _ * 2 + _len_1 = _len_1 + 1 + end + return _accum_1 + end)() for _index_0 = 1, #_list_0 do local _ = _list_0[_index_0] - _accum_1[_len_1] = _ * 2 - _len_1 = _len_1 + 1 + if _ > 4 then + _accum_0[_len_0] = _ + _len_0 = _len_0 + 1 + end end - return _accum_1 + return _accum_0 end)() for _index_0 = 1, #_list_0 do local _ = _list_0[_index_0] - if _ > 4 then - _accum_0[_len_0] = _ - _len_0 = _len_0 + 1 - end + _u6253_u5370(_) end - return _accum_0 -end)() -for _index_0 = 1, #_list_0 do - local _ = _list_0[_index_0] - _u6253_u5370(_) end -local _list_1 = (function() - local _accum_0 = { } - local _len_0 = 1 - local _list_1 = (function() - local _accum_1 = { } - local _len_1 = 1 - local _list_1 = { - 1, - 2, - 3 - } - for _index_0 = 1, #_list_1 do - local _ = _list_1[_index_0] - _accum_1[_len_1] = _ * 2 - _len_1 = _len_1 + 1 +do + local _list_0 = (function() + local _accum_0 = { } + local _len_0 = 1 + local _list_0 = (function() + local _accum_1 = { } + local _len_1 = 1 + local _list_0 = { + 1, + 2, + 3 + } + for _index_0 = 1, #_list_0 do + local _ = _list_0[_index_0] + _accum_1[_len_1] = _ * 2 + _len_1 = _len_1 + 1 + end + return _accum_1 + end)() + for _index_0 = 1, #_list_0 do + local _ = _list_0[_index_0] + if _ > 4 then + _accum_0[_len_0] = _ + _len_0 = _len_0 + 1 + end end - return _accum_1 + return _accum_0 end)() - for _index_0 = 1, #_list_1 do - local _ = _list_1[_index_0] - if _ > 4 then - _accum_0[_len_0] = _ - _len_0 = _len_0 + 1 - end + for _index_0 = 1, #_list_0 do + local _ = _list_0[_index_0] + _u6253_u5370(_) end - return _accum_0 -end)() -for _index_0 = 1, #_list_1 do - local _ = _list_1[_index_0] - _u6253_u5370(_) end local _u503c do @@ -99,13 +101,13 @@ do do local _accum_0 = { } local _len_0 = 1 - local _list_2 = { + local _list_0 = { 1, 2, 3 } - for _index_0 = 1, #_list_2 do - local _ = _list_2[_index_0] + for _index_0 = 1, #_list_0 do + local _ = _list_0[_index_0] _accum_0[_len_0] = _ * 2 _len_0 = _len_0 + 1 end @@ -137,8 +139,10 @@ do end _u503c = _4 end -local _call_0 = (1 + 2) -_call_0["调用"](_call_0, 123) +do + local _call_0 = (1 + 2) + _call_0["调用"](_call_0, 123) +end _u7ed3_u679c = (1 + 2) local f f = function(_u53c2_u6570x) @@ -203,7 +207,7 @@ local function dummy() end -- 这有个注释 local _ = require('下划线') -local _call_1 = (_({ +local _call_0 = (_({ 1, 2, 3, @@ -211,61 +215,65 @@ local _call_1 = (_({ -2, 3 })) -_call_1 = _call_1["链"](_call_1) -_call_1 = _call_1["映射"](_call_1, function(self) +_call_0 = _call_0["链"](_call_0) +_call_0 = _call_0["映射"](_call_0, function(self) return self * 2 end) -_call_1 = _call_1["过滤"](_call_1, function(self) +_call_0 = _call_0["过滤"](_call_0, function(self) return self > 3 end) -local _u7ed3_u679ca = _call_1["取值"](_call_1) -local _call_2 = (_({ - 1, - 2, - 3, - 4, - -2, - 3 -})) -_call_2 = _call_2["链"](_call_2) -_call_2 = _call_2["映射"](_call_2, function(self) - return self * 2 -end) -_call_2 = _call_2["过滤"](_call_2, function(self) - return self > 3 -end) -_call_2["每一个"](_call_2, function(self) - return _u6253_u5370(self) -end) -local _call_3 = _u539f_u70b9["变换"]["根节点"]["游戏对象"] -_call_3 = _call_3["父节点"](_call_3) -_call_3 = _call_3["后代"](_call_3) -_call_3 = _call_3["选择启用"](_call_3) -_call_3 = _call_3["选择可见"](_call_3) -_call_3 = _call_3["标签等于"](_call_3, "fx") -_call_3 = _call_3["其中"](_call_3, function(x) - local _call_4 = x["名称"] - return _call_4["结尾为"](_call_4, "(克隆)") -end) -_u7ed3_u679c = _call_3["摧毁"](_call_3) +local _u7ed3_u679ca = _call_0["取值"](_call_0) do - local _1 - local _call_4 = _u539f_u70b9["变换"]["根节点"]["游戏对象"] - _1 = _call_4["父节点"](_call_4) - local _2 - _2 = _1["后代"](_1) - local _3 - _3 = _2["选择启用"](_2) - local _4 - _4 = _3["选择可见"](_3) - local _5 - _5 = _4["标签等于"](_4, "fx") - local _6 - _6 = _5["其中"](_5, function(x) - local _call_5 = x["名称"] - return _call_5["结尾为"](_call_5, "(克隆)") + local _call_1 = (_({ + 1, + 2, + 3, + 4, + -2, + 3 + })) + _call_1 = _call_1["链"](_call_1) + _call_1 = _call_1["映射"](_call_1, function(self) + return self * 2 + end) + _call_1 = _call_1["过滤"](_call_1, function(self) + return self > 3 + end) + _call_1["每一个"](_call_1, function(self) + return _u6253_u5370(self) end) - _6["摧毁"](_6) +end +local _call_1 = _u539f_u70b9["变换"]["根节点"]["游戏对象"] +_call_1 = _call_1["父节点"](_call_1) +_call_1 = _call_1["后代"](_call_1) +_call_1 = _call_1["选择启用"](_call_1) +_call_1 = _call_1["选择可见"](_call_1) +_call_1 = _call_1["标签等于"](_call_1, "fx") +_call_1 = _call_1["其中"](_call_1, function(x) + local _call_2 = x["名称"] + return _call_2["结尾为"](_call_2, "(克隆)") +end) +_u7ed3_u679c = _call_1["摧毁"](_call_1) +do + do + local _1 + local _call_2 = _u539f_u70b9["变换"]["根节点"]["游戏对象"] + _1 = _call_2["父节点"](_call_2) + local _2 + _2 = _1["后代"](_1) + local _3 + _3 = _2["选择启用"](_2) + local _4 + _4 = _3["选择可见"](_3) + local _5 + _5 = _4["标签等于"](_4, "fx") + local _6 + _6 = _5["其中"](_5, function(x) + local _call_3 = x["名称"] + return _call_3["结尾为"](_call_3, "(克隆)") + end) + _6["摧毁"](_6) + end end local _call_0 = _u539f_u70b9["变换"]["根节点"]["游戏对象"] _call_0["父节点"](_call_0):_u540e_u4ee3():_u9009_u62e9_u542f_u7528():_u9009_u62e9_u53ef_u89c1():_u6807_u7b7e_u7b49_u4e8e("fx"):_u5176_u4e2d(function(x) @@ -302,7 +310,9 @@ _u6253_u5370((setmetatable({ end })) _u6253_u5370("当前代码行数: " .. tostring(268)) +do -- 待实现 +end do _u6253_u5370(1) end @@ -317,5 +327,7 @@ _1 = function() end return _accum_0 end -_u6253_u5370('abc') -return 123 +do + _u6253_u5370('abc') + return 123 +end diff --git a/spec/outputs/unicode/metatable.lua b/spec/outputs/unicode/metatable.lua index b6ee48a..c7c8730 100644 --- a/spec/outputs/unicode/metatable.lua +++ b/spec/outputs/unicode/metatable.lua @@ -48,19 +48,17 @@ do end do local _u53d8_u91cfx, _u65b0, _u53d8_u91cf, close, _u5173_u95edA, num, add, sub + local _obj_0, _obj_1 + _u53d8_u91cfx, _obj_0, _obj_1 = 123, _u53d8_u91cfa["变量b"]["变量c"], _u51fd_u6570() + _u65b0, _u53d8_u91cf = _obj_0["新"], _obj_0["变量"] do - local _obj_0, _obj_1 - _u53d8_u91cfx, _obj_0, _obj_1 = 123, _u53d8_u91cfa["变量b"]["变量c"], _u51fd_u6570() - _u65b0, _u53d8_u91cf = _obj_0["新"], _obj_0["变量"] - do - local _obj_2 = getmetatable(_obj_0) - close, _u5173_u95edA = _obj_2.__close, _obj_2.__close - end - num = _obj_1.num - do - local _obj_2 = getmetatable(_obj_1) - add, sub = _obj_2.__add, _obj_2.__sub - end + local _obj_2 = getmetatable(_obj_0) + close, _u5173_u95edA = _obj_2.__close, _obj_2.__close + end + num = _obj_1.num + do + local _obj_2 = getmetatable(_obj_1) + add, sub = _obj_2.__add, _obj_2.__sub end end setmetatable(_u53d8_u91cfa["变量b"], { }) diff --git a/spec/outputs/unicode/multiline_chain.lua b/spec/outputs/unicode/multiline_chain.lua index f45e71f..c1da13f 100644 --- a/spec/outputs/unicode/multiline_chain.lua +++ b/spec/outputs/unicode/multiline_chain.lua @@ -127,16 +127,14 @@ do _with_0["项目方法C"](_with_0, _u53d8_u91cfi) end if not _with_0["变量b"] then - do - local _accum_0 = { } - local _len_0 = 1 - while _with_0["项目字段D"] do - local _call_17 = _with_0["下一个项目"](_with_0) - _accum_0[_len_0] = _call_17["取得"](_call_17) - _len_0 = _len_0 + 1 - end - _with_0["变量c"] = _accum_0 + local _accum_0 = { } + local _len_0 = 1 + while _with_0["项目字段D"] do + local _call_17 = _with_0["下一个项目"](_with_0) + _accum_0[_len_0] = _call_17["取得"](_call_17) + _len_0 = _len_0 + 1 end + _with_0["变量c"] = _accum_0 end end return nil diff --git a/spec/outputs/unicode/nil_coalescing.lua b/spec/outputs/unicode/nil_coalescing.lua index 90fd097..53e3711 100644 --- a/spec/outputs/unicode/nil_coalescing.lua +++ b/spec/outputs/unicode/nil_coalescing.lua @@ -1,23 +1,19 @@ do local _u53d8_u91cfa - do - local _exp_0 = _u53d8_u91cfb - if _exp_0 ~= nil then - _u53d8_u91cfa = _exp_0 - else - _u53d8_u91cfa = _u53d8_u91cfc - end + local _exp_0 = _u53d8_u91cfb + if _exp_0 ~= nil then + _u53d8_u91cfa = _exp_0 + else + _u53d8_u91cfa = _u53d8_u91cfc end end do local _u5b57_u6bb5a - do - local _exp_0 = _u53d8_u91cfb - if _exp_0 ~= nil then - _u5b57_u6bb5a = _exp_0["字段a"] - else - _u5b57_u6bb5a = _u53d8_u91cfc["字段a"] - end + local _exp_0 = _u53d8_u91cfb + if _exp_0 ~= nil then + _u5b57_u6bb5a = _exp_0["字段a"] + else + _u5b57_u6bb5a = _u53d8_u91cfc["字段a"] end end do @@ -50,23 +46,21 @@ do end do local _u53d8_u91cfa - do - local _exp_0 = _u53d8_u91cfb - if _exp_0 ~= nil then - _u53d8_u91cfa = _exp_0 - else - do - local _exp_1 = _u53d8_u91cfc - if _exp_1 ~= nil then - _u53d8_u91cfa = _exp_1 - else - do - local _exp_2 = _u53d8_u91cfd - if _exp_2 ~= nil then - _u53d8_u91cfa = _exp_2 - else - _u53d8_u91cfa = _u53d8_u91cfe - end + local _exp_0 = _u53d8_u91cfb + if _exp_0 ~= nil then + _u53d8_u91cfa = _exp_0 + else + do + local _exp_1 = _u53d8_u91cfc + if _exp_1 ~= nil then + _u53d8_u91cfa = _exp_1 + else + do + local _exp_2 = _u53d8_u91cfd + if _exp_2 ~= nil then + _u53d8_u91cfa = _exp_2 + else + _u53d8_u91cfa = _u53d8_u91cfe end end end @@ -84,18 +78,14 @@ do end)()) end do - do - local _with_0 - do - local _exp_0 = _u51fd_u6570A() - if _exp_0 ~= nil then - _with_0 = _exp_0 - else - _with_0 = _u51fd_u6570B() - end - end - _u6253_u5370(_with_0["字段"]) + local _with_0 + local _exp_0 = _u51fd_u6570A() + if _exp_0 ~= nil then + _with_0 = _exp_0 + else + _with_0 = _u51fd_u6570B() end + _u6253_u5370(_with_0["字段"]) end do local _u53d8_u91cfa = 1 + 2 + (function() @@ -138,18 +128,16 @@ do end do local _u53d8_u91cfa - do - local _exp_0 = 1 - if _exp_0 ~= nil then - _u53d8_u91cfa = _exp_0 - else - do - local _exp_1 = 2 - if _exp_1 ~= nil then - _u53d8_u91cfa = _exp_1 - else - _u53d8_u91cfa = 3 - end + local _exp_0 = 1 + if _exp_0 ~= nil then + _u53d8_u91cfa = _exp_0 + else + do + local _exp_1 = 2 + if _exp_1 ~= nil then + _u53d8_u91cfa = _exp_1 + else + _u53d8_u91cfa = 3 end end end diff --git a/spec/outputs/unicode/stub.lua b/spec/outputs/unicode/stub.lua index 5f183a1..426967b 100644 --- a/spec/outputs/unicode/stub.lua +++ b/spec/outputs/unicode/stub.lua @@ -15,12 +15,10 @@ end _u6253_u5370(_u51fd_u6570()) _u6253_u5370(_u53d8_u91cfx["值"](_u53d8_u91cfx)); (function(...) - do - local _base_0 = _u4f60_u597d(...) - local _fn_0 = _base_0["世界"] - _u53d8_u91cfx = _fn_0 and function(...) - return _fn_0(_base_0, ...) - end + local _base_0 = _u4f60_u597d(...) + local _fn_0 = _base_0["世界"] + _u53d8_u91cfx = _fn_0 and function(...) + return _fn_0(_base_0, ...) end end)() return nil diff --git a/spec/outputs/unicode/switch.lua b/spec/outputs/unicode/switch.lua index 6b8bbdc..76c078c 100644 --- a/spec/outputs/unicode/switch.lua +++ b/spec/outputs/unicode/switch.lua @@ -45,13 +45,11 @@ do end do local _with_0 = _u4e1c_u897f - do - local _exp_0 = _with_0["值"](_with_0) - if _with_0["确定"] == _exp_0 then - local _u53d8_u91cf_ = "世界" - else - local _u53d8_u91cf_ = "是的" - end + local _exp_0 = _with_0["值"](_with_0) + if _with_0["确定"] == _exp_0 then + local _u53d8_u91cf_ = "世界" + else + local _u53d8_u91cf_ = "是的" end end _u4fee_u590d(_u8fd9_u4e2a) @@ -106,66 +104,64 @@ do } } } - do - local _type_0 = type(_u5b57_u5178) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - if _tab_0 then - local _u7b2c_u4e00 = _u5b57_u5178[1] - local _u4e00_u4e2a - do - local _obj_0 = _u5b57_u5178[2] - local _type_1 = type(_obj_0) - if "table" == _type_1 or "userdata" == _type_1 then - _u4e00_u4e2a = _obj_0[1] - end + local _type_0 = type(_u5b57_u5178) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + if _tab_0 then + local _u7b2c_u4e00 = _u5b57_u5178[1] + local _u4e00_u4e2a + do + local _obj_0 = _u5b57_u5178[2] + local _type_1 = type(_obj_0) + if "table" == _type_1 or "userdata" == _type_1 then + _u4e00_u4e2a = _obj_0[1] end - local _u4e24_u4e2a - do - local _obj_0 = _u5b57_u5178[2] - local _type_1 = type(_obj_0) - if "table" == _type_1 or "userdata" == _type_1 then - _u4e24_u4e2a = _obj_0[2] - end + end + local _u4e24_u4e2a + do + local _obj_0 = _u5b57_u5178[2] + local _type_1 = type(_obj_0) + if "table" == _type_1 or "userdata" == _type_1 then + _u4e24_u4e2a = _obj_0[2] end - local _u4e09_u4e2a - do - local _obj_0 = _u5b57_u5178[2] - local _type_1 = type(_obj_0) - if "table" == _type_1 or "userdata" == _type_1 then - _u4e09_u4e2a = _obj_0[3] - end + end + local _u4e09_u4e2a + do + local _obj_0 = _u5b57_u5178[2] + local _type_1 = type(_obj_0) + if "table" == _type_1 or "userdata" == _type_1 then + _u4e09_u4e2a = _obj_0[3] end - local _u53d8_u91cfc - do - local _obj_0 = _u5b57_u5178["变量a"] - local _type_1 = type(_obj_0) - if "table" == _type_1 or "userdata" == _type_1 then - do - local _obj_1 = _obj_0["变量b"] - local _type_2 = type(_obj_1) - if "table" == _type_2 or "userdata" == _type_2 then - _u53d8_u91cfc = _obj_1["变量c"] - end + end + local _u53d8_u91cfc + do + local _obj_0 = _u5b57_u5178["变量a"] + local _type_1 = type(_obj_0) + if "table" == _type_1 or "userdata" == _type_1 then + do + local _obj_1 = _obj_0["变量b"] + local _type_2 = type(_obj_1) + if "table" == _type_2 or "userdata" == _type_2 then + _u53d8_u91cfc = _obj_1["变量c"] end end end - local _u53d8_u91cfz - do - local _obj_0 = _u5b57_u5178["变量x"] - local _type_1 = type(_obj_0) - if "table" == _type_1 or "userdata" == _type_1 then - do - local _obj_1 = _obj_0["变量y"] - local _type_2 = type(_obj_1) - if "table" == _type_2 or "userdata" == _type_2 then - _u53d8_u91cfz = _obj_1["变量z"] - end + end + local _u53d8_u91cfz + do + local _obj_0 = _u5b57_u5178["变量x"] + local _type_1 = type(_obj_0) + if "table" == _type_1 or "userdata" == _type_1 then + do + local _obj_1 = _obj_0["变量y"] + local _type_2 = type(_obj_1) + if "table" == _type_2 or "userdata" == _type_2 then + _u53d8_u91cfz = _obj_1["变量z"] end end end - if _u7b2c_u4e00 ~= nil and _u4e00_u4e2a ~= nil and _u4e24_u4e2a ~= nil and _u4e09_u4e2a ~= nil and _u53d8_u91cfc ~= nil and _u53d8_u91cfz ~= nil then - _u6253_u5370(_u7b2c_u4e00, _u4e00_u4e2a, _u4e24_u4e2a, _u4e09_u4e2a, _u53d8_u91cfc, _u53d8_u91cfz) - end + end + if _u7b2c_u4e00 ~= nil and _u4e00_u4e2a ~= nil and _u4e24_u4e2a ~= nil and _u4e09_u4e2a ~= nil and _u53d8_u91cfc ~= nil and _u53d8_u91cfz ~= nil then + _u6253_u5370(_u7b2c_u4e00, _u4e00_u4e2a, _u4e24_u4e2a, _u4e09_u4e2a, _u53d8_u91cfc, _u53d8_u91cfz) end end end @@ -183,56 +179,54 @@ do } for _index_0 = 1, #_u7269_u54c1 do local _u7269 = _u7269_u54c1[_index_0] - do - local _type_0 = type(_u7269) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - local _match_0 = false + local _type_0 = type(_u7269) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + local _match_0 = false + if _tab_0 then + local _u53d8_u91cfx = _u7269["变量x"] + local _u53d8_u91cfy = _u7269["变量y"] + if _u53d8_u91cfx ~= nil and _u53d8_u91cfy ~= nil then + _match_0 = true + _u6253_u5370("Vec2 " .. tostring(_u53d8_u91cfx) .. ", " .. tostring(_u53d8_u91cfy)) + end + end + if not _match_0 then + local _match_1 = false if _tab_0 then - local _u53d8_u91cfx = _u7269["变量x"] - local _u53d8_u91cfy = _u7269["变量y"] - if _u53d8_u91cfx ~= nil and _u53d8_u91cfy ~= nil then - _match_0 = true - _u6253_u5370("Vec2 " .. tostring(_u53d8_u91cfx) .. ", " .. tostring(_u53d8_u91cfy)) + local _u5bbd_u5ea6 = _u7269["宽度"] + local _u9ad8_u5ea6 = _u7269["高度"] + if _u5bbd_u5ea6 ~= nil and _u9ad8_u5ea6 ~= nil then + _match_1 = true + _u6253_u5370("Size " .. tostring(_u5bbd_u5ea6) .. ", " .. tostring(_u9ad8_u5ea6)) end end - if not _match_0 then - local _match_1 = false - if _tab_0 then - local _u5bbd_u5ea6 = _u7269["宽度"] - local _u9ad8_u5ea6 = _u7269["高度"] - if _u5bbd_u5ea6 ~= nil and _u9ad8_u5ea6 ~= nil then - _match_1 = true - _u6253_u5370("Size " .. tostring(_u5bbd_u5ea6) .. ", " .. tostring(_u9ad8_u5ea6)) + if not _match_1 then + if false == _u7269 then + _u6253_u5370("没有") + else + local _match_2 = false + if _tab_0 then + local _u7c7b = _u7269["__类"] + if _u7c7b ~= nil then + _match_2 = true + if _u7c7b_u522bA == _u7c7b then + _u6253_u5370("对象 A") + elseif _u7c7b_u522bB == _u7c7b then + _u6253_u5370("对象 B") + end + end end - end - if not _match_1 then - if false == _u7269 then - _u6253_u5370("没有") - else - local _match_2 = false + if not _match_2 then + local _match_3 = false if _tab_0 then - local _u7c7b = _u7269["__类"] - if _u7c7b ~= nil then - _match_2 = true - if _u7c7b_u522bA == _u7c7b then - _u6253_u5370("对象 A") - elseif _u7c7b_u522bB == _u7c7b then - _u6253_u5370("对象 B") - end + local _u8868 = getmetatable(_u7269) + if _u8868 ~= nil then + _match_3 = true + _u6253_u5370("带有元表的表") end end - if not _match_2 then - local _match_3 = false - if _tab_0 then - local _u8868 = getmetatable(_u7269) - if _u8868 ~= nil then - _match_3 = true - _u6253_u5370("带有元表的表") - end - end - if not _match_3 then - _u6253_u5370("物品不被接受!") - end + if not _match_3 then + _u6253_u5370("物品不被接受!") end end end @@ -271,72 +265,66 @@ do end end end - do - local _type_0 = type(_u8868_u683c) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - local _match_0 = false - if _tab_0 then - local _u53d8_u91cfa = _u8868_u683c["变量a"] - local _u53d8_u91cfb = _u8868_u683c["变量b"] - if _u53d8_u91cfa ~= nil and _u53d8_u91cfb ~= nil then - _match_0 = true - _u6253_u5370(_u53d8_u91cfa, _u53d8_u91cfb) - end - end - if not _match_0 then - _u6253_u5370("没有匹配") + local _type_0 = type(_u8868_u683c) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + local _match_0 = false + if _tab_0 then + local _u53d8_u91cfa = _u8868_u683c["变量a"] + local _u53d8_u91cfb = _u8868_u683c["变量b"] + if _u53d8_u91cfa ~= nil and _u53d8_u91cfb ~= nil then + _match_0 = true + _u6253_u5370(_u53d8_u91cfa, _u53d8_u91cfb) end end + if not _match_0 then + _u6253_u5370("没有匹配") + end end do local _u8868_u683c = { ["变量x"] = "abc" } - do - local _type_0 = type(_u8868_u683c) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - local _match_0 = false + local _type_0 = type(_u8868_u683c) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + local _match_0 = false + if _tab_0 then + local _u53d8_u91cfx = _u8868_u683c["变量x"] + local _u53d8_u91cfy = _u8868_u683c["变量y"] + if _u53d8_u91cfx ~= nil and _u53d8_u91cfy ~= nil then + _match_0 = true + _u6253_u5370("变量x: " .. tostring(_u53d8_u91cfx) .. " 和 变量y: " .. tostring(_u53d8_u91cfy)) + end + end + if not _match_0 then if _tab_0 then local _u53d8_u91cfx = _u8868_u683c["变量x"] - local _u53d8_u91cfy = _u8868_u683c["变量y"] - if _u53d8_u91cfx ~= nil and _u53d8_u91cfy ~= nil then - _match_0 = true - _u6253_u5370("变量x: " .. tostring(_u53d8_u91cfx) .. " 和 变量y: " .. tostring(_u53d8_u91cfy)) - end - end - if not _match_0 then - if _tab_0 then - local _u53d8_u91cfx = _u8868_u683c["变量x"] - if _u53d8_u91cfx ~= nil then - _u6253_u5370("只有 变量x: " .. tostring(_u53d8_u91cfx)) - end + if _u53d8_u91cfx ~= nil then + _u6253_u5370("只有 变量x: " .. tostring(_u53d8_u91cfx)) end end end end do local _u5339_u914d - do - local _exp_0 = _u8868_u683c - if 1 == _exp_0 then - _u5339_u914d = "1" - else - local _type_0 = type(_exp_0) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - local _match_0 = false - if _tab_0 then - local _u53d8_u91cfx = _exp_0["变量x"] - if _u53d8_u91cfx ~= nil then - _match_0 = true - _u5339_u914d = _u53d8_u91cfx - end + local _exp_0 = _u8868_u683c + if 1 == _exp_0 then + _u5339_u914d = "1" + else + local _type_0 = type(_exp_0) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + local _match_0 = false + if _tab_0 then + local _u53d8_u91cfx = _exp_0["变量x"] + if _u53d8_u91cfx ~= nil then + _match_0 = true + _u5339_u914d = _u53d8_u91cfx end - if not _match_0 then - if false == _exp_0 then - _u5339_u914d = "false" - else - _u5339_u914d = nil - end + end + if not _match_0 then + if false == _exp_0 then + _u5339_u914d = "false" + else + _u5339_u914d = nil end end end @@ -346,55 +334,51 @@ do if nil == _exp_0 then return "无效" else - do - local _type_0 = type(_exp_0) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - local _match_0 = false - if _tab_0 then - local _u53d8_u91cfa = _exp_0["变量a"] - local _u53d8_u91cfb = _exp_0["变量b"] - if _u53d8_u91cfa ~= nil and _u53d8_u91cfb ~= nil then - _match_0 = true - return tostring(_u53d8_u91cfa + _u53d8_u91cfb) - end + local _type_0 = type(_exp_0) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + local _match_0 = false + if _tab_0 then + local _u53d8_u91cfa = _exp_0["变量a"] + local _u53d8_u91cfb = _exp_0["变量b"] + if _u53d8_u91cfa ~= nil and _u53d8_u91cfb ~= nil then + _match_0 = true + return tostring(_u53d8_u91cfa + _u53d8_u91cfb) end - if not _match_0 then - if 1 == _exp_0 or 2 == _exp_0 or 3 == _exp_0 or 4 == _exp_0 or 5 == _exp_0 then - return "数字 1 - 5" - else - local _match_1 = false - if _tab_0 then - local _u5339_u914d_u4efb_u4f55_u8868_u683c = _exp_0["匹配任何表格"] - if _u5339_u914d_u4efb_u4f55_u8868_u683c == nil then - _u5339_u914d_u4efb_u4f55_u8868_u683c = "后备" - end - _match_1 = true - return _u5339_u914d_u4efb_u4f55_u8868_u683c - end - if not _match_1 then - return "除非它不是一个表格,否则不应到达这里" + end + if not _match_0 then + if 1 == _exp_0 or 2 == _exp_0 or 3 == _exp_0 or 4 == _exp_0 or 5 == _exp_0 then + return "数字 1 - 5" + else + local _match_1 = false + if _tab_0 then + local _u5339_u914d_u4efb_u4f55_u8868_u683c = _exp_0["匹配任何表格"] + if _u5339_u914d_u4efb_u4f55_u8868_u683c == nil then + _u5339_u914d_u4efb_u4f55_u8868_u683c = "后备" end + _match_1 = true + return _u5339_u914d_u4efb_u4f55_u8868_u683c + end + if not _match_1 then + return "除非它不是一个表格,否则不应到达这里" end end end end end do - do - local _exp_0 = _u53d8_u91cfy - local _type_0 = type(_exp_0) - local _tab_0 = "table" == _type_0 or "userdata" == _type_0 - if _tab_0 then - local _u8868 = (function() - local _obj_0 = _exp_0["变量x"] - if _obj_0 ~= nil then - return getmetatable(_obj_0) - end - return nil - end)() - if _u8868 ~= nil then - _u6253_u5370(_u8868) + local _exp_0 = _u53d8_u91cfy + local _type_0 = type(_exp_0) + local _tab_0 = "table" == _type_0 or "userdata" == _type_0 + if _tab_0 then + local _u8868 = (function() + local _obj_0 = _exp_0["变量x"] + if _obj_0 ~= nil then + return getmetatable(_obj_0) end + return nil + end)() + if _u8868 ~= nil then + _u6253_u5370(_u8868) end end end diff --git a/spec/outputs/unicode/syntax.lua b/spec/outputs/unicode/syntax.lua index f086db6..9ea8f68 100644 --- a/spec/outputs/unicode/syntax.lua +++ b/spec/outputs/unicode/syntax.lua @@ -235,15 +235,11 @@ else end do local _with_0 = _u8868 - do - local _obj_2 = _with_0["变量b"]["变量c"] - do - local _with_1 = _u5411_u91cf - _with_1["字段x"] = 1 - _with_1["字段y"] = 2 - _obj_2[#_obj_2 + 1] = _with_1 - end - end + local _obj_2 = _with_0["变量b"]["变量c"] + local _with_1 = _u5411_u91cf + _with_1["字段x"] = 1 + _with_1["字段y"] = 2 + _obj_2[#_obj_2 + 1] = _with_1 end do local _call_8 = _u5bf9_u8c61a["变量b"]["变量c"]["变量d"] diff --git a/spec/outputs/unicode/tables.lua b/spec/outputs/unicode/tables.lua index 28ad6e2..82ca299 100644 --- a/spec/outputs/unicode/tables.lua +++ b/spec/outputs/unicode/tables.lua @@ -392,11 +392,9 @@ do _tab_0[#_tab_0 + 1] = "b" _tab_0[#_tab_0 + 1] = "c" local _obj_1 - do - local _obj_2 = _u51fd_u6570 - if _obj_2 ~= nil then - _obj_1 = _obj_2() - end + local _obj_2 = _u51fd_u6570 + if _obj_2 ~= nil then + _obj_1 = _obj_2() end local _idx_1 = 1 for _key_0, _value_0 in pairs(_obj_1) do diff --git a/spec/outputs/unicode/vararg.lua b/spec/outputs/unicode/vararg.lua index 4acb6cc..b837006 100644 --- a/spec/outputs/unicode/vararg.lua +++ b/spec/outputs/unicode/vararg.lua @@ -46,57 +46,53 @@ local _anon_func_5 = function(_u9879_u76ee, ...) end local _anon_func_6 = function(_u51fd_u6570, setmetatable) local _u53d8_u91cfA - do - local _class_0 - local _base_0 = { } - if _base_0.__index == nil then - _base_0.__index = _base_0 + local _class_0 + local _base_0 = { } + if _base_0.__index == nil then + _base_0.__index = _base_0 + end + _class_0 = setmetatable({ + __init = function() end, + __base = _base_0, + __name = "变量A" + }, { + __index = _base_0, + __call = function(cls, ...) + local _self_0 = setmetatable({ }, _base_0) + cls.__init(_self_0, ...) + return _self_0 end - _class_0 = setmetatable({ - __init = function() end, - __base = _base_0, - __name = "变量A" - }, { - __index = _base_0, - __call = function(cls, ...) - local _self_0 = setmetatable({ }, _base_0) - cls.__init(_self_0, ...) - return _self_0 - end - }) - _base_0.__class = _class_0 - local self = _class_0; - _u51fd_u6570() - _u53d8_u91cfA = _class_0 - return _class_0 - end + }) + _base_0.__class = _class_0 + local self = _class_0; + _u51fd_u6570() + _u53d8_u91cfA = _class_0 + return _class_0 end local _anon_func_7 = function(_u51fd_u6570, setmetatable, ...) local _u53d8_u91cfA - do - local _class_0 - local _base_0 = { } - if _base_0.__index == nil then - _base_0.__index = _base_0 + local _class_0 + local _base_0 = { } + if _base_0.__index == nil then + _base_0.__index = _base_0 + end + _class_0 = setmetatable({ + __init = function() end, + __base = _base_0, + __name = "变量A" + }, { + __index = _base_0, + __call = function(cls, ...) + local _self_0 = setmetatable({ }, _base_0) + cls.__init(_self_0, ...) + return _self_0 end - _class_0 = setmetatable({ - __init = function() end, - __base = _base_0, - __name = "变量A" - }, { - __index = _base_0, - __call = function(cls, ...) - local _self_0 = setmetatable({ }, _base_0) - cls.__init(_self_0, ...) - return _self_0 - end - }) - _base_0.__class = _class_0 - local self = _class_0; - _u51fd_u6570(...) - _u53d8_u91cfA = _class_0 - return _class_0 - end + }) + _base_0.__class = _class_0 + local self = _class_0; + _u51fd_u6570(...) + _u53d8_u91cfA = _class_0 + return _class_0 end local _anon_func_8 = function(_u8868, pairs) local _tbl_0 = { } diff --git a/spec/outputs/unicode/with.lua b/spec/outputs/unicode/with.lua index 0dcd4a7..7a5ba00 100644 --- a/spec/outputs/unicode/with.lua +++ b/spec/outputs/unicode/with.lua @@ -9,24 +9,20 @@ do end end do - do - local _with_0 = _u53f6_u5b50 - _with_0["世界"]() - _with_0["世界"](1, 2, 3) - local _u53d8_u91cfg = _with_0["什么"]["是"]["这"] - _with_0["你好"](1, 2, 3) - _with_0["你好"](_with_0, 1, 2)["世界"](2323) - _with_0["你好"](_with_0, "是的", "伙计") - _with_0["世界"] = 200 - end + local _with_0 = _u53f6_u5b50 + _with_0["世界"]() + _with_0["世界"](1, 2, 3) + local _u53d8_u91cfg = _with_0["什么"]["是"]["这"] + _with_0["你好"](1, 2, 3) + _with_0["你好"](_with_0, 1, 2)["世界"](2323) + _with_0["你好"](_with_0, "是的", "伙计") + _with_0["世界"] = 200 end do local _u6ecb_u6ecb_u6ecb - do - local _with_0 = _u4e1c_u897f - _with_0["设置状态"]("你好 世界") - _u6ecb_u6ecb_u6ecb = _with_0 - end + local _with_0 = _u4e1c_u897f + _with_0["设置状态"]("你好 世界") + _u6ecb_u6ecb_u6ecb = _with_0 end do local _u53d8_u91cfx = 5 + (function() @@ -45,14 +41,12 @@ do } end do - do - local _with_0 = _u4e1c_u897f - local _ = _with_0["属性"](_with_0, "某物")["你好"] - local _call_0 = _with_0["属性"] - _call_0["发送"](_call_0, _u4e00_u4e2a) - local _call_1 = _with_0["属性"] - _call_1["发送"](_call_1, _u4e00_u4e2a) - end + local _with_0 = _u4e1c_u897f + local _ = _with_0["属性"](_with_0, "某物")["你好"] + local _call_0 = _with_0["属性"] + _call_0["发送"](_call_0, _u4e00_u4e2a) + local _call_1 = _with_0["属性"] + _call_1["发送"](_call_1, _u4e00_u4e2a) end do do @@ -81,69 +75,49 @@ do return _u53d8_u91cfa end)()) local p - do - local _with_0 = 1 - _u4f60_u597d()["字段x"], _u4e16_u754c()["字段y"] = _with_0, 2 - _u6253_u5370(_u53d8_u91cfa + _u53d8_u91cfb) - p = _with_0 - end + local _with_0 = 1 + _u4f60_u597d()["字段x"], _u4e16_u754c()["字段y"] = _with_0, 2 + _u6253_u5370(_u53d8_u91cfa + _u53d8_u91cfb) + p = _with_0 end do local _u53d8_u91cfx = "你好" _u53d8_u91cfx["大写"](_u53d8_u91cfx) end do - do - local _u53d8_u91cfk = "乔" - _u6253_u5370(_u53d8_u91cfk["大写"](_u53d8_u91cfk)) - end + local _u53d8_u91cfk = "乔" + _u6253_u5370(_u53d8_u91cfk["大写"](_u53d8_u91cfk)) end do - do - local _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc = "", "", "" - _u6253_u5370(_u53d8_u91cfa["大写"](_u53d8_u91cfa)) - end + local _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc = "", "", "" + _u6253_u5370(_u53d8_u91cfa["大写"](_u53d8_u91cfa)) end do local _u53d8_u91cfa = "床铺" - do - local _u53d8_u91cfb, _u53d8_u91cfc - _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc = "", "", "" - _u6253_u5370(_u53d8_u91cfa["大写"](_u53d8_u91cfa)) - end + local _u53d8_u91cfb, _u53d8_u91cfc + _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc = "", "", "" + _u6253_u5370(_u53d8_u91cfa["大写"](_u53d8_u91cfa)) end do - do - local _with_0 = _u53d8_u91cfj - _u6253_u5370(_with_0["大写"](_with_0)) - end + local _with_0 = _u53d8_u91cfj + _u6253_u5370(_with_0["大写"](_with_0)) end do - do - local _with_0 = "乔" - _u53d8_u91cfk["变量j"] = _with_0 - _u6253_u5370(_with_0["大写"](_with_0)) - end + local _with_0 = "乔" + _u53d8_u91cfk["变量j"] = _with_0 + _u6253_u5370(_with_0["大写"](_with_0)) end do - do - local _with_0 = _u53d8_u91cfa - _u6253_u5370(_with_0.b) - do - local _with_1 = _with_0.c - _u6253_u5370(_with_1.d) - end - end + local _with_0 = _u53d8_u91cfa + _u6253_u5370(_with_0.b) + local _with_1 = _with_0.c + _u6253_u5370(_with_1.d) end do - do - local _with_0 = _u53d8_u91cfa - do - local _with_1 = 2 - _with_0.b = _with_1 - _u6253_u5370(_with_1.c) - end - end + local _with_0 = _u53d8_u91cfa + local _with_1 = 2 + _with_0.b = _with_1 + _u6253_u5370(_with_1.c) end do local _ @@ -153,44 +127,38 @@ do end end do - do - local _with_0 = _u8868_u683c - local _call_0 = _u9879_u76ee["字段"] - _with_0.x = _call_0["函数"](_call_0, 123) - end + local _with_0 = _u8868_u683c + local _call_0 = _u9879_u76ee["字段"] + _with_0.x = _call_0["函数"](_call_0, 123) end do - do - local _with_0 = _u7238_u7238 - _with_0["如果"]("是的") - local _u53d8_u91cfy = _with_0["结束"]["函数"] - end + local _with_0 = _u7238_u7238 + _with_0["如果"]("是的") + local _u53d8_u91cfy = _with_0["结束"]["函数"] end do + local _with_0 = _u8868_u683c do - local _with_0 = _u8868_u683c - do - local _obj_0 = _with_0[2] - if _obj_0 ~= nil then - _with_0[1] = _obj_0["函数"](_obj_0) - end - end - _with_0["%a-b-c%"] = 123 - _with_0[ [[x y z]]] = _with_0[_u53d8_u91cf] - _u6253_u5370(_with_0[_with_0[3]]) - do - local _with_1 = _with_0[4] - _with_1[1] = 1 + local _obj_0 = _with_0[2] + if _obj_0 ~= nil then + _with_0[1] = _obj_0["函数"](_obj_0) end - _with_0[#_with_0 + 1] = "abc" - _with_0[#_with_0 + 1] = { - ["类型"] = "你好", - { - ["名字"] = "xyz", - ["值"] = 998 - } - } end + _with_0["%a-b-c%"] = 123 + _with_0[ [[x y z]]] = _with_0[_u53d8_u91cf] + _u6253_u5370(_with_0[_with_0[3]]) + do + local _with_1 = _with_0[4] + _with_1[1] = 1 + end + _with_0[#_with_0 + 1] = "abc" + _with_0[#_with_0 + 1] = { + ["类型"] = "你好", + { + ["名字"] = "xyz", + ["值"] = 998 + } + } end do do @@ -207,16 +175,14 @@ do end end do - do - local _u63a9_u7801 = _u5b9e_u5fc3_u77e9_u5f62({ - ["宽"] = w, - ["高"] = h, - ["颜色"] = 0x66000000 - }) - if _u63a9_u7801 ~= nil then - _u63a9_u7801["触摸启用"] = true - _u63a9_u7801["吞噬触摸"] = true - end + local _u63a9_u7801 = _u5b9e_u5fc3_u77e9_u5f62({ + ["宽"] = w, + ["高"] = h, + ["颜色"] = 0x66000000 + }) + if _u63a9_u7801 ~= nil then + _u63a9_u7801["触摸启用"] = true + _u63a9_u7801["吞噬触摸"] = true end end return nil -- cgit v1.2.3-55-g6feb