C comment removal with JavaCC

I know how to skip these comments using SKIP declarations, but all I need to do is to take a C source and output the same source without comments.

So I declared a token <GENERIC_TEXT: (~[])+ >, that gets copied to output, and comments aren't skipped. I suspect this token takes all the input for itself.

Can someone help me, please?

Thank you

Answer:1

Hello I am just download maven binaries and after set all the environment variable, I am running mvn -version cmd and get this Exception. Exception in thread "main" java.lang.IllegalAccessError: ...

I have created a Recyclerview, with itemobjects, Adapter, viewholder and activity. The Recyclerview works fine. My problem is when an item is clicked from Recyclerview, I want to direct the user to ...

I am Using placeholder %1$d in string.xml for int value, and then I want to display % sign in same TextView so it's &#37;. So I've use it like this. <string name="uploadProgress">%1$d&#...

I have a SWT application which accepts the java type project and do some parsing mechanism on all the file, it was working fine but in large project which have a huge count of file it starts ...