honeylisp/main.lua
Jeremy Penner 1a93fc7e84 A bunch of stuff
- refactor assembler to be more modular / extensible
- fix a bunch of bugs
- better error reporting
- stop using imgui in favour of lite commands
- in-editor hotswap & eval hotkeys
- machine:write in batches so bytes aren't dropped
- first cut at stack VM primitives
2020-09-20 13:55:06 -04:00

23 lines
536 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")
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")