Skip to content

Commit 673e0cf

Browse files
committed
rebuild
1 parent 7cd0fcc commit 673e0cf

File tree

9 files changed

+68
-68
lines changed

9 files changed

+68
-68
lines changed

moonscript/compile.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ do
117117
if "table" == type(t) then
118118
return (function()
119119
local _accum_0 = { }
120-
local _len_0 = 0
120+
local _len_0 = 1
121121
local _list_0 = t
122122
for _index_0 = 1, #_list_0 do
123123
local v = _list_0[_index_0]
124-
_len_0 = _len_0 + 1
125124
_accum_0[_len_0] = strip(v)
125+
_len_0 = _len_0 + 1
126126
end
127127
return _accum_0
128128
end)()
@@ -353,7 +353,7 @@ do
353353
declare = function(self, names)
354354
local undeclared = (function()
355355
local _accum_0 = { }
356-
local _len_0 = 0
356+
local _len_0 = 1
357357
local _list_0 = names
358358
for _index_0 = 1, #_list_0 do
359359
local name = _list_0[_index_0]
@@ -373,8 +373,8 @@ do
373373
_value_0 = real_name
374374
end
375375
if _value_0 ~= nil then
376-
_len_0 = _len_0 + 1
377376
_accum_0[_len_0] = _value_0
377+
_len_0 = _len_0 + 1
378378
end
379379
end
380380
return _accum_0
@@ -520,12 +520,12 @@ do
520520
local _with_0 = Line()
521521
_with_0:append_list((function()
522522
local _accum_0 = { }
523-
local _len_0 = 0
523+
local _len_0 = 1
524524
local _list_0 = values
525525
for _index_0 = 1, #_list_0 do
526526
local v = _list_0[_index_0]
527-
_len_0 = _len_0 + 1
528527
_accum_0[_len_0] = self:value(v)
528+
_len_0 = _len_0 + 1
529529
end
530530
return _accum_0
531531
end)(), delim)

moonscript/compile/statement.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ local statement_compilers = {
2626
local _with_0 = self:line("local ")
2727
_with_0:append_list((function()
2828
local _accum_0 = { }
29-
local _len_0 = 0
29+
local _len_0 = 1
3030
local _list_0 = undeclared
3131
for _index_0 = 1, #_list_0 do
3232
local name = _list_0[_index_0]
33-
_len_0 = _len_0 + 1
3433
_accum_0[_len_0] = self:name(name)
34+
_len_0 = _len_0 + 1
3535
end
3636
return _accum_0
3737
end)(), ", ")
@@ -80,12 +80,12 @@ local statement_compilers = {
8080
local _with_0 = self:line("local ")
8181
_with_0:append_list((function()
8282
local _accum_0 = { }
83-
local _len_0 = 0
83+
local _len_0 = 1
8484
local _list_0 = names
8585
for _index_0 = 1, #_list_0 do
8686
local name = _list_0[_index_0]
87-
_len_0 = _len_0 + 1
8887
_accum_0[_len_0] = self:name(name)
88+
_len_0 = _len_0 + 1
8989
end
9090
return _accum_0
9191
end)(), ", ")
@@ -114,25 +114,25 @@ local statement_compilers = {
114114
end
115115
_with_0:append_list((function()
116116
local _accum_0 = { }
117-
local _len_0 = 0
117+
local _len_0 = 1
118118
local _list_0 = names
119119
for _index_0 = 1, #_list_0 do
120120
local name = _list_0[_index_0]
121-
_len_0 = _len_0 + 1
122121
_accum_0[_len_0] = self:value(name)
122+
_len_0 = _len_0 + 1
123123
end
124124
return _accum_0
125125
end)(), ", ")
126126
end
127127
_with_0:append(" = ")
128128
_with_0:append_list((function()
129129
local _accum_0 = { }
130-
local _len_0 = 0
130+
local _len_0 = 1
131131
local _list_0 = values
132132
for _index_0 = 1, #_list_0 do
133133
local v = _list_0[_index_0]
134-
_len_0 = _len_0 + 1
135134
_accum_0[_len_0] = self:value(v)
135+
_len_0 = _len_0 + 1
136136
end
137137
return _accum_0
138138
end)(), ", ")
@@ -223,24 +223,24 @@ local statement_compilers = {
223223
local _with_0 = self:block(loop)
224224
loop:append_list((function()
225225
local _accum_0 = { }
226-
local _len_0 = 0
226+
local _len_0 = 1
227227
local _list_0 = names
228228
for _index_0 = 1, #_list_0 do
229229
local name = _list_0[_index_0]
230-
_len_0 = _len_0 + 1
231230
_accum_0[_len_0] = _with_0:name(name, false)
231+
_len_0 = _len_0 + 1
232232
end
233233
return _accum_0
234234
end)(), ", ")
235235
loop:append(" in ")
236236
loop:append_list((function()
237237
local _accum_0 = { }
238-
local _len_0 = 0
238+
local _len_0 = 1
239239
local _list_0 = exps
240240
for _index_0 = 1, #_list_0 do
241241
local exp = _list_0[_index_0]
242-
_len_0 = _len_0 + 1
243242
_accum_0[_len_0] = self:value(exp)
243+
_len_0 = _len_0 + 1
244244
end
245245
return _accum_0
246246
end)(), ",")

moonscript/compile/value.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ local value_compilers = {
2626
local _with_0 = self:line()
2727
_with_0:append_list((function()
2828
local _accum_0 = { }
29-
local _len_0 = 0
29+
local _len_0 = 1
3030
for i, v in ipairs(node) do
3131
if i > 1 then
32-
_len_0 = _len_0 + 1
3332
_accum_0[_len_0] = _comp(i, v)
33+
_len_0 = _len_0 + 1
3434
end
3535
end
3636
return _accum_0
@@ -43,12 +43,12 @@ local value_compilers = {
4343
local _with_0 = self:line()
4444
_with_0:append_list((function()
4545
local _accum_0 = { }
46-
local _len_0 = 0
46+
local _len_0 = 1
4747
local _list_0 = node
4848
for _index_0 = 2, #_list_0 do
4949
local v = _list_0[_index_0]
50-
_len_0 = _len_0 + 1
5150
_accum_0[_len_0] = self:value(v)
51+
_len_0 = _len_0 + 1
5252
end
5353
return _accum_0
5454
end)(), ", ")
@@ -118,7 +118,7 @@ local value_compilers = {
118118
local self_args = { }
119119
local arg_names = (function()
120120
local _accum_0 = { }
121-
local _len_0 = 0
121+
local _len_0 = 1
122122
local _list_0 = args
123123
for _index_0 = 1, #_list_0 do
124124
local arg = _list_0[_index_0]
@@ -136,8 +136,8 @@ local value_compilers = {
136136
end
137137
local _value_0 = name
138138
if _value_0 ~= nil then
139-
_len_0 = _len_0 + 1
140139
_accum_0[_len_0] = _value_0
140+
_len_0 = _len_0 + 1
141141
end
142142
end
143143
return _accum_0
@@ -185,12 +185,12 @@ local value_compilers = {
185185
end
186186
local self_arg_values = (function()
187187
local _accum_0 = { }
188-
local _len_0 = 0
188+
local _len_0 = 1
189189
local _list_2 = self_args
190190
for _index_0 = 1, #_list_2 do
191191
local arg = _list_2[_index_0]
192-
_len_0 = _len_0 + 1
193192
_accum_0[_len_0] = arg[2]
193+
_len_0 = _len_0 + 1
194194
end
195195
return _accum_0
196196
end)()
@@ -205,14 +205,14 @@ local value_compilers = {
205205
if #args > #arg_names then
206206
arg_names = (function()
207207
local _accum_0 = { }
208-
local _len_0 = 0
208+
local _len_0 = 1
209209
local _list_2 = args
210210
for _index_0 = 1, #_list_2 do
211211
local arg = _list_2[_index_0]
212212
local _value_0 = arg[1]
213213
if _value_0 ~= nil then
214-
_len_0 = _len_0 + 1
215214
_accum_0[_len_0] = _value_0
215+
_len_0 = _len_0 + 1
216216
end
217217
end
218218
return _accum_0

moonscript/dump.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ flat_value = function(op, depth)
1111
end
1212
local items = (function()
1313
local _accum_0 = { }
14-
local _len_0 = 0
14+
local _len_0 = 1
1515
local _list_0 = op
1616
for _index_0 = 1, #_list_0 do
1717
local item = _list_0[_index_0]
18-
_len_0 = _len_0 + 1
1918
_accum_0[_len_0] = flat_value(item, depth + 1)
19+
_len_0 = _len_0 + 1
2020
end
2121
return _accum_0
2222
end)()

moonscript/errors.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ truncate_traceback = function(traceback, chunk_func)
4444
end
4545
traceback = (function()
4646
local _accum_0 = { }
47-
local _len_0 = 0
47+
local _len_0 = 1
4848
local _list_0 = traceback
4949
local _max_0 = stop
5050
for _index_0 = 1, _max_0 < 0 and #_list_0 + _max_0 or _max_0 do
5151
local t = _list_0[_index_0]
52-
_len_0 = _len_0 + 1
5352
_accum_0[_len_0] = t
53+
_len_0 = _len_0 + 1
5454
end
5555
return _accum_0
5656
end)()

0 commit comments

Comments
 (0)