honeylisp/main.lua
Jeremy Penner 12481e9257 non-working attempt to lazily expand macros using lua proxy objects
Unfortunately there is no way to override # in luajit, so I can't make
a truly transparent proxy. Unclear if I could get away with a weird
half-object, but it doesn't seem to be working.
2021-10-22 20:44:24 -04:00

23 lines
674 B
Lua

-- bootstrap the compiler
fennel = require("lib.fennel")
table.insert(package.loaders, fennel.searcher)
debug.traceback = fennel.traceback
fv = fennel.view
pp = function(x) print(fv(x)) end
lume = require("lib.lume")
require("lib.metatable_monkey") -- unbreak luajit ipairs
-- these set global variables and can't be required after requiring core.strict
_, luars232 = pcall(function () require("luars232") 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("vendor.lite.main")
require("wrap")