classgen ?

classgen is a 100% Java, platform-independent class generator. Though it was designed with compiler design in mind it's very compact and flexible specification language allows to generate classes for all purposes. For the compiler designer it offers some more extremely useful features. It has built in support for the visitor design pattern and gets along perfectly with the scanner generator JFlex and the parser generator CUP. Since 1999 classgen is used successfully in research and especially teaching at Technical University of Munich and therefore undergoes constant improvements.
classgen, vcg and all it's future versions are free software and released under GPL.


classgen 1.0 was developed in 1999 by Gerwin Klein at Chair of Computer Science II at the Technical University of Munich. Since then it has undergone some changes which were implemented by Mr. Klein and Mr. Brandl. The current stable release is classgen 1.1.

The last major improvements resulted in visual classgen(vcg). vcg aids the user enormously in designing complex data structures as they appear in compiler design. As you might guess vcg is a "visual" add-on for classgen. It supports the design process with a very intuitive and comfortable visualization. This helps to discover faulty specifications before even generating the respective classes. Since classgen and vcg share the same specification language you can reuse your old specification. Additionally you can use command line based classgen for processing the vcg designed specifications. vcg was developed in 2001 by S. Winter and F. Deißenböck. For further information, documentation and download please visit the vcg homepage.


Our current project is to add another feature to classgen which allows to visualize a parse tree and the ongoing visiting with Java Swing.
Final version of classgen 1.3 is expected late summer 2002.

Where and how?

Please obtain the current release of classgen from the download page. For documentation click here.


Please mail bugs, suggestions and complaints to Sebastian Winter or Florian Deißenböck.

© copyright 2000–2003 Sebastian Winter (, Florian Deissenboeck ( and Gerwin Klein

© copyright 2000–2002 Technical University of Munich, Germany Logo