Metalua is a language and a compiler which provide:
Full compatibility with Lua 5.1 sources and bytecode: clean, elegant semantics and syntax, amazing expressive power, good performances, near-universal portability.
A complete macro system, similar in power to what's offfered by Lisp dialects or Template Haskell; manipulated programs can be seen as source code, as abstract syntax trees, or as an arbitrary mix thereof, whichever suits your task better.
A dynamically extensible parser, which lets you support your macros with a syntax that blends nicely with the rest of the language.
A set of language extensions, all implemented as regular metalua macros.