~/talk

Using Spirit X3 to Write Parsers

Talkat CppCon 2015 · 2015-09-21..09-25· [compilers-and-language-design]
links:none on file
slides:none on file

Describes building a working Boost.Spirit X3 parser library that targets parsing only, uses C++14 internals (ADL tricks, faster compile and run times) and demonstrates a full JSON parser built with recursive variants, maps and arrays, a whitespace skipper, and minimal semantic actions for Unicode escapes. Shows attribute propagation into std::string, pair and map types, notes V2 performance and recursive-variant issues and points to benchmarks (Kiara Labs) while confirming the X3-based parser compiles and runs successfully.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Why X3
  3. 2:08Concepts
  4. 2:43Ad hoc parsing
  5. 3:45Peg grammar for email
  6. 5:40What are parsers
  7. 8:00Grammars
  8. 9:00Parsers
  9. 9:18X3 parse API
  10. 9:53Types of parses
  11. 10:35Character partials
  12. 11:16Combining parsers
  13. 12:25Sequence operators
  14. 13:26Optional operators
  15. 14:35And predicate
  16. 16:45Expectation
  17. 18:34Lists
  18. 19:58Input String Example
  19. 21:23Rules
  20. 27:19Attributes
  21. 27:57Synthesis
  22. 29:25Parser
  23. 30:44Cosmic Pizza
  24. 31:06Questions
  25. 32:55Attribute parsing
  26. 37:08Example
  27. 44:53Grammar
  28. 51:04Semantic Actions
  29. 53:30Parse
~/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.