Skip to content

Better ANTLR parse error wrong-token error message #38

@mmatsa

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

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