Skip to content

Improve parser error experience #1

@theY4Kman

Description

@theY4Kman

Currently, when a Pattern expression fails to parse, only the line and column numbers are given to aid in resolving the issue.

It would be nice if the source Pattern expression were reproduced, with an arrow pointing to the location of the problem. It'd be even nicer if pretty terminal colours were used. Nicer still if a more semantically substantial message than "no viable alternative at input" were displayed.

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