debian/0000755000000000000000000000000012264544037007175 5ustar debian/compat0000644000000000000000000000000212161051023010353 0ustar 9 debian/control0000644000000000000000000000156212247042107010574 0ustar Source: peg Section: devel Priority: optional Maintainer: Giulio Paci Build-Depends: cdbs, devscripts, debhelper (>= 9~), dh-buildinfo, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/collab-maint/peg.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/peg.git Homepage: http://piumarta.com/software/peg/ Package: peg Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: recursive-descent parser generators for C This package provides peg and leg, two utilities that read a Parsing Expression Grammar (PEG) and generate a recursive-descent parser for it. . Unlike lex and yacc, peg and leg support unlimited backtracking, provide ordered choice as a means for disambiguation, and can combine scanning (lexical analysis) and parsing (syntactic analysis) into a single activity. debian/patches/0000755000000000000000000000000012247042107010614 5ustar debian/patches/series0000644000000000000000000000007412247042107012032 0ustar 2001_makefile_configuration.patch 2002_examples_fixes.patch debian/patches/2002_examples_fixes.patch0000644000000000000000000000507412161051023015312 0ustar Description: fixes examples files Makes examples files suitable for distribution Author: Giulio Paci Forwarded: not-needed --- a/examples/Makefile +++ b/examples/Makefile @@ -8,7 +8,7 @@ all : $(EXAMPLES) test : .FORCE - ../peg -o test.peg.c test.peg + peg -o test.peg.c test.peg $(CC) $(CFLAGS) -o test test.c echo 'ab.ac.ad.ae.afg.afh.afg.afh.afi.afj.' | ./$@ | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -16,7 +16,7 @@ @echo rule : .FORCE - ../peg -o rule.peg.c rule.peg + peg -o rule.peg.c rule.peg $(CC) $(CFLAGS) -o rule rule.c echo 'abcbcdabcbcdabcbcdabcbcd' | ./$@ | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -24,7 +24,7 @@ @echo accept : .FORCE - ../peg -o accept.peg.c accept.peg + peg -o accept.peg.c accept.peg $(CC) $(CFLAGS) -o accept accept.c echo 'abcbcdabcbcdabcbcdabcbcd' | ./$@ | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -32,7 +32,7 @@ @echo wc : .FORCE - ../leg -o wc.leg.c wc.leg + leg -o wc.leg.c wc.leg $(CC) $(CFLAGS) -o wc wc.leg.c cat wc.leg | ./$@ | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -40,7 +40,7 @@ @echo dc : .FORCE - ../peg -o dc.peg.c dc.peg + peg -o dc.peg.c dc.peg $(CC) $(CFLAGS) -o dc dc.c echo ' 2 *3 *(3+ 4) ' | ./dc | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -48,7 +48,7 @@ @echo dcv : .FORCE - ../peg -o dcv.peg.c dcv.peg + peg -o dcv.peg.c dcv.peg $(CC) $(CFLAGS) -o dcv dcv.c echo 'a = 6; b = 7; a * b' | ./dcv | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -56,7 +56,7 @@ @echo calc : .FORCE - ../leg -o calc.leg.c calc.leg + leg -o calc.leg.c calc.leg $(CC) $(CFLAGS) -o calc calc.leg.c echo 'a = 6; b = 7; a * b' | ./calc | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -64,7 +64,7 @@ @echo basic : .FORCE - ../leg -o basic.leg.c basic.leg + leg -o basic.leg.c basic.leg $(CC) $(CFLAGS) -o basic basic.leg.c ( echo 'load "test"'; echo "run" ) | ./basic | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -72,7 +72,7 @@ @echo localpeg : .FORCE - ../peg -o test.peg.c test.peg + peg -o test.peg.c test.peg $(CC) $(CFLAGS) -o localpeg localpeg.c echo 'ab.ac.ad.ae.afg.afh.afg.afh.afi.afj.' | ./$@ | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -80,7 +80,7 @@ @echo localleg : .FORCE - ../leg -o localleg.leg.c localleg.leg + leg -o localleg.leg.c localleg.leg $(CC) $(CFLAGS) -o localleg localleg.leg.c ./$@ < localleg.leg | $(TEE) $@.out $(DIFF) $@.ref $@.out @@ -88,7 +88,7 @@ @echo erract : .FORCE - ../leg -o erract.leg.c erract.leg + leg -o erract.leg.c erract.leg $(CC) $(CFLAGS) -o erract erract.leg.c echo '6*9' | ./$@ | $(TEE) $@.out $(DIFF) $@.ref $@.out debian/patches/2001_makefile_configuration.patch0000644000000000000000000000172612161051023017001 0ustar Description: Makefile configuration Author: Giulio Paci Forwarded: not-needed --- a/Makefile +++ b/Makefile @@ -7,17 +7,17 @@ all : peg leg peg : peg.o $(OBJS) - $(CC) $(CFLAGS) -o $@-new peg.o $(OBJS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@-new peg.o $(OBJS) mv $@-new $@ leg : leg.o $(OBJS) - $(CC) $(CFLAGS) -o $@-new leg.o $(OBJS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@-new leg.o $(OBJS) mv $@-new $@ ROOT = PREFIX = /usr/local BINDIR = $(ROOT)$(PREFIX)/bin -MANDIR = $(ROOT)$(PREFIX)/man/man1 +MANDIR = $(ROOT)$(PREFIX)/share/man/man1 install : $(BINDIR) $(BINDIR)/peg $(BINDIR)/leg $(MANDIR) $(MANDIR)/peg.1 @@ -25,8 +25,8 @@ mkdir -p $(BINDIR) $(BINDIR)/% : % + mkdir -p $(BINDIR) cp -p $< $@ - strip $@ $(MANDIR) : mkdir -p $(MANDIR) @@ -40,7 +40,7 @@ rm -f $(MANDIR)/peg.1 %.o : src/%.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< peg.o : src/peg.c src/peg.peg-c debian/copyright0000644000000000000000000000741612247042107011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Ian Piumarta Upstream-Name: peg Source: http://piumarta.com/software/peg/ Files: * Copyright: 2007-2013, Ian Piumarta License: MIT/X11 Files: debian/* Copyright: 2012-2013 Giulio Paci License: MIT/X11 License: MIT/X11 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, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software. Inclusion of the above copyright notice(s) and this permission notice in supporting documentation would be appreciated but is not required. . THE SOFTWARE IS PROVIDED 'AS IS'. USE ENTIRELY AT YOUR OWN RISK. Files: win/getopt.h Copyright: This file has no copyright assigned. License: public domain This file has no copyright assigned and is placed in the Public Domain. This file is a part of the w64 mingw-runtime package. . The w64 mingw-runtime package and its code is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESSED OR IMPLIED ARE HEREBY DISCLAIMED. This includes but is not limited to warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Files: win/getopt.c Copyright: 2000 The NetBSD Foundation, Inc. This code is derived from software contributed to The NetBSD Foundation by Dieter Baron and Thomas Klausner. 2002 Todd C. Miller License: ISC and BSD-2-clause License: ISC Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/copyright_hints0000644000000000000000000000352012247042107012325 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: ChangeLog Makefile README.txt build-mac.sh build-win.cmd debian/compat debian/control debian/control.in debian/gbp.conf debian/patches/2001_makefile_configuration.patch debian/patches/2002_examples_fixes.patch debian/patches/series debian/peg.links debian/rules debian/source/format debian/source/local-options debian/watch examples/Makefile examples/accept.c examples/accept.peg examples/accept.ref examples/basic.ref examples/bench.bas examples/calc.leg examples/calc.ref examples/dc.c examples/dc.peg examples/dc.ref examples/dcv.c examples/dcv.peg examples/dcv.ref examples/erract.leg examples/erract.ref examples/fibonacci.bas examples/left.c examples/left.peg examples/localleg.leg examples/localleg.ref examples/localpeg.c examples/localpeg.ref examples/rule.c examples/rule.peg examples/rule.ref examples/test.bas examples/test.c examples/test.peg examples/test.ref examples/username.leg examples/wc.leg examples/wc.ref leg.vcxproj leg.vcxproj.filters peg.gyp peg.sln peg.vcxproj peg.vcxproj.filters peg.xcodeproj/project.pbxproj src/leg.c src/peg.peg src/peg.peg-c src/version.h win/libgen.h win/unistd.h Copyright: *No copyright* License: UNKNOWN FIXME Files: LICENSE.txt examples/basic.leg src/compile.c src/leg.leg src/peg.1 src/peg.c src/tree.c src/tree.h Copyright: 2007, Ian Piumarta 2007--2013, Ian Piumarta 2007-2013, Ian Piumarta License: Expat FIXME Files: win/getopt.c Copyright: 2000, The NetBSD Foundation, Inc 2002, Todd C. Miller License: BSD (2 clause) ISC FIXME Files: win/getopt.h Copyright: assigned and is placed in the Public Domain License: UNKNOWN FIXME debian/peg.links0000644000000000000000000000006712161051023010775 0ustar usr/share/man/man1/peg.1.gz usr/share/man/man1/leg.1.gzdebian/control.in0000644000000000000000000000145412247042107011201 0ustar Source: peg Section: devel Priority: optional Maintainer: Giulio Paci Build-Depends: @cdbs@ Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/collab-maint/peg.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/peg.git Homepage: http://piumarta.com/software/peg/ Package: peg Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: recursive-descent parser generators for C This package provides peg and leg, two utilities that read a Parsing Expression Grammar (PEG) and generate a recursive-descent parser for it. . Unlike lex and yacc, peg and leg support unlimited backtracking, provide ordered choice as a means for disambiguation, and can combine scanning (lexical analysis) and parsing (syntactic analysis) into a single activity. debian/watch0000644000000000000000000000015412161051023010206 0ustar version=3 http://piumarta.com/software/peg/ .*peg-(\d[\d\.]*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz)debian/gbp.conf0000644000000000000000000000014612161051023010575 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/changelog0000644000000000000000000000154012264544033011043 0ustar peg (0.1.15-1) unstable; urgency=low * Imported Upstream version 0.1.15 -- Giulio Paci Fri, 10 Jan 2014 01:14:42 +0100 peg (0.1.14-1) unstable; urgency=low * Imported Upstream version 0.1.14. * Move from experimental to unstable. * Drop debian/manpages. (Upstream makefile now takes care of installing the manpages, so it is no longer needed) * Drop 1001_manpage_fixes.patch. * Refresh 2001_makefile_configuration.patch. * Refresh 2002_examples_fixes.patch. * Update copyright. * Bump Standards-Version to 3.9.5. (No changes required) * Add Vcs-Git and Vcs-Browser fields. -- Giulio Paci Mon, 02 Dec 2013 10:58:15 +0100 peg (0.1.9-1) experimental; urgency=low * Initial release. Closes: #666224. -- Giulio Paci Thu, 19 Jul 2012 03:46:09 +0200 debian/source/0000755000000000000000000000000012161051023010455 5ustar debian/source/format0000644000000000000000000000001412161051023011663 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000147212161051023010241 0ustar #!/usr/bin/make -f DEB_MAKE_CHECK_TARGET := check DEB_MAKE_INSTALL_TARGET = install DEB_MAKE_CLEAN_TARGET := spotless DEB_COMPRESS_EXCLUDE_ALL := .leg .peg .c .ref .bas Makefile export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall include /usr/share/dpkg/buildflags.mk include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/makefile.mk DEB_MAKE_EXTRA_ARGS += PREFIX=/usr ROOT=$(DEB_DESTDIR) DEB_TAR_SRCDIR := . DEB_INSTALL_EXAMPLES_peg := examples/* ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) common-build-arch:: PATH="..:$$PATH" $(MAKE) -C examples $(MAKE) -C examples clean endif # Needed by upstream build process CDBS_BUILD_DEPENDS += , dpkg-dev (>= 1.16.1~)