diff options
| author | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
| commit | e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch) | |
| tree | 6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/outputs/unicode/local.lua | |
| parent | 289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff) | |
| download | yuescript-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/local.lua')
| -rw-r--r-- | spec/outputs/unicode/local.lua | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/spec/outputs/unicode/local.lua b/spec/outputs/unicode/local.lua new file mode 100644 index 0000000..170144b --- /dev/null +++ b/spec/outputs/unicode/local.lua | |||
| @@ -0,0 +1,157 @@ | |||
| 1 | do | ||
| 2 | local _u53d8_u91cfa | ||
| 3 | local _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc | ||
| 4 | local _u53d8_u91cfg | ||
| 5 | _u53d8_u91cfb, _u53d8_u91cfg = 23232, nil | ||
| 6 | end | ||
| 7 | do | ||
| 8 | local _u53d8_u91cfx = 1212 | ||
| 9 | local _u67d0_u4e8b | ||
| 10 | _u67d0_u4e8b = function() | ||
| 11 | local _u53d8_u91cfx | ||
| 12 | _u53d8_u91cfx = 1212 | ||
| 13 | end | ||
| 14 | end | ||
| 15 | do | ||
| 16 | local _u53d8_u91cfy, _u53d8_u91cfz | ||
| 17 | _u53d8_u91cfy = 2323 | ||
| 18 | _u53d8_u91cfz = 2323 | ||
| 19 | end | ||
| 20 | do | ||
| 21 | _u6253_u5370("啥也没有!") | ||
| 22 | end | ||
| 23 | do | ||
| 24 | local X_u5927_u5199, Y_u5927_u5199 | ||
| 25 | local x_u53d8_u91cf = 3434 | ||
| 26 | local y_u53d8_u91cf = 3434 | ||
| 27 | X_u5927_u5199 = 3434 | ||
| 28 | Y_u5927_u5199 = "好" | ||
| 29 | end | ||
| 30 | do | ||
| 31 | local x_u53d8_u91cf, y_u53d8_u91cf = "a", "b" | ||
| 32 | end | ||
| 33 | do | ||
| 34 | local x_u53d8_u91cf, y_u53d8_u91cf | ||
| 35 | x_u53d8_u91cf, y_u53d8_u91cf = "a", "b" | ||
| 36 | end | ||
| 37 | do | ||
| 38 | if _u67d0_u4e8b then | ||
| 39 | local x_u53d8_u91cf = 2323 | ||
| 40 | end | ||
| 41 | end | ||
| 42 | do | ||
| 43 | local _u53d8_u91cfx | ||
| 44 | do | ||
| 45 | _u53d8_u91cfx = "一" | ||
| 46 | end | ||
| 47 | _u53d8_u91cfx = 100 | ||
| 48 | do | ||
| 49 | _u53d8_u91cfx = "二" | ||
| 50 | end | ||
| 51 | end | ||
| 52 | do | ||
| 53 | local _u53d8_u91cfk, _u53d8_u91cfx, _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc | ||
| 54 | if _u4ec0_u4e48 then | ||
| 55 | _u53d8_u91cfk = 10 | ||
| 56 | end | ||
| 57 | _u53d8_u91cfx = 100 | ||
| 58 | do | ||
| 59 | local _obj_0 = _u53d8_u91cfy | ||
| 60 | _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc = _obj_0[1], _obj_0[2], _obj_0[3] | ||
| 61 | end | ||
| 62 | end | ||
| 63 | do | ||
| 64 | local _u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc, _u53d8_u91cfd | ||
| 65 | _u53d8_u91cfa = 100 | ||
| 66 | _u6253_u5370("嗨") | ||
| 67 | _u53d8_u91cfb = 200 | ||
| 68 | _u53d8_u91cfc = 100 | ||
| 69 | _u6253_u5370("嗨") | ||
| 70 | _u53d8_u91cfd = 200 | ||
| 71 | _u53d8_u91cfd = 2323 | ||
| 72 | end | ||
| 73 | do | ||
| 74 | local A_u5927_u5199, O_u4e00, T_u4e8c | ||
| 75 | local a_u5c0f_u5199 = 5 | ||
| 76 | A_u5927_u5199 = 3 | ||
| 77 | do | ||
| 78 | local _class_0 | ||
| 79 | local F_u4e94 | ||
| 80 | local _base_0 = { } | ||
| 81 | if _base_0.__index == nil then | ||
| 82 | _base_0.__index = _base_0 | ||
| 83 | end | ||
| 84 | _class_0 = setmetatable({ | ||
| 85 | __init = function() end, | ||
| 86 | __base = _base_0, | ||
| 87 | __name = "O一" | ||
| 88 | }, { | ||
| 89 | __index = _base_0, | ||
| 90 | __call = function(cls, ...) | ||
| 91 | local _self_0 = setmetatable({ }, _base_0) | ||
| 92 | cls.__init(_self_0, ...) | ||
| 93 | return _self_0 | ||
| 94 | end | ||
| 95 | }) | ||
| 96 | _base_0.__class = _class_0 | ||
| 97 | local self = _class_0; | ||
| 98 | F_u4e94 = 6 | ||
| 99 | O_u4e00 = _class_0 | ||
| 100 | end | ||
| 101 | do | ||
| 102 | local _class_0 | ||
| 103 | local N_u65e0 | ||
| 104 | local _base_0 = { } | ||
| 105 | if _base_0.__index == nil then | ||
| 106 | _base_0.__index = _base_0 | ||
| 107 | end | ||
| 108 | _class_0 = setmetatable({ | ||
| 109 | __init = function() end, | ||
| 110 | __base = _base_0, | ||
| 111 | __name = "T二" | ||
| 112 | }, { | ||
| 113 | __index = _base_0, | ||
| 114 | __call = function(cls, ...) | ||
| 115 | local _self_0 = setmetatable({ }, _base_0) | ||
| 116 | cls.__init(_self_0, ...) | ||
| 117 | return _self_0 | ||
| 118 | end | ||
| 119 | }) | ||
| 120 | _base_0.__class = _class_0 | ||
| 121 | local self = _class_0; | ||
| 122 | do | ||
| 123 | local _class_1 | ||
| 124 | local _base_1 = { } | ||
| 125 | if _base_1.__index == nil then | ||
| 126 | _base_1.__index = _base_1 | ||
| 127 | end | ||
| 128 | _class_1 = setmetatable({ | ||
| 129 | __init = function() end, | ||
| 130 | __base = _base_1, | ||
| 131 | __name = "N无" | ||
| 132 | }, { | ||
| 133 | __index = _base_1, | ||
| 134 | __call = function(cls, ...) | ||
| 135 | local _self_0 = setmetatable({ }, _base_1) | ||
| 136 | cls.__init(_self_0, ...) | ||
| 137 | return _self_0 | ||
| 138 | end | ||
| 139 | }) | ||
| 140 | _base_1.__class = _class_1 | ||
| 141 | N_u65e0 = _class_1 | ||
| 142 | end | ||
| 143 | T_u4e8c = _class_0 | ||
| 144 | end | ||
| 145 | end | ||
| 146 | do | ||
| 147 | local _list_0 = { } | ||
| 148 | for _index_0 = 1, #_list_0 do | ||
| 149 | local _u53d8_u91cfa = _list_0[_index_0] | ||
| 150 | local _ = _u53d8_u91cfa | ||
| 151 | end | ||
| 152 | end | ||
| 153 | do | ||
| 154 | local _u53d8_u91cfx | ||
| 155 | _u53d8_u91cfx = _u53d8_u91cfa or _u53d8_u91cfb | ||
| 156 | end | ||
| 157 | local _u53d8_u91cfg = 2323 | ||
