How to use the state< S, R... >
metarule.
#9
-
I'm having trouble understanding the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can have a look at the Switching-Style documentation page, there we also mention In the example, you can also find the basic signature for both the constructor as well as the
This applies if you want to basically ignore all the (outer) states (which might as well be no states). In most cases, however, you want to apply the collected data of your state class to the outer state. Is this sufficient? (We might want to extend the example-section in the future anyways, but don't hold your breath) |
Beta Was this translation helpful? Give feedback.
-
Thanks @d-frey, that's really all that I needed! More examples in the future might be helpful, but for now I think I'll be ok. |
Beta Was this translation helpful? Give feedback.
You can have a look at the Switching-Style documentation page, there we also mention
pegtl/contrib/raw_string.hh
as an example.In the example, you can also find the basic signature for both the constructor as well as the
success()
method:This applies if you want to basically ignore all the (outer) states (which might as well be no states). In most cases, however, you want to apply the collected data of your state class to the outer state.
Is this sufficient? (We might want to extend t…