# $Id$ PortSystem 1.0 PortGroup python 1.0 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. 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 { 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 \ tpgch1.html tpgch10.html tpgch11.html tpgch2.html tpgch3.html \ tpgch4.html tpgch5.html tpgch6.html tpgch7.html tpgch8.html \ tpgch9.html tpgli1.html tpgli2.html tpgpa1.html tpgpa2.html \ tpgpa3.html ${destroot}${prefix}/share/doc/${subport} xinstall -m 644 -W ${worksrcpath} ChangeLog License.txt README THANKS \ ${destroot}${prefix}/share/doc/${subport} } }