Builds libend (the simplest library). Becoming obvious I need to rework the way
ackbuilder deals with lists.
This commit is contained in:
@@ -30,9 +30,13 @@ end
|
||||
|
||||
local function concat(...)
|
||||
local r = {}
|
||||
for k, t in ipairs({...}) do
|
||||
for _, v in ipairs(t) do
|
||||
r[#r+1] = v
|
||||
for _, t in ipairs({...}) do
|
||||
if (type(t) == "table") and not t.is then
|
||||
for _, v in ipairs(t) do
|
||||
r[#r+1] = v
|
||||
end
|
||||
else
|
||||
r[#r+1] = t
|
||||
end
|
||||
end
|
||||
return r
|
||||
@@ -413,6 +417,10 @@ local typeconverters = {
|
||||
end
|
||||
return i
|
||||
end,
|
||||
|
||||
object = function(propname, i)
|
||||
return i
|
||||
end,
|
||||
}
|
||||
|
||||
local function definerule(rulename, types, cb)
|
||||
|
||||
Reference in New Issue
Block a user