~/talk

Writing a parser in Go, the C way

Talkat GoDays 2020 · 2020-01-21..01-23· [compilers-and-language-design, go]
links:none on file
slides:none on file

Shows a concrete proof‑of‑concept parser for a tiny language implemented with YACC + Go, and the migration steps used to replace Prometheus’s query parser (PromQL query parser). Demonstrates the actual grammar fragments, lexer/parser split, and integration points with Go code, reports that the rewrite uncovers multiple bugs across components and produces better error messages and clearer semantics, and outlines practical steps to harden the parser for real‑world use.

AI-written summary · about

  1. 0:00Introduction to parser writing
  2. 6:32C-style parsing in Go
  3. 14:34Operator handling in parsers
  4. 21:27Case studies and examples
  5. 26:22Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.