Commenting Operator (!)

This command is optional.

The ! character is used to indicate comments. All characters that follow the ! character on the same line are interpreted as comment. Comments are used to annotate the grammar rules as necessary to explain the parsing grammar. Comments are not interpreted by Open Parser.

Example

! This rule checks to see if a token matches the Given

! Names table.

<GivenName>= @Table("Given Names");

To use this command:

  1. Position the cursor where you want the command inserted.
  2. Double-click ! in the Commands list.
  3. Type the comment text on the same line following the ! character.