Skip to content

Better ANTLR parse error wrong-token error message #38

Open

Description

@mmatsa

Here is the current error message:

line 571:0 extraneous input 'rule' expecting {MT_scopes_OPT, ET_scopes_OPT, MT_scope_ZOM, ET_scope_ZOM, ',', ')'} Error(s) while parsing null. Exiting.

Lionel said to add this to an issue. He also says:

this error just say that ‘rule' is unexpected. ANTLR gives the valid tokens, which is of little help
a better way would be to print the token regexes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions