Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error reporting for one_or_more rule #6

Open
obenjiro opened this issue Jun 27, 2016 · 0 comments
Open

Fix error reporting for one_or_more rule #6

obenjiro opened this issue Jun 27, 2016 · 0 comments
Labels

Comments

@obenjiro
Copy link
Member

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" -
---------------------------------------------^ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant