mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
add tpg 0.1.6
Toy Parser Generator -- A parser generator in Python
This commit is contained in:
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
|
@ -671,6 +671,7 @@
|
|||
SUBDIR += tkcvs
|
||||
SUBDIR += tkref
|
||||
SUBDIR += tmake
|
||||
SUBDIR += tpg
|
||||
SUBDIR += trio
|
||||
SUBDIR += tvision
|
||||
SUBDIR += uclmmbase
|
||||
|
|
24
devel/tpg/Makefile
Normal file
24
devel/tpg/Makefile
Normal 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
1
devel/tpg/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (TPG-0.1.6.tgz) = f135ab1930aefcac12ab015fcf9ed14e
|
1
devel/tpg/pkg-comment
Normal file
1
devel/tpg/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Toy Parser Generator -- A parser generator in Python
|
15
devel/tpg/pkg-descr
Normal file
15
devel/tpg/pkg-descr
Normal 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
1
devel/tpg/pkg-plist
Normal file
|
@ -0,0 +1 @@
|
|||
bin/tpg
|
Loading…
Add table
Reference in a new issue