Yuescript
Yuescript copied to clipboard
output bytecode directly to LuaJIT
hi jin, I found something cool the other day...
https://github.com/franko/luajit-lang-toolkit
- get tokens (needs some changes to count indentation)
- build ast
- output Yuescript
- output LuaJIT bytecode and run directly in LuaJIT (as if you loaded a .lua file)
I think this can be a project for learning LuaJIT bytecode generation. Maybe we can learn from it and then make YueScript generating to bytecode for LuaJIT, instead of the intermediate Lua code to speed up and do optimized compiling.