Open enomado opened 11 years ago
+1, one of the main features of Lua is embeddability and by not having error rewriting outside the CLI, it makes it too difficult to use Moonscript in many of the places you would use Lua.
In my case, I want to use it in Hammerspoon and could add direct support in the source if needed.
I went with writing a custom stack trace generator that manually uses the moonscript line tables for .moon files: https://github.com/Aegisub/Aegisub/blob/master/libaegisub/lua/utils.cpp#L127
@tgoyne Brilliant, thanks for sharing!
LuaJIT just not works with moonscript
Hi. I want to call moonscript from binary executable and luajit. I try to do same that moon loader do i.e.
but rewritten is always nil.
it would be nice if there were such a helper for running moonscript code from any place with error rewriting.