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:
https://github.com/alex-mashin/FormatterII.
Alexander Mashin