Skip to content
Permalink
Browse files

py-tpg: add modeline, adjust whitespace

  • Loading branch information
reneeotten committed Apr 15, 2019
1 parent 9b98c16 commit 2bb7e80ae7fad453878280ebfbd592f47edb8b3f
Showing with 28 additions and 26 deletions.
  1. +28 −26 python/py-tpg/Portfile
@@ -1,34 +1,36 @@
PortSystem 1.0
PortGroup python 1.0
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

name py-tpg
version 3.0.4
license LGPL-2.1+
platforms darwin freebsd
supported_archs noarch
maintainers nomaintainer
description lexical and syntactic parser generator for Python
long_description Toy Parser Generator is a lexical and syntactic parser \
generator for Python. 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.
PortSystem 1.0
PortGroup python 1.0

homepage http://cdsoft.fr/tpg/
master_sites ${homepage} http://distfiles.macports.org/python
distname TPG-${version}
checksums md5 050352f0c70f627ab843a8b3eae25552
name py-tpg
version 3.0.4
license LGPL-2.1+
platforms darwin freebsd
supported_archs noarch
maintainers nomaintainer
description lexical and syntactic parser generator for Python
long_description Toy Parser Generator is a lexical and syntactic parser \
generator for Python. 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.

python.versions 27
homepage http://cdsoft.fr/tpg/
master_sites ${homepage} http://distfiles.macports.org/python
distname TPG-${version}
checksums md5 050352f0c70f627ab843a8b3eae25552

python.versions 27

if {${name} ne ${subport}} {
post-destroot {
post-destroot {
xinstall -m 644 -W ${worksrcpath}/doc cmmi10-19.png cmsy10-21.png \
cmtt10-20.png tpg.css tpg.html tpg11.html tpg13.html \
tpg14.html tpg19.html tpg6.html tpg7.html tpg8.html tpg9.html \

0 comments on commit 2bb7e80

Please sign in to comment.
You can’t perform that action at this time.