Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix error reporting for one_or_more rule #5

Closed
obenjiro opened this issue Jun 27, 2016 · 1 comment
Closed

Fix error reporting for one_or_more rule #5

obenjiro opened this issue Jun 27, 2016 · 1 comment
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" -
---------------------------------------------^ 
@obenjiro
Copy link
Member Author

fixed in 26bf50b

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant