jcpp is a preprocessor software for Java language that processes C-style code before compilation.
This tool is particularly useful for those writing C-style compilers in Java using tools such as sablecc, antlr, JLex, CUP, and others. It has already been used successfully to preprocess a significant portion of the GNU C library's source code.
The license for jcpp is GPL-2, but less restrictive licenses are also available upon request. The developer encourages users to reach out to request such licenses so that they can keep track of who is using the tool and for what purpose.
To use jcpp, all you need is Java 1.5 or higher. In the latest release, the set of warnings has been improved and the license has been changed to Apache-2.0. If you need a reliable and robust Java C preprocessor, give jcpp a try.
Version 1.2.2: N/A