~/talk

A bird's eye view of a parser

Talkat NDC TechTown 2025 · 2025-09-22..09-25· [compilers-and-language-design]
links:none on file
slides:none on file

Explains how parsing actually works by building the data structures: uses Thompson's construction to make finite state machines for regular languages, introduces tokenization before parsing, and shows table-driven context-free parsing built from computed FIRST and FOLLOW sets into an LL parse table plus a stack algorithm that unapologetically accepts or errors. Notes tradeoffs: parser generators like flex, bison, antlr precompute tables but cost memory, handwritten recursive descent trades expressiveness for control, and C++ ambiguity surfaces as the most vexing parse.

AI-written summary · about

  1. 0:00Introduction
  2. 3:46What is a parser
  3. 8:45Formal languages and grammars
  4. 15:31Tokens and lexical analysis
  5. 17:15Chomsky hierarchy
  6. 19:25Regular languages limits
  7. 22:18Context-free languages
  8. 24:50Parsing algorithms and ambiguity
  9. 25:55Parsing with finite state machines
  10. 29:28Thompson's construction for regex to FSM
  11. 32:21Parsing tables for CFG
  12. 34:29First and follow sets
  13. 41:30LL parsing algorithm
  14. 46:09Parser generators trade-offs
  15. 48:58C++ parsing ambiguities
  16. 50:24Why parsers matter
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.