Skip to content

What algorithm does PEST use? #1052

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

You must be logged in to vote
  • pest's grammar isn't a vanilla PEG but has a few ad-hoc extensions (such as the symbol stack operations)

  • it's more or less using a plain recursive descent, not the Packrat parsing algorithm. According to @dragostis , even though Packrat has better theoretical bounds, it had a bigger performance overhead for common grammars, so it wasn't worth it.

Replies: 1 comment

Comment options

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