3 ms·
What is your complaint re precedence in Pratt parsing? The linked code properly implements precedence fairly trivially.
by jakear 4y ago
What is your complaint re precedence in Pratt parsing? The linked code properly implements precedence fairly trivially.
- userbinator 4y agoI think you misunderstood. I'm referring to the original article of this item, not your linked code.
- jakear 4y agoThat’s more a critique of the author than the concept - I gave up midway through the article but order combinators remain a useful tool, particularly as a library. To my eyes, the logic here https://github.com/JacksonKearl/RollDice-Discord/blob/master/src/dice-bot.ts https://github.com/JacksonKearl/RollDice-Discord/blob/master... is much simpler than the equivalent recursive descent code would be. I’d be interested in an article comparing them in greater detail.