2020-09-17 02:34:36 +00:00
|
|
|
-- 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
|
2020-09-20 17:55:06 +00:00
|
|
|
lume = require("lume")
|
2020-09-27 18:53:16 +00:00
|
|
|
luars232 = require("luars232")
|
2020-09-17 02:34:36 +00:00
|
|
|
|
|
|
|
_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
|
|
|
|
|
2020-09-20 17:55:06 +00:00
|
|
|
require("wrap")
|