~/talk

Generating Parsers in C++ with Maphoon - Part 1 of 2

Talkat CppCon 2022 · 2022-09-11..09-16· [rust]
links:none on file
slides:none on file

Tool generates C++17 parser generator code and runtime automata, producing LALR parsers plus a tokenizer that mixes generated automata with handwritten token functions (interface named read_and_classify). Demonstrates building nondeterministic automata, determinizing and minimizing them, emitting C++ code for speed (automata-to-code emission). Claims cover handling nested comments, Python‑style indentation edge cases, runtime operator definitions and tunable error messages, and reports performance comparable to handwritten tokenizers and useful visualizations for teaching.

AI-written summary · about

  1. 0:00Intro
  2. 0:30About Kazakhstan
  3. 2:26How did it start
  4. 4:24Parser generators
  5. 5:38What is parsing
  6. 7:12Tokenizing
  7. 8:56Why tokenizing
  8. 9:51Lack of flexibility
  9. 12:32Flexibility
  10. 14:25FileReader
  11. 16:00Token Recognition
  12. 17:17Try Identifier
  13. 19:39Automata
  14. 21:54Formal Verification
  15. 24:04States
  16. 28:39Lambda
  17. 29:25Auto
  18. 30:54deterministic
  19. 32:20extra words
  20. 33:18Classifier
  21. 38:41Replacing the code
  22. 39:23Conclusion
~/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.