Metalua - Static metaprogramming system for Lua

Clone this repo:
  1. 860e484 bug 443733: `metalua` command strips filename info from errorss by Simon Bernard · 10 years ago master
  2. 8ae66a4 typo by Simon Bernard · 10 years ago
  3. 3abc0b7 bug 443726: --print-src and --print-ast options do not work by Simon Bernard · 10 years ago
  4. daf9048 bug 439967: A call to compiler.ast_to_src crashes by Simon Bernard · 10 years ago
  5. adaea18 relaxed lua version requirements in metalua-parser rockspec by Fabien Fleutot · 10 years ago


Metalua is a Lua code analysis tool, as well as a compiler for a superset of Lua 5.1 supporting Compile-Time Meta-Programming. It's separated into two LuaRocks, metalua-parser and metalua-compiler. The documentation of each rock can be found in and

All the code in Metalua is released under dual licenses:

  • MIT public license (same as Lua);
  • EPL public license (same as Eclipse).