Path to this page:
./
devel/py-TPG,
ToyParserGenerator for Python
Branch: pkgsrc-2008Q4,
Version: 2.1.6nb1,
Package name: TPG-2.1.6nb1,
Maintainer: pkgsrc-usersTPG 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.
The first application of TPG is TPG itself. The first (not released) version
of TPG has been written by hand then was used to generate next versions. Now
TPG can generate itself.
Required to run:[
lang/python23]
Master sites:
SHA1: b8ccbefd41b16514a2ad2a86b97dc9ab6cc3828e
RMD160: 44e4b8cb96bc8f297117d921c5ea28c5e49ae025
Filesize: 407.235 KB
Version history: (Expand)
- (2009-01-06) Package added to pkgsrc.se, version TPG-2.1.6nb1 (created)