slackbuilds/libraries/lua-lpeg
Ruben Schuller e358da29c6
libraries/lua-lpeg: install lpeg for all luas
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2022-03-26 01:20:20 +07:00
..
README libraries/lua-lpeg: Wrap README at 72 columns. 2022-03-13 15:49:00 -04:00
lua-lpeg.SlackBuild libraries/lua-lpeg: install lpeg for all luas 2022-03-26 01:20:20 +07:00
lua-lpeg.info libraries/lua-lpeg: Fix quote. 2021-10-18 07:58:58 +07:00
slack-desc

README

LPeg is a new pattern-matching library for Lua, based on Parsing
Expression Grammars (PEGs).

The library offers several functions to create and compose
patterns. With the use of metamethods, several of these functions are
provided as infix or prefix operators. On the one hand, the result is
usually much more verbose than the typical encoding of patterns using
the so called regular expressions (which typically are not regular
expressions in the formal sense). On the other hand, first-class
patterns allow much better documentation (as it is easy to comment
the code, to break complex definitions in smaller parts, etc.) and
are extensible, as we can define new functions to create and compose
patterns.