~/lightning

A variant of recursive decent parsing

Lightningat Meeting C++ 2017 · 2017-11-09..11-11· [frontend-architecture]
slides:none on file

Claims a tiny, readable recursive‑descent parser replaces bulky generated code by using std::variant and visit with an overloaded lambdas via inheritance helper. The repo shows a working calculator parser that handles numeric literals, identifiers, store/drop keywords and parentheses, looks up variables, and throws on syntax errors. Code size and debuggability are the selling points: the parser is short, easy to test, and the example is implemented and runnable (source on GitHub).

AI-written summary · about

  1. 0:00The problem with parsers
  2. 0:53Lexer and token challenges
  3. 1:41Introducing std::variant
  4. 2:47The limitation of visit
  5. 3:36Lambda visitor pattern
  6. 6:09Defining token types
  7. 7:18Implementing the parser
  8. 8:30Conclusion and applications
~/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.