Skip to content

Fix error reporting for one_or_more rule #6

Open
@obenjiro

Description

@obenjiro

Right now if we parse wrong PEG grammar we got this

Unexpected "s" expected (EOF)
1: GRAMMAR test a -> "A"; should_fail -> "B" -
--------------------------^

We should get more informative error message, like this

Unexpected "-" expected (;)
1: GRAMMAR test a -> "A"; should_fail -> "B" -
---------------------------------------------^ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions