shevek / jcpp

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

Stripping line comments #32

Open io7m opened 8 years ago

io7m commented 8 years ago

Hello!

Is jcpp capable of lexing and removing C++ style line comments?

// This is a comment

I can't see anything in the API to do this, and there doesn't seem to be a Feature value that would enable it. I'm seeing line comments in the output of the preprocessor, so presumably it doesn't do it by default, either.

shevek commented 8 years ago

If Feature.KEEPCOMMENTS is off, they should be removed.