Does the JavaCC (.jj) format support comments?

59 Views Asked by At

Can comments be added to a JavaCC (.jj) specification file? What style should they be?

1

There are 1 best solutions below

0
Joshua Goldberg On

Yes, the JavaCC format supports Java-style comments. E.g.,

White space in the grammar files also follows the same conventions as for the Java programming language. This includes the syntax for comments. Most comments present in the grammar files are generated into the generated parser/lexical analyzer.