JAVACC - Problems if coments lines
Good night.
First, sorry for my english.
I'm a student of Computer Scientist in Brazil.
I'm work in my monografy with JavaCC.
I'm having trouble writing a token that defines several lines of comments, as in C + +. I am using this definition:
< COMENTARIO_VARIAS_LINHAS: "/*" (~[])* "*/" >
But in this case also includes (~[])* the end of the comment "*/",
error occurs and the time to acknowledge the comments of several lines.
If you have any suggestions, thank you now.
Regards,
Saudações,
Douglas Alves