Hi Konstantin,

Isn't there a comment remover already?  Perhaps we rely on CPP to do this.

1. Are there any use cases when removing a specific comment can make file 
"uninteresting", or it's safe to remove all comments at one pass?
2. Is it better to use simple regexps for removing comments, or 
Regexp::Common::comment should be used?

If it doesn't exist, a pass to remove all comments would be excellent. Of course, if the resulting variant is uninteresting, C-Reduce will no accept it.

I doubt that it's worth writing this as a fine-grained pass, though I believe I have seen one or two cases where that would have been useful (buffer overflows in the lexer/parser I think).

John

Reply via email to