~/talk

Lexy: A DSL Library For C++ Parsing

Talkat ACCU 2024 · 2024-04-17..04-20· [compilers-and-language-design, c-and-cpp]
links:none on file
slides:none on file

lexy is a C++ DSL that implements syntax sugar for a handwritten recursive descent parser giving explicit control over alternatives and backtracking, supports Unicode and binary input, and can produce either lossless parse trees or populate custom data structures with no intermediate copies. it demonstrates automatic error recovery, a reader API with peek/bump to request input incrementally, and a continuation model inspired by sender/receiver style continuations. three real compilers are built on it and the interactive web playground shows it working.

AI-written summary · about

  1. 0:00Introduction
  2. 0:32What is Lexy
  3. 1:13Simple Lexy example
  4. 2:38Error recovery
  5. 3:43Lexy backtracking
  6. 5:26Advanced Lexy features
  7. 6:09Parser combinators
  8. 8:14Value production
  9. 10:00Rule composition
  10. 11:23Custom input reader
  11. 13:49Interactive playground
~/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.