Skip to content

PEGTL Control Classes and Custom Error Messages #73

Answered by d-frey
w0o0o0oah asked this question in Q&A
Discussion options

You must be logged in to vote

a) Please learn how to format you messages properly. I edited yours, see how the source looks now.
b) If you have multiple files, tell us the names and in the error message, tell use which file and line it refers to.
c) You did not qualify control. In main you are outside of namespace hello, so you need to qualify hello::control when calling parse:

parse< hello::grammar, hello::action, hello::control >( in, name );
//                                    ^^^^^^^

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by d-frey
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #73 on December 09, 2020 10:28.