According to https://github.com/antlr/antlr4/issues/118, incorrect error message might return if the start rule does not contain an explicit EOF transition. It is better to add EOF for the first rule in grammar.
- links to
According to https://github.com/antlr/antlr4/issues/118, incorrect error message might return if the start rule does not contain an explicit EOF transition. It is better to add EOF for the first rule in grammar.