JCPP is a complete, compliant, standalone, pure Java implementation of the C preprocessor. It is intended to be of use to people writing C-style compilers in Java using tools like sablecc, antlr, JLex, CUP, and so forth. It has been used to successfully preprocess much of the source code of the GNU C library.
The Java Exorcist is a simple Java syntax extender. By default (with no extensions), it only compiles standard Java code, but with each extension to Exorcist a new Java language construct can be defined or redefined. The Exorcist preserves line numbering at runtime and at compile-time. It can be invoked on the command line and through an ant task.
WriteTarget is a universal text generator based on Bash text substitution. It can be used to generate text in any programming or markup language. The generator does not define its own language; it rather defines several functions, making it possible to use Bash for creating simple or sophisticated templates.
cencode encodes a stream or a file into quoted c-string escape sequences, suitable for use directly in C code. It is a universal alternative to dedicated export formats like XPM, unportable resource forks, linker flags, and Windows resources where dynamic loading of external data is not possible or undesired.