From 8fff289bbbe64a0ff502d177958707ddf1f025cc Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 15 Mar 2002 12:24:15 +0000 Subject: add tpg 0.1.6 Toy Parser Generator -- A parser generator in Python --- devel/tpg/Makefile | 24 ++++++++++++++++++++++++ devel/tpg/distinfo | 1 + devel/tpg/pkg-comment | 1 + devel/tpg/pkg-descr | 15 +++++++++++++++ devel/tpg/pkg-plist | 1 + 5 files changed, 42 insertions(+) create mode 100644 devel/tpg/Makefile create mode 100644 devel/tpg/distinfo create mode 100644 devel/tpg/pkg-comment create mode 100644 devel/tpg/pkg-descr create mode 100644 devel/tpg/pkg-plist (limited to 'devel/tpg') diff --git a/devel/tpg/Makefile b/devel/tpg/Makefile new file mode 100644 index 000000000000..87116555ff8f --- /dev/null +++ b/devel/tpg/Makefile @@ -0,0 +1,24 @@ +# ex:ts=8 +# Ports collection makefile for: tpg +# Date created: Mar 15, 2002 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= tpg +PORTVERSION= 0.1.6 +CATEGORIES= devel python +MASTER_SITES= http://christophe.delord.free.fr/en/tpg/ +DISTNAME= ${PORTNAME:U}-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= ports@FreeBSD.org + +USE_PYTHON= yes +NO_BUILD= yes + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/TPG.py ${PREFIX}/bin/tpg + +.include diff --git a/devel/tpg/distinfo b/devel/tpg/distinfo new file mode 100644 index 000000000000..93d5292cdf09 --- /dev/null +++ b/devel/tpg/distinfo @@ -0,0 +1 @@ +MD5 (TPG-0.1.6.tgz) = f135ab1930aefcac12ab015fcf9ed14e diff --git a/devel/tpg/pkg-comment b/devel/tpg/pkg-comment new file mode 100644 index 000000000000..6dd2c45d827d --- /dev/null +++ b/devel/tpg/pkg-comment @@ -0,0 +1 @@ +Toy Parser Generator -- A parser generator in Python diff --git a/devel/tpg/pkg-descr b/devel/tpg/pkg-descr new file mode 100644 index 000000000000..af5c43cb6b3e --- /dev/null +++ b/devel/tpg/pkg-descr @@ -0,0 +1,15 @@ +Toy Parser Generator is a lexical and syntactic parser generator for Python. +This generator was born from a simple statement: YACC is to complex to use +in simple cases (calculators, configuration files, small programming +languages, ...). + +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. + +WWW: http://christophe.delord.free.fr/en/tpg/ diff --git a/devel/tpg/pkg-plist b/devel/tpg/pkg-plist new file mode 100644 index 000000000000..d632c01768a1 --- /dev/null +++ b/devel/tpg/pkg-plist @@ -0,0 +1 @@ +bin/tpg -- cgit v1.2.3