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

Example abnf2pegtl2.cpp does not throw custom errors. #98

Closed
engelant opened this issue Mar 15, 2018 · 1 comment
Closed

Example abnf2pegtl2.cpp does not throw custom errors. #98

engelant opened this issue Mar 15, 2018 · 1 comment
Assignees

Comments

@engelant
Copy link

I tried out the abnf2pegtl2.cpp example after I couldn't find out at which point the error_control is passed trough the tao::pegtl::parse_tree::parse to tao::pegtl::parse, and it seems it just isn't. Therefor custom error messages are not thrown.

@d-frey d-frey self-assigned this Mar 15, 2018
@d-frey
Copy link
Member

d-frey commented Mar 15, 2018

True. I will enhance parse_tree::parse to accept a base class for the internally generated control class.

@d-frey d-frey closed this as completed in 2b86b8e Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants