Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an easily hackable C preprocessor?

I want to add a small feature to a C preprocessor, but for that, I need one that is easy to understand and can easily be modified. Specifically, I am looking for the following criteria:

  • small codesize
  • well-documented
  • easy to modify
  • free software (I want to be able to distribute the modified code without paying fees or so.)

I have already found tcc, which includes a preprocessor and is fairly small but, as far as I can see, lacks good documentation on how preprocessing is implemented. Should I just try to understand how tcc does it or does a better fit exist?

like image 978
thejh Avatar asked Nov 12 '22 11:11

thejh


1 Answers

What about http://www.blitzbasic.com/Community/posts.php?topic=20396 or http://mcpp.sourceforge.net/

Seems good to me!

like image 191
Saqlain Avatar answered Nov 15 '22 07:11

Saqlain