[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: A table formatting tool
- From: Александр Машин <alex.mashin@...>
- Date: Wed, 23 Aug 2023 17:19:32 +0700
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