News for hackers. Stuff that matters.
Re:We Need to Know LR and Recursive Descent Parsing Techniques by sshine on Tuesday January 17, 2023 @06:53AM (#34411443)
> we should be aware of "big hammer" solutions

Parser combinators have become my preferred "medium hammer" strategy:

Sometimes you get a more readable parser than if you use regex, even though your language is regular.

Sometimes you get corner cases where you have to think and an LR parser generator wouldn't require thinking.

On the other hand, you have one tool that almost always does the job well, is readable, and embeds nicely.

There are no comments on this comment yet.