Files
nel/nellie/index.lua
2026-03-03 14:22:18 +00:00

27 lines
567 B
Lua

require("nelli")
local function main(args)
-- Take arguments as neli files to read and interpret
local root = Chain(
string.format(
"in cmd 'nelli {%s}'",
table.concat(args,";")
)
)
for _,parameter in pairs(args) do
local chain = Chain(
string.format("in 'call: root' @'%s'",parameter)
):from(root)
root:call(function()
local root = interpret(
read(parameter),
parameter,
chain
)
NelliScope:run(root,chain)
end)
end
end
-- A list of arguments passed into this
main({...})