start rule: <select from navigator or grammar> in antlr plugin in IntelliJ

Dims picture Dims · Apr 7, 2016 · Viewed 7.9k times · Source

I have created simple grammar file in IntelliJ but failing to see any effect of Antlr plugin. When I open file in ANTLR preview, it says

start rule: <select from navigator or grammar>

enter image description here

What is start rule? How to select it from navigator? How to select it from grammar?

Answer

Groostav picture Groostav · Apr 15, 2016

So I haven't found a way to mark permanently one rule as a start rule, however in the right-click context menu for the grammar, there are two options that relate to ANTLR, one of them is 'test rule xyz', that did the job:

antlr context menu items