~/talk

Parsing with Zippers (Functional Pearl)

Talkat ICFP 2020 · 2020-08-23..08-26· [compilers-and-language-design]
links:none on file
slides:none on file

Generalizes Huet’s zipper to handle CFG features like alternation, sharing, and cycles, suspends traversal state so derivatives resume instead of retraversing, and pushes memo entries into each expression to drop the global table. Implementation is concise: a 31-line OCaml derivative plus a ~100-line full parser. On the Python 3.4.3 corpus it runs 15,600× faster than original PwD and 3.43× faster than the optimized PwD, while producing full parse trees and avoiding exponential zipper blowup.

AI-written summary · about

  1. 0:00Intro
  2. 0:51Parsing with Derivatives (PWD)
  3. 5:10Parsing with Zippers (PwZ)
  4. 6:01Generalizing the Zipper
  5. 11:45Eliminating Memoization Tables
  6. 12:40Evaluation
  7. 13:55Conclusion
~/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.