Initial import of py-tpg 3.0.0
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, ...). WWW: http://christophe.delord.free.fr/en/tpg/ from Xavier Santolaria <xavier at santolaria dot net>
This commit is contained in:
parent
8344e26d59
commit
e0a98e0729
35
devel/py-tpg/Makefile
Normal file
35
devel/py-tpg/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/12/16 13:11:49 sturm Exp $
|
||||
|
||||
COMMENT= "parser generator in Python"
|
||||
|
||||
DISTNAME= TPG-3.0.0
|
||||
PKGNAME= py-${DISTNAME:L}
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://christophe.delord.free.fr/en/tpg/
|
||||
|
||||
MAINTAINER= Xavier Santolaria <xavier@santolaria.net>
|
||||
|
||||
# LGPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://christophe.delord.free.fr/soft/tpg/
|
||||
|
||||
MODULES= python
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
DOCDIR= ${PREFIX}/share/doc/py-tpg
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-tpg
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCDIR}
|
||||
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/py-tpg/distinfo
Normal file
3
devel/py-tpg/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (TPG-3.0.0.tar.gz) = 7657ed2a42ea18fea874d520d5f8b3ae
|
||||
RMD160 (TPG-3.0.0.tar.gz) = 1dc8b77a8e64218275215c4817076c4ab56b5dfe
|
||||
SHA1 (TPG-3.0.0.tar.gz) = 8fc4ca812b83447f65217e566317c5aa133c1cd4
|
15
devel/py-tpg/pkg/DESCR
Normal file
15
devel/py-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 close 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.
|
52
devel/py-tpg/pkg/PLIST
Normal file
52
devel/py-tpg/pkg/PLIST
Normal file
@ -0,0 +1,52 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/12/16 13:11:49 sturm Exp $
|
||||
bin/tpg
|
||||
lib/python${MODPY_VERSION}/site-packages/tpg.py
|
||||
lib/python${MODPY_VERSION}/site-packages/tpg.pyc
|
||||
share/doc/py-tpg/CSL.tex
|
||||
share/doc/py-tpg/ChangeLog
|
||||
share/doc/py-tpg/calc.tex
|
||||
share/doc/py-tpg/cmmi10-19.png
|
||||
share/doc/py-tpg/cmsy10-21.png
|
||||
share/doc/py-tpg/cmtt10-20.png
|
||||
share/doc/py-tpg/debug.tex
|
||||
share/doc/py-tpg/grammar.tex
|
||||
share/doc/py-tpg/install.tex
|
||||
share/doc/py-tpg/intro.tex
|
||||
share/doc/py-tpg/lexer.tex
|
||||
share/doc/py-tpg/notation.tex
|
||||
share/doc/py-tpg/parser.tex
|
||||
share/doc/py-tpg/tpg.css
|
||||
share/doc/py-tpg/tpg.dvi
|
||||
share/doc/py-tpg/tpg.html
|
||||
share/doc/py-tpg/tpg.pdf
|
||||
share/doc/py-tpg/tpg.tex
|
||||
share/doc/py-tpg/tpg11.html
|
||||
share/doc/py-tpg/tpg13.html
|
||||
share/doc/py-tpg/tpg14.html
|
||||
share/doc/py-tpg/tpg19.html
|
||||
share/doc/py-tpg/tpg6.html
|
||||
share/doc/py-tpg/tpg7.html
|
||||
share/doc/py-tpg/tpg8.html
|
||||
share/doc/py-tpg/tpg9.html
|
||||
share/doc/py-tpg/tpgch1.html
|
||||
share/doc/py-tpg/tpgch10.html
|
||||
share/doc/py-tpg/tpgch11.html
|
||||
share/doc/py-tpg/tpgch2.html
|
||||
share/doc/py-tpg/tpgch3.html
|
||||
share/doc/py-tpg/tpgch4.html
|
||||
share/doc/py-tpg/tpgch5.html
|
||||
share/doc/py-tpg/tpgch6.html
|
||||
share/doc/py-tpg/tpgch7.html
|
||||
share/doc/py-tpg/tpgch8.html
|
||||
share/doc/py-tpg/tpgch9.html
|
||||
share/doc/py-tpg/tpgli1.html
|
||||
share/doc/py-tpg/tpgli2.html
|
||||
share/doc/py-tpg/tpgpa1.html
|
||||
share/doc/py-tpg/tpgpa2.html
|
||||
share/doc/py-tpg/tpgpa3.html
|
||||
share/doc/py-tpg/tutorial.tex
|
||||
share/doc/py-tpg/usage.tex
|
||||
share/examples/py-tpg/calc.pyg
|
||||
share/examples/py-tpg/notation.pyg
|
||||
@dirrm share/examples/py-tpg
|
||||
@dirrm share/doc/py-tpg
|
Loading…
Reference in New Issue
Block a user