Fun With Parsing
summary
Claims that derivative parsing lifts Brzozowski-style derivatives to context‑free grammars, uses laziness and memoization to avoid infinite recursion, and yields a working Scala implementation with tests. It handles ambiguity rather than forcing grammar contortions, admits embedded regexes, and runs with asymptotic cost O(n^3) while keeping constant factors competitive with LR. Earlier exponential fear is now corrected by recent papers, and the prototype proves the idea practical rather than merely theoretical.
AI-written summary · about
chapters (14)
- 0:00Introduction to parsing
- 1:46Formalizing grammars
- 4:56Recursive descent parsing
- 6:42Grammar constraints
- 8:54Building a recognizer
- 12:27Left recursion issues
- 15:49LR parsing techniques
- 18:54Parsing with states
- 22:14Shift-reduce conflicts
- 25:17Algorithms and ambiguity
- 28:09Graph structured stacks
- 31:50Derivative parsing
- 35:12Functional implementation
- 37:14Parser performance
related talks
58mGoodbye Regex. Hello Parsers!
17mWhen Chomsky Met JavaScript: Exploring the Linguistics(...)
27mParsing, Compiling, and Static Metaprogramming
24mSolving String Constraints with Regex-Dependent Functions through Transducers wi
41mA language in 20 minutes
22mOptimizing Your Code with Babel
56mFunctional Programming with JavaScript
29mReimplement RegExp in JavaScript
