lua-users home
lua-l archive

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


On Thu, May 12, 2011 at 11:01 AM, KHMan <keinhong@gmail.com> wrote:
> Eh, my memory cells is a failure, a C preprocessor in Lua is probably more
> like a 40KB stripped binary chunk. But it's under 20KB without the #if*
> conditional syntax and expression parsing. There is quite a lot to
> implement...

Oh yes, that's the complicated bit!

Although does it make sense to expect a Lua FFI package to read
implementation C header files?  They are clunky and often depend on
lots of little bits. Much better to have a tool to massage them and
extract exactly what one wants, and include that. Such a tool could
start out by using the standalone C preprocessor as a first step.

Then (for instance) the target system only needs foo, not foo-dev

steve d.