shevek / jcpp

The C Preprocessor as a Java library
http://www.anarres.org/projects/jcpp/
Apache License 2.0
107 stars 36 forks source link

Support extension of preprocessor #33

Open homacs opened 7 years ago

homacs commented 7 years ago

Hello there!

I thought about extending jcpp to support preprocessing of GLSL (OpenGL Shading Language). This would require to add new preprocessor directives such as "#version" and "#extension", which can be basically ignored in my case. I'm currently modifying the classes as I need them but you might be interested in adding the ability to just extend your preprocessor in a more reasonable fashion for such use cases. Such as adding hooks or just subclassing Preprocessor or something similar.

Regards Holger

shevek commented 7 years ago

I'll gladly take patches; I don't have a great deal of time to work on features on this project right now.