Skip to content

Backtracking when using or() and | operator. #166

Discussion options

You must be logged in to vote

PetitParser is a recursive descent top-down parser. It uses the semantics of parsing expression grammars and as such it picks the first succeeding choice (ordered choice) and never backtracks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by renggli
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