This project is originally created for preprocessing Java code, but I
recently realized that you are allowed to run cpp on Java code
Feel free to do this in C. Nothing's implemented yet but work plan
Unlike those monolithic GNU softwares, my project aims to be modular. Builtin modules are listed below:
- Define: Deals with
#definedirective - include: Deals with
#includedirective - Comment: Strips comments out
- Parsing command line arguments
- Calling modules to expand macros
- Check if all macros are expanded
- If not, jump to step 2
- Define macro using
#define - Include other files using
#include - Undefine macro using
#undef - Strip out comments
- Condition macro like
#if - Optimization for Java
- Builtin macros for conveniencing x86 Assembly Language.
- Macros look like functions