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

implement expected() message for compatibility with PegJS #7

Open
krisnye opened this issue Apr 29, 2017 · 0 comments
Open

implement expected() message for compatibility with PegJS #7

krisnye opened this issue Apr 29, 2017 · 0 comments
Assignees

Comments

@krisnye
Copy link
Owner

krisnye commented Apr 29, 2017

From https://pegjs.org/documentation

To indicate an error, the code inside the action can invoke the expected function, which makes the parser throw an exception. The function takes two parameters — a description of what was expected at the current position and optional location information (the default is what location would return — see below). The description will be used as part of a message of the thrown exception.

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

No branches or pull requests

2 participants