« Return to Thread: JAVACC - Problems if coments lines

JAVACC - Problems if coments lines

by Douglas Alves-3 :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: JAVACC - Problems if coments lines