summaryrefslogtreecommitdiff
path: root/devel/py-TPG
AgeCommit message (Collapse)AuthorFilesLines
2003-09-25Add USE_BUILDLINK2 so this picks up a proper dependrecht1-2/+3
This should fix hubertf's bulk build.
2003-09-15Initial import of py-TPG 2.1.6recht4-0/+51
based upon the pkg provided by Michal Pasternak in PR 21982 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.