Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (4df2ffca0116c9db77e48d8a7e95c1871e0346b8)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (4df2ffca0116c9db77e48d8a7e95c1871e0346b8)
  • Date: Sat, 23 Aug 2008 13:05:11 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 1 +
lua-forge/lpeg/BUILD | 1 +
lua-forge/lpeg/DEPENDS | 1 +
lua-forge/lpeg/DETAILS | 31 +++++++++++++++++++++++++++++++
lua-forge/lpeg/HISTORY | 2 ++
lua-forge/lpeg/INSTALL | 7 +++++++
6 files changed, 43 insertions(+)

New commits:
commit 4df2ffca0116c9db77e48d8a7e95c1871e0346b8
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

lpeg: new spell, Parsing Expression Grammars for Lua

diff --git a/ChangeLog b/ChangeLog
index 9773876..f3b87e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
2008-08-23 Vlad Glagolev <stealth AT sourcemage.org>
+ * lua-forge/lpeg: new spell, Parsing Expression Grammars for Lua
* lua-forge/luapgsql: new spell, lightweight binding of libpq client
library
for PostgreSQL

diff --git a/lua-forge/lpeg/BUILD b/lua-forge/lpeg/BUILD
new file mode 100755
index 0000000..8eea2f2
--- /dev/null
+++ b/lua-forge/lpeg/BUILD
@@ -0,0 +1 @@
+make LUADIR="$INSTALL_ROOT/usr/include"
diff --git a/lua-forge/lpeg/DEPENDS b/lua-forge/lpeg/DEPENDS
new file mode 100755
index 0000000..9dc7219
--- /dev/null
+++ b/lua-forge/lpeg/DEPENDS
@@ -0,0 +1 @@
+depends lua
diff --git a/lua-forge/lpeg/DETAILS b/lua-forge/lpeg/DETAILS
new file mode 100755
index 0000000..6106ec0
--- /dev/null
+++ b/lua-forge/lpeg/DETAILS
@@ -0,0 +1,31 @@
+ SPELL=lpeg
+ VERSION=0.8.1
+ SOURCE=$SPELL-$VERSION.tar.gz
+ SOURCE_URL[0]=http://www.inf.puc-rio.br/~roberto/$SPELL/$SOURCE
+
SOURCE_HASH=sha512:af9b5eaa755ebec15a127eec3893ba8476ef0af620cc66b83bd989674634e23ffd8c7e8f1082d546e267d6315d7fd6b284f6c16d5c2ac8f5ce853d0f8e69d7a2
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE=http://www.inf.puc-rio.br/~roberto/lpeg.html
+ LICENSE[0]=MIT
+ ENTERED=20080823
+ SHORT="Parsing Expression Grammars for Lua"
+cat << EOF
+LPeg is a new pattern-matching library for Lua, based on Parsing Expression
+Grammars (PEGs). In this text, I assume you are familiar with PEGs. If you
+are not, you can get a quick start reading the Wikipedia Entry for PEGs or
+Section 2 of Parsing Expression Grammars: A Recognition-Based Syntactic
+Foundation (the section has only one page). The nice thing about PEGs is
+that it has a formal basis (instead of being an ad-hoc set of features),
+allows an efficient and simple implementation, and does most things we expect
+from a pattern-matching library (and more, as we can define entire grammars).
+
+Following the Snobol tradition, LPeg defines patterns as first-class objects.
+That is, patterns are regular Lua values (represented by userdata). 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 use auxiliary variables to break complex definitions, etc.) and
+are extensible, as we can define new functions to create and compose
patterns.
+EOF
diff --git a/lua-forge/lpeg/HISTORY b/lua-forge/lpeg/HISTORY
new file mode 100644
index 0000000..a99ad24
--- /dev/null
+++ b/lua-forge/lpeg/HISTORY
@@ -0,0 +1,2 @@
+2008-08-23 Vlad Glagolev <stealth AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL: spell created
diff --git a/lua-forge/lpeg/INSTALL b/lua-forge/lpeg/INSTALL
new file mode 100755
index 0000000..54bb9d0
--- /dev/null
+++ b/lua-forge/lpeg/INSTALL
@@ -0,0 +1,7 @@
+local LUA=$(installed_version lua) &&
+
+install -vm 755 *.so re.lua "$INSTALL_ROOT/usr/lib/lua/${LUA%.?}" &&
+
+# installing documentation
+install -vm 755 -d "$INSTALL_ROOT/usr/share/doc/lpeg" &&
+install -vm 644 *.html "$INSTALL_ROOT/usr/share/doc/lpeg"



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (4df2ffca0116c9db77e48d8a7e95c1871e0346b8), Vlad Glagolev, 08/23/2008

Archive powered by MHonArc 2.6.24.

Top of Page