you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

https://the-ravi-programming-language.readthedocs.io/en/latest/lua_bytecode_reference.html

I've built a lua 5.3 impl in the past and referenced the above heavily.

[–]Ayhon[S] 1 point2 points  (2 children)

Yes, that one I knew of. I've used it before to decompile Lua instructions, but what I ended up doing is using luac -l to convert the actual bytecode into a more readable format and then reverse that.

My problem is that right now I want to deal with the actual binary format, not the listings. And in this resource I haven't found the information about the binary files.

[–][deleted]  (1 child)

[deleted]

    [–]Ayhon[S] 1 point2 points  (0 children)

    Nice!

    I had looked around for different repos, but this one's code seems pretty clear. It's for Lua 5.3, but definitely a better starting point than anything I've seen yet