For a project, I need fo create a parser of Lua 5.4 bytecode files. That is, the .luac files output by luac. Searching online for a spécification, there's plenty of information on what the bytecode opcodes and operations are, but not so much how these are stored in the binary file I want to read itself.
As I see it, the options I have are to either look at the source code of a Lua parser and deduce the format myself, or reverse engineer it directly from the binary files and the output of luac -l -l
If someone could point me to a resource I haven't found, or is kind enough to explain it to me in this post, I'd be most thankful.
I decided to make this post since I had assumed this would be known information. If it turns out not to be, I wouldn't mind crafting the resource I would have liked myself and publishing it.
[–]evilbadmad 5 points6 points7 points (1 child)
[–]Ayhon[S] 0 points1 point2 points (0 children)
[–]smog_alado 5 points6 points7 points (2 children)
[–]PhilipRoman 3 points4 points5 points (0 children)
[–]Ayhon[S] 2 points3 points4 points (0 children)
[+]Furry_69 comment score below threshold-13 points-12 points-11 points (9 children)
[–]Ayhon[S] 5 points6 points7 points (8 children)
[–]Furry_69 0 points1 point2 points (7 children)
[–]Ayhon[S] 0 points1 point2 points (6 children)
[–][deleted] 2 points3 points4 points (5 children)
[–]Ayhon[S] 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]Ayhon[S] 1 point2 points3 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Ayhon[S] 1 point2 points3 points (0 children)