~/talk

Boost.Parser (Part 2 of 2) - A Parser Combinator Library for C++

Talkat C++Now 2024 · 2024-04-29..05-03· [compilers-and-language-design]
links:none on file
slides:none on file

Boost.Parser is a Boost candidate library for C++17+ that combines Spirit2 and X3 ideas to produce a parser-combinator library with concrete features: Boost.Parser provides typed rules (no attribute destructuring across rule boundaries), built‑in expectation‑point diagnostics (throws exceptions with file/line/column and caret), Unicode-aware parsing for char/char32_t (but no normalization), a JSON example with max nesting default 512, callback parsing for SAX-style tests, trace output to stdout, search/replace adapters, and planned optimizations like packrat caching. It compiles and runs; diagnostics and debugging aids work as shown.

AI-written summary · about

  1. 0:00Introduction
  2. 0:23Rules in Boost.Parser
  3. 11:33Higher order parsers
  4. 20:00Directives in parsers
  5. 28:05Unicode support
  6. 41:06Diagnostics and error reporting
  7. 56:07Debugging tools
  8. 1:01:11Debugging semantic actions
  9. 1:14:31Extended JSON example
  10. 1:32:07Callback parsing
  11. 1:37:30Future work and Q&A
~/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.