GPP is a general-purpose preprocessor with customizable syntax, suitable for a wide range of preprocessing tasks. Its independence from any one programming language makes it much more versatile than the C preprocessor (cpp), while its syntax is lighter and more flexible than that of GNU m4. There are built-in macros for use with C/C++, LaTeX, HTML, XHTML, and Prolog files.
You can download portable source packages for the current and previous releases on GitHub or nothingisreal.com. You can also browse, download, or clone the development version on GitHub.
To configure, build, and install from the portable source packages,
see the included
INSTALL file. (In brief,
./configure && make && make install should work in most cases.)
For other systems, including Microsoft Windows, you may be able to
INSTALL instructions with the help of a Unix-like
environment such as Cygwin
or MSYS. Failing that, copy the
src/config.h. Open the file and follow the
instructions inside to modify it based on your system's capabilities.
Then use a C compiler to compile the
gpp.c file in the
subdirectory with the macro
HAVE_CONFIG_H defined. On Microsoft
Windows systems, you may need to also define the macro
your compiler does not already define it by default.
Links to binary packages are available on the GPP home page.
Documentation is included in the source package. It is also available online on the GPP home page.