summaryrefslogtreecommitdiff
path: root/devel/py-TPG/DESCR
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2003-09-15 22:08:35 +0000
committerrecht <recht@pkgsrc.org>2003-09-15 22:08:35 +0000
commitb936903f95a0d89753ec6c1216ab93b97a64265d (patch)
tree4bdf09f3e5dfa8976bc1c4c4e1c4f2b3877ce449 /devel/py-TPG/DESCR
parent41614a9ed1c71d1084507af8e0de4ef768ce155b (diff)
downloadpkgsrc-b936903f95a0d89753ec6c1216ab93b97a64265d.tar.gz
Initial import of py-TPG 2.1.6
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.
Diffstat (limited to 'devel/py-TPG/DESCR')
-rw-r--r--devel/py-TPG/DESCR13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/py-TPG/DESCR b/devel/py-TPG/DESCR
new file mode 100644
index 00000000000..f9566ed2f2f
--- /dev/null
+++ b/devel/py-TPG/DESCR
@@ -0,0 +1,13 @@
+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.
+
+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.