2020-09-17 02:34:36 +00:00
|
|
|
-- bootstrap the compiler
|
|
|
|
fennel = require("lib.fennel")
|
2021-04-24 02:54:28 +00:00
|
|
|
table.insert(package.loaders, fennel.make_searcher())
|
2021-07-31 01:57:38 +00:00
|
|
|
debug.traceback = fennel.traceback
|
2021-01-23 21:22:13 +00:00
|
|
|
fv = fennel.view
|
2020-09-17 02:34:36 +00:00
|
|
|
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
|
2021-04-25 18:52:45 +00:00
|
|
|
_, luars232 = pcall(function () require("luars232") end)
|
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
|
|
|
|
|
2021-01-23 21:22:13 +00:00
|
|
|
require("vendor.lite.main")
|
2020-09-20 17:55:06 +00:00
|
|
|
require("wrap")
|