Thanks Luiz, that's exactly what I was looking for. A quick comparison, hopefully this is not too far off the mark:
- llex+proxy patch (http://lua-users.org/lists/lua-l/2010-11/msg00808.html)
- very small footprint (change and speed)
- but requires patching the Lua lexer (C)
- works with both Lua 5.1 and 5.2
- further token extensions would require further patch to lexer
- precludes LuaMacro
- could coexist with MetaLua
- Lua script compiled with patched Lua should run in non-patched Lua
- LuaMacro:
- requires (your) tokenf patch to Lua source, tested only for Lua 5.1
- medium footprint, involves approx 1000 lines of Lua code
- further token extensions only require extra Lua code
- requires macro module and macro defs to be loaded by interpreter prior to script (-l switch)
- Lua script compiled with patched Lua should run in non-patched Lua
- no maintenance in 2 years (maybe good enough as is)
- MetaLua:
- pure Lua 5.1
- large footprint (size and likely but not checked, compile speed), approx 5000 lines of Lua code
- run via batch file
- further token extensions only require extra (meta)Lua code
- not updated in 18 months (latest v0.5), manual still at v0.4