summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrecht <recht>2003-09-15 22:08:35 +0000
committerrecht <recht>2003-09-15 22:08:35 +0000
commitd9aed18a6bef9a6834bb19c423daced6ef4e1f71 (patch)
tree4bdf09f3e5dfa8976bc1c4c4e1c4f2b3877ce449 /devel
parent1fcd5347c6924a3d121db68f6c69f7171385c205 (diff)
downloadpkgsrc-d9aed18a6bef9a6834bb19c423daced6ef4e1f71.tar.gz
Initial import of py-TPG 2.1.6
based upon the pkg provided by Michal Pasternak in PR 21982 TPG can very simply write parsers that are usefull for most every day needs (even if it can't make your coffee). With a very clear and simple syntax, you can write an attributed grammar that is translated into a recursive descendant parser. TPG generated code is very closed to the original grammar. This means that the parser works "like" the grammar. A grammar rule can be seen as a method of the parser class, symbols as method calls, attributes as method parameters and semantic values as return values. You can also add Python code directly into grammar rules and build abstract syntax trees while parsing.
Diffstat (limited to 'devel')
-rw-r--r--devel/py-TPG/DESCR13
-rw-r--r--devel/py-TPG/Makefile16
-rw-r--r--devel/py-TPG/PLIST18
-rw-r--r--devel/py-TPG/distinfo4
4 files changed, 51 insertions, 0 deletions
diff --git a/devel/py-TPG/DESCR b/devel/py-TPG/DESCR
new file mode 100644
index 00000000000..f9566ed2f2f
--- /dev/null
+++ b/devel/py-TPG/DESCR
@@ -0,0 +1,13 @@
+TPG can very simply write parsers that are usefull for most every day needs
+(even if it can't make your coffee). With a very clear and simple syntax,
+you can write an attributed grammar that is translated into a recursive
+descendant parser. TPG generated code is very closed to the original
+grammar. This means that the parser works "like" the grammar. A grammar rule
+can be seen as a method of the parser class, symbols as method calls,
+attributes as method parameters and semantic values as return values. You
+can also add Python code directly into grammar rules and build abstract
+syntax trees while parsing.
+
+The first application of TPG is TPG itself. The first (not released) version
+of TPG has been written by hand then was used to generate next versions. Now
+TPG can generate itself.
diff --git a/devel/py-TPG/Makefile b/devel/py-TPG/Makefile
new file mode 100644
index 00000000000..45c616e2702
--- /dev/null
+++ b/devel/py-TPG/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/09/15 22:08:35 recht Exp $
+#
+
+DISTNAME= TPG-2.1.6
+CATEGORIES= devel
+MASTER_SITES= http://christophe.delord.free.fr/soft/tpg/
+
+MAINTAINER= dotz@irc.pl
+HOMEPAGE= http://christophe.delord.free.fr/soft/tpg/
+COMMENT= ToyParserGenerator for Python
+
+PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth
+PYDISTUTILSPKG= # defined
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-TPG/PLIST b/devel/py-TPG/PLIST
new file mode 100644
index 00000000000..2c3f70aa835
--- /dev/null
+++ b/devel/py-TPG/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/15 22:08:35 recht Exp $
+bin/tpg
+${PYSITELIB}/tpg/Release.py
+${PYSITELIB}/tpg/Release.pyc
+${PYSITELIB}/tpg/Release.pyo
+${PYSITELIB}/tpg/__init__.py
+${PYSITELIB}/tpg/__init__.pyc
+${PYSITELIB}/tpg/__init__.pyo
+${PYSITELIB}/tpg/base.py
+${PYSITELIB}/tpg/base.pyc
+${PYSITELIB}/tpg/base.pyo
+${PYSITELIB}/tpg/codegen.py
+${PYSITELIB}/tpg/codegen.pyc
+${PYSITELIB}/tpg/codegen.pyo
+${PYSITELIB}/tpg/parser.py
+${PYSITELIB}/tpg/parser.pyc
+${PYSITELIB}/tpg/parser.pyo
+@dirrm ${PYSITELIB}/tpg
diff --git a/devel/py-TPG/distinfo b/devel/py-TPG/distinfo
new file mode 100644
index 00000000000..b8b44ffbb17
--- /dev/null
+++ b/devel/py-TPG/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/09/15 22:08:35 recht Exp $
+
+SHA1 (TPG-2.1.6.tar.gz) = b8ccbefd41b16514a2ad2a86b97dc9ab6cc3828e
+Size (TPG-2.1.6.tar.gz) = 417009 bytes