debian/0000755000000000000000000000000012202123262007156 5ustar debian/watch0000644000000000000000000000031012202123262010201 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-leg # version=3 http://luaforge.net/frs/?group_id=323 /frs/download.php/\d+/leg-([\d\.]*).tar.gz debian/lua-leg-dev.docs0000644000000000000000000000001712202123262012130 0ustar doc/ examples/ debian/rules0000755000000000000000000000020712202123262010235 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua override_dh_auto_configure: chmod a-x src/* examples/* dh_auto_configure debian/compat0000644000000000000000000000000212202123262010354 0ustar 8 debian/source/0000755000000000000000000000000012202123262010456 5ustar debian/source/format0000644000000000000000000000001412202123262011664 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000363612202123262011040 0ustar lua-leg (0.1.3-1) unstable; urgency=low * New upstream release * Add patch to scanner.lua to avoid empty loop (Closes: #719379) * Packaging moved to git * Remove transitional packages -- Enrico Tassi Thu, 19 Apr 2012 09:52:04 +0200 lua-leg (0.1.2-8) unstable; urgency=low * Clean up debian/rules * Build-depend on dh-lua >= 12 * Copyright file updated to format 1.0 -- Enrico Tassi Thu, 19 Apr 2012 09:50:41 +0200 lua-leg (0.1.2-7) unstable; urgency=low * Switch to dh-lua * Bumped standards-version to 3.9.3, no changes needed * Packages renamed according to the new lua policy -- Enrico Tassi Mon, 09 Apr 2012 11:04:11 +0200 lua-leg (0.1.2-6) unstable; urgency=low * source format 3.0 (quilt) * bumped standards-version to 3.9.2, no changes needed -- Enrico Tassi Fri, 22 Jul 2011 12:36:36 +0200 lua-leg (0.1.2-5) unstable; urgency=low * bumped standards-version to 3.8.2 * build-depend on lua5.1-policy-dev >= 22 -- Enrico Tassi Tue, 21 Jul 2009 15:52:48 +0200 lua-leg (0.1.2-4) unstable; urgency=low * rebuild against liblua5.1-lpeg2 * fixed lua -> Lua in control * bumped standards-version to 3.8.1, no changes needed * added misc:Depends to Depends since I'm using debhelpers -- Enrico Tassi Mon, 23 Mar 2009 10:41:49 +0100 lua-leg (0.1.2-3) unstable; urgency=low * depend on liblua5.1-lpeg1 -- Enrico Tassi Fri, 07 Mar 2008 19:25:20 +0100 lua-leg (0.1.2-2) unstable; urgency=low * fixed watch file * better package description -- Enrico Tassi Sat, 22 Dec 2007 13:37:18 +0100 lua-leg (0.1.2-1) unstable; urgency=low * Initial release. (Closes: #457198) -- Enrico Tassi Wed, 19 Dec 2007 19:53:50 +0100 debian/copyright0000644000000000000000000000250112202123262011107 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: leg Upstream-Contact: Humberto Anjos Source: http://svn.debian.org/viewsvn/pkg-lua/packages/lua-leg Files: * Copyright: 2007 Humberto Saraiva Nazareno dos Anjos. License: MIT/X Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/dh-lua.conf0000644000000000000000000000100312202123262011171 0ustar LUA_VERSION=5.1 ### mandatory fields PKG_NAME=leg ### things relative to the C library part CLIB_CFLAGS= CLIB_LDFLAGS= CLIB_OBJS= LUA_MODNAME_CPART= ### things relative to the lua library part LUA_HEADER= LUA_SOURCES=$(wildcard src/*.lua) LUA_SOURCES_MANGLER=sed 's?^src/?leg/?' LUA_MODNAME= LUA_TEST=cd tests/ && @@LUA@@ test.lua ### this part is relative to pkg-config PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL= PKG_REQUIRES= PKG_CONFLICTS= debian/control0000644000000000000000000000214512202123262010563 0ustar Source: lua-leg Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: debhelper (>= 8), lua-lpeg-dev, dh-lua (>= 12) Standards-Version: 3.9.3 Homepage: http://leg.luaforge.net Vcs-Git: git://git.debian.org/git/pkg-lua/lua-leg.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-leg.git Package: lua-leg Architecture: all Depends: ${misc:Depends}, lua-lpeg Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: Lua 5.1 grammar, with parsing and manipulation facilities This package contains leg, a Lua library exporting a complete Lua 5.1 grammar and a small API for user manipulation. It can be used to implement a macro preprocessor or any other task that needs to parse a .lua file. Package: lua-leg-dev Section: libdevel Architecture: all Depends: ${misc:Depends} Replaces: liblua5.1-leg-dev (<< 0.1.2-7~) Breaks: liblua5.1-leg-dev (<< 0.1.2-7~) Provides: liblua5.1-leg-dev, ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: Leg development files for the Lua language This package contains the documentation for the leg library. debian/patches/0000755000000000000000000000000012202123262010605 5ustar debian/patches/series0000644000000000000000000000007012202123262012017 0ustar 0001-test.patch 0002-fix-empty-loop-in-_PrefixExp.patch debian/patches/0002-fix-empty-loop-in-_PrefixExp.patch0000644000000000000000000000153512202123262017555 0ustar From: Enrico Tassi Date: Mon, 12 Aug 2013 11:08:39 +0200 Subject: fix empty loop in _PrefixExp --- src/scanner.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scanner.lua b/src/scanner.lua index e571f74..a8d22e6 100755 --- a/src/scanner.lua +++ b/src/scanner.lua @@ -352,8 +352,8 @@ end NUMBER = #(N + (m.P'.' * N)) * number -- LONG BRACKETS -local long_brackets = #(m.P'[' * m.P'='^0 * m.P'[') * function (subject, i1) - local level = _G.assert( subject:match('^%[(=*)%[', i1) ) +local long_brackets = #(m.P'[' * m.P'='^0 * m.P'[') * m.P'[' * function (subject, i1) + local level = _G.assert( subject:match('^(=*)%[', i1) ) local _, i2 = subject:find(']'..level..']', i1, true) -- true = plain "find substring" return (i2 and (i2+1)) or error('unfinished long brackets')(subject, i1) end debian/patches/0001-test.patch0000644000000000000000000000135212202123262013164 0ustar From: Enrico Tassi Date: Mon, 12 Aug 2013 10:30:05 +0200 Subject: test that exadecimal number --- tests/test_scanner.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_scanner.lua b/tests/test_scanner.lua index b59b5fb..3368429 100755 --- a/tests/test_scanner.lua +++ b/tests/test_scanner.lua @@ -110,7 +110,7 @@ assert(NUM:match'12.343') assert(NUM:match'0x7a2fF') -- hexadecimal notation (yes, this matches) -assert(NUM:match'0x') +--assert(NUM:match'0x') -- hexadecimal notation assert(not NUM:match'!ff') @@ -225,4 +225,4 @@ asdaks \n -- --[[ deve pegar comment multi-line --print'oi' ]] ]===]) -print '...OK!' \ No newline at end of file +print '...OK!'