Skip to content

Improve parser error experience #1

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.

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