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