lua-users home
lua-l archive

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


On 26.01.2011 20:30, Mike Pall wrote:
> Henk Boom wrote:
>> I understand that the FFI is tightly integrated, and for good reason,
>> but how coupled is the C parser to the rest of luajit? That's a tool
>> that could have many uses as part of other programs as well.
> 
> The C parser and the C type management rely on interned strings,
> but otherwise have relatively few dependencies on the VM. But it's
> designed as a declaration parser only. It captures what I needed
> for the FFI, but ignores everything else.

Can this information be accessed from within lua (in luajit2)? Or saved
in an external file? Then it could be used to automate documentation, or
bindings, and then the parser for "pure lua" would not be necessary.

Regards,
	miko