shevek/jcpp

Stripping line comments

Opened this issue · 1 comments

io7m commented

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.

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