FreeMarker is a template engine that was originally designed so that servlet-based applications could keep graphical design separate from application logic. The templates provide an easy and highly flexible way to generate any kind of text output (HTML, PostScript, TeX, source code, etc.) from a variety of data sources such as Java objects, Jython objects, XML object models, and more.
FreeCC (formerly KawaDD) is parser/lexer generator written in Java. It is a development fork of the well known JavaCC parser generator originally developed at Sun Microsystems. It has extra features such as "code injection" and more flexible tree-building strategies. Also, it is far easier to customize the code the tool generates, because it uses FreeMarker templates that can be tailored for one's needs.