Parsing Expressions · Crafting Interpreters
This chapter marks the first major milestone of the book. Many of us have cobbled together a mishmash of regular expressions and substring operations to extract some sense out of a pile of text. The code was probably riddled with bugs and a beast to maintain. Writing a real parser—one with decent error handling, a coherent internal structure, and the ability to robustly chew through a sophisticated syntax—is considered a rare, impressive skill. In this chapter, you will attain it.
6 Parsing Expressions Grammar, which knows how to control even kings. Molière This chapter marks the first major milestone of the book. Many of us have cobbled together a mishmash of regular expressions and substring operations to extract some sense out of a pile of text. The code was probably riddled with bugs and a beast to maintain. Writing a real parser - one with decent error handling, a coherent internal structure, and the ability to robustly chew through a sophisticated syntax - is considered a rare, impressive skill. In this chapter, you will attain it. "Parse" comes to English from th
Explore this link on the map →related reading
- Laurence Tratt: Which Parsing Approach?tratt.net
- Reading 12: Regular Expressions & Grammarsweb.mit.edu
- 2. Kaleidoscope: Implementing a Parser and AST — LLVM 23.0.0git documentationllvm.org
- Pratt Parsers: Expression Parsing Made Easy - journal.stuffwithstuff.comjournal.stuffwithstuff.com
- Representing Code · Crafting Interpreterscraftinginterpreters.com
- Evaluating Expressions · Crafting Interpreterscraftinginterpreters.com
- Reading 19: Parsersweb.mit.edu
- Shunting yard algorithm - Wikipediaen.wikipedia.org
- Problem Set 3: Memelyweb.mit.edu
- Statements and State · Crafting Interpreterscraftinginterpreters.com
- Introduction · Crafting Interpreterscraftinginterpreters.com
- Control Flow · Crafting Interpreterscraftinginterpreters.com