lua-users home
lua-l archive

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


It was thus said that the Great Farzad Sadeghi once stated:
> 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.

  Oh, I almost forgot---your luatablegen program.  Any reason it's written
in Python and not in Lua?  It seems an odd choice for a Lua tutorial.

  -spc (And what version of Python?  2.7?  3.0?  It makes a difference)