4 ms·
Thanks to your book I overcame my fear of formal grammars and wrote three essential LL(1) parsers for my latest project. Where before I haphazardly ignored fea
by jchook 7y ago
Thanks to your book I overcame my fear of formal grammars and wrote three essential LL(1) parsers for my latest project.
Where before I haphazardly ignored features like quoted strings or escaped characters, I now have extremely high confidence in my parsers’ completeness and correctness. Also the error reporting rocks and the code is easy to read!
Thank you!!!
- danso 7y agoIf you are at liberty to share, were these parsers for a specific domain? I'm curious about how to decide when creating a domain-specific grammar/language is worth it for any given project.
- jchook 7y agoIn my case I basically just transliterated RFC XXXX grammars from ABNF to code. I ended up really enjoying it. I have seen problems that probably do merit a special DSL or language, though I find it somewhat unfortunate if you need such a thing. One example that comes to mind, Soul lang: https://news.ycombinator.com/item?id=19791154 https://news.ycombinator.com/item?id=19791154