mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
d9213b65db
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
16 lines
820 B
Text
16 lines
820 B
Text
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.
|
|
|
|
Optional dependency: lua51 (autodetected). Install this if you need
|
|
lua-lpeg support for lua-5.1 applications.
|