P is a text preprocessor designed for Pandoc (and more generally Markdown and reStructuredText). PP implements:
- macros
- literate programming
- GraphViz, PlantUML and ditaa diagrams
- Bash, Cmd, PowerShell, Python and Haskell scripts
Apps similar to GNU M4 include PP - A generic Preprocessor, which is free and open source. Other options are GCC C Preprocessor (cpp), Gema, Filepp and GPP. In total there are eight apps like GNU M4 for Windows, Linux and Mac.
P is a text preprocessor designed for Pandoc (and more generally Markdown and reStructuredText). PP implements:
The C preprocessor implements the macro language used to transform C, C++, and Objective-C programs before they are compiled. It can also be useful on its own.
Gema is a general purpose text processing utility based on the concept of pattern matching. In general, it reads an input file and copies it to an output file, while performing certain transformations to the data as specified by a set of patterns defined by the user.
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...
A variation on the C preprocessor that (1) works on multiple languages and (2) encodes preprocessor statements as comments in that language so syntax correctness is not broken.
The build preprocessor is similar to the C preprocessor, meant for processing files which have no built-in preprocessor such as XUL and JavaScript documents.