summaryrefslogtreecommitdiff
path: root/libraries/lua-lpeg/README
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2014-06-07 08:09:30 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-12 06:51:40 +0700
commit66b269bafa4d7c6277df3fd4cbb6f4ae70ae5708 (patch)
tree22494bc73518ca73c6ea679126d071b56978eecf /libraries/lua-lpeg/README
parent3a519f6e4bfc88774f66ea240b6738c0f9c3513c (diff)
downloadslackbuilds-66b269bafa4d7c6277df3fd4cbb6f4ae70ae5708.tar.gz
libraries/lua-lpeg: Added (pattern matching library for Lua).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/lua-lpeg/README')
-rw-r--r--libraries/lua-lpeg/README11
1 files changed, 11 insertions, 0 deletions
diff --git a/libraries/lua-lpeg/README b/libraries/lua-lpeg/README
new file mode 100644
index 0000000000..1ef11d574e
--- /dev/null
+++ b/libraries/lua-lpeg/README
@@ -0,0 +1,11 @@
+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.