~/talk

Applicative Parsing with Documentation

Talkat Functional Swift Conference 2017 · on Saturday, 2017-04-15· [swift]
slides:none on file

Builds an applicative dict parser in Swift that pairs each field parser with a human-facing API description so JSON parsing and docs stay in sync. Uses plain JSON dictionaries, a Parameter/NamedParameter abstraction, a DictParser with pure/apply for applicative composition, runtime validators (e.g. nonzero ID, email contains @), and optional-field support. The code compiles and parsing+documentation update together, preventing stale docs; a small Xcode hiccup occurs but features work. auto-generated docs tied to parser

AI-written summary · about

  1. 0:00Introduction to problem
  2. 1:50Building parsing infrastructure
  3. 5:51Defining parameter types
  4. 11:03Applicative functors for parsing
  5. 16:31Combining parsers with apply
  6. 19:21Adding validation rules
  7. 22:10Supporting optional parameters
  8. 26:46Refactoring for clarity
  9. 30:46Benefits of applicative parsing
  10. 31:31Q&A and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.