Builds libend (the simplest library). Becoming obvious I need to rework the way

ackbuilder deals with lists.
This commit is contained in:
David Given
2016-07-30 00:39:22 +02:00
parent 363d13cc2f
commit b2bb4ce3b2
12 changed files with 98 additions and 36 deletions

View File

@@ -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)