I am new to antlr4, even though touched antlr3 years ago. I have this JavaScript grammar file here, and it thinks break statement is expression statement, while break statement is defined earlier. How does the rule precedence work?
Here is my grammar file:
The problem is with statement parsing. When it sees the break statement
break;
It parses it as Expression statement. Therefore, the below unit test fails and is marked ignored for now: