lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,
I needed to turn a bunch of C structures into Lua tables for a tool
I'm working on so I started looking for tutorials on how to do that
but the tutorials were either old or were too simple and didn't cover
my use case. So I looked around(including the lua mailist itself) and
finally made a tutorial for that.
Here's the link for the github gist:
https://gist.github.com/bloodstalker/91261e541666f16c3b8315d3ff1085d6
Source Code:
https://github.com/bloodstalker/blogstuff/tree/master/src/cstruct2luatbale

I'm a Lua noob, so any comments are appreciated on how to make the
tutorial better.

-- 
Farzad Sadeghi
project mutator-https://github.com/bloodstalker/mutator