The Extended C Preprocessor is a preprocessor for C/C++ that is capable of adding operators, directly replacing text, and modifying syntax. It has a built-in uncommenter and C prettyprinter.
To read the "docs", head over to the wiki.
ECPP requires:
- GNU Make
- GCC
To build, run make
, To build the uncommenter alone, run make uncomment
. If you also want to individually use the prettyprinter, run make pretty
.
To run ecpp with the uncommenter and prettyprinter, run out/ecpp sourcefile
.
To run the uncommenter only, run out/uncomment sourcefile
.
To run the prettyprinter only, run out/pretty < sourcefile
.
To install on your system, run ./install /path/to/installation/directory
. It will:
- Build ecpp, the prettyprinter, and the uncommenter (cleanly)
- Copy all the output executables to the specified installation directory
- Add the installation directory to the
PATH
environment variable - Create a rule to add the installation directory to
$PATH
in the current user's.bashrc
(or.bash_profile
)