honeylisp/main.lua

21 lines
590 B
Lua
Raw Normal View History

-- 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-10-12 15:48:14 +00:00
lume = require("lib.lume")
-- these set global variables and can't be required after requiring core.strict
imgui = require("imgui")
luars232 = require("luars232")
_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")