Skip to content

Parser API: pattern match inner pairs as slice #722

Answered by tomtau
shishkin asked this question in Q&A
Discussion options

You must be logged in to vote

Pair's parts are private, so it's not possible to match on them directly. As for "matching parser results convenience", I'd suggest checking out some of the existing crates, such as pest_consume or pest-ast.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomtau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants