Simon Tatham 6/5/2025

In which I have Opinions about parsing and grammars

Read Original

The article presents the author's opinions on parsing and grammars, based on years of experience. It critiques context-free grammars (CFG) for being less declarative than ideal, discusses the need to tailor grammars to parser technology, and advocates for handwritten parsers in production. It also covers parser generation, LR parsers for language design, and handling non-LR languages, concluding with a series of technical rants on the subject.

In which I have Opinions about parsing and grammars

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week