What is the most simple way to make my parser respect (ignore) C-style comments. I'm interested in both comment types, though a solution for only one type is also welcome.
I'm currently simply extending JavaTokenParsers.
What is the most simple way to make my parser respect (ignore) C-style comments. I'm interested in both comment types, though a solution for only one type is also welcome.
I'm currently simply extending JavaTokenParsers.
You can use a simple regular expression, as long as you don't nest comments. Put it inside
whiteSpace
: