lua-users home
lua-l archive

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


On Mon, Feb 21, 2011 at 3:18 PM, zhiguo zhao <zhaozg@gmail.com> wrote:
> Same with title, compatible is hard broken by luajit ffi module,
> I hope my lua code can be run both luajit and lua. But ffi is
> most attraction feature, can who do some work to port luajit ffi to lua as a
> extend module.
> Thanks very much.

It will probably not cover all of the features of LuaJIT's FFI, but
what someone could try is marrying an LPEG-based C parser, like Wesley
Smith's CEG:

http://article.gmane.org/gmane.comp.lang.lua.general/58453

...to Alien FFI:

http://alien.luaforge.net/

-Duncan