home of pgen

Welcome. This is the preliminary homepage of pgen.

pgen is a frontend integration tool for the Java scanner generator JFlex and the parser generator CUP to be used in conjunction with the syntax tree class generator classgen.

It is published under the GPL and available for free dowload from this page.

Download: pgen-0.5.tar.gz (ca. 200 KB)

The distribution contains precompiled classes in lib/pgen.zip and the source code of pgen.

You also need the tools classgen, JFlex and CUP since pgen generates input files for jflex and CUP and the parser specifications usually use classes generated by classgen.

There is currently not yet any documentation for pgen other than its source code (sorry). The syntax specfications of the graph editor generator Grace may serve as examples:

spec.syntax (pgen specification of grace syntax), abstract.syntax (classgen specification of abstract syntax tree)

config.syntax (pgen specification of grace config file syntax)

 

(c) copyright 1999 Gerwin Klein