lua-users home
lua-l archive

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

Dear all,

I wrote an alpha version of a table formatting tool, called FormatterII, based on LPEG and coroutines, which formats a Lua table according to a format string. Among other things, it can select table fields with keys or values matching a regular expression (there are several flavours, including Lua, Re and some others provided by lrexlib).

The ultimate purpose is to use it as an alternative templating engine in MediaWiki: I want to get rid of {{{param1|{{{Param1|{{{param 1|{{{Param 1|}}}}}}}}}}}} chains.

Criticism is welcome.

The library is here:

Alexander Mashin