add tpg 0.1.6

Toy Parser Generator -- A parser generator in Python
This commit is contained in:
Ying-Chieh Liao 2002-03-15 12:24:15 +00:00
parent 3045f57804
commit 8fff289bbb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56148
6 changed files with 43 additions and 0 deletions

View file

@ -671,6 +671,7 @@
SUBDIR += tkcvs SUBDIR += tkcvs
SUBDIR += tkref SUBDIR += tkref
SUBDIR += tmake SUBDIR += tmake
SUBDIR += tpg
SUBDIR += trio SUBDIR += trio
SUBDIR += tvision SUBDIR += tvision
SUBDIR += uclmmbase SUBDIR += uclmmbase

24
devel/tpg/Makefile Normal file
View file

@ -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 <bsd.port.mk>

1
devel/tpg/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (TPG-0.1.6.tgz) = f135ab1930aefcac12ab015fcf9ed14e

1
devel/tpg/pkg-comment Normal file
View file

@ -0,0 +1 @@
Toy Parser Generator -- A parser generator in Python

15
devel/tpg/pkg-descr Normal file
View file

@ -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/

1
devel/tpg/pkg-plist Normal file
View file

@ -0,0 +1 @@
bin/tpg