24 lines
567 B
Lua
24 lines
567 B
Lua
-- bootstrap the compiler
|
|
fennel = require("lib.fennel")
|
|
table.insert(package.loaders, fennel.make_searcher({correlate=true}))
|
|
fv = require("lib.fennelview")
|
|
pp = function(x) print(fv(x)) end
|
|
lume = require("lume")
|
|
luars232 = require("luars232")
|
|
|
|
function reload(modname)
|
|
package.loaded[modname] = nil
|
|
return require(modname)
|
|
end
|
|
|
|
_coroutine_resume = coroutine.resume
|
|
function coroutine.resume(...)
|
|
local state,result = _coroutine_resume(...)
|
|
if not state then
|
|
error( tostring(result), 2 ) -- Output error message
|
|
end
|
|
return state,result
|
|
end
|
|
|
|
require("wrap")
|