Introduced Combined Parsing #8
ShadowXBoss696
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Kode was initially following a recursive descent parsing technique to design its parser mechanism, because of its simplicity and readability aspects. But this same technique backfired for expression parsing. This caused us to look for a new way to solve the problems.
According to Bob Nystrom,
This article first sparked the idea in our mind, to combine two or more parsing techniques to solve each part independently and thus provide optimum efficiency.
So, I divided the parsing rules of Kode into 3 parts, namely
Reference: https://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/
Beta Was this translation helpful? Give feedback.
All reactions