~/talk

Understanding parser combinators: a deep dive

slides:none on file

Builds a tiny parser-combinator library in F# from scratch (about 500 lines total) that exposes basic combinators: sequence, choice, map, many/optional and helpers for labelled errors and line/column tracking. Uses those to implement a full-featured JSON parser (about JSON parser 295 lines), including strings, numbers, arrays, objects, booleans and null, with backtracking and readable error messages; demo shows it parses real JSON and reports exact failure locations, though it is not optimized for speed.

AI-written summary · about

  1. 0:00Intro
  2. 1:47Outline
  3. 2:21What is a Combinator
  4. 3:50Why parse
  5. 5:15Simple parser
  6. 13:48Combinators
  7. 14:51Map Combinator
  8. 17:32Fix Operators
  9. 18:08Demo
  10. 20:54Compound Combinators
  11. 24:56Parsing
  12. 26:31More combinators
  13. 30:50Improving the parser
  14. 33:34Building a JSON parser
  15. 34:52Null
  16. 36:49Strings
  17. 38:22List of passes
  18. 40:17Unicode character
  19. 42:00Integers
  20. 44:36Combine
  21. 45:00Parse
  22. 50:13Summary
  23. 52:21Outro
~/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.