Creating a new Grammar file

To create a new grammar file-

  1. Right-click on the package where you want to create the file.
  2. Select New->ANTLR Grammar.
  3. In the dialog that comes up, type the name of the grammar file.