~/talk

Building a parser in C#, from first principles

Talkat NDC Oslo 2019 · 2019-06-17..06-21· [compilers-and-language-design]
links:none on file
slides:none on file

Builds a hand-rolled C# parser using parser combinators and the Superpower library, showing both character-level and token-driven parsing approaches, a tokenizer builder, and how to compose small parsers into an expression grammar with operator precedence. Implements a duration-and-arithmetic expression language (numbers, 150h style durations, parentheses, keywords like now) that evaluates to DateTime/TimeSpan, includes unit tests for tiny parsers, and demonstrates error reporting improvements and practical debugging/refactoring techniques.

AI-written summary · about

  1. 0:00Start
  2. 4:31Octopus Deploy
  3. 8:47Input and Result
  4. 16:31Text Parser
  5. 19:16Numeric Decimal Double
  6. 23:08The Expression Tree
  7. 31:14Token Driven Pausing
  8. 31:33Token Based Parser
  9. 33:07Tokenizer
  10. 33:29Tokenizer Builder
~/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.