Antlr - Comments

About

There are single-line, multiline, and Javadoc-style comments:

Syntax

/** This grammar is an example illustrating the three kinds
 * of comments.
 */
grammar T;
/* a multi-line
  comment
*/

/** This rule matches a declarator for my language */
decl : ID ; // match a variable name

Powered by ComboStrap