~/talk

Parsing Expression Grammar

Talkat GopherCon 2019 · 2019-07-24..07-27· [compilers-and-language-design]
slides:none on file

Builds a working parser for a plaintext ledger that tracks conference stickers, using a Parsing Expression Grammar implemented with the Go generator pigeon. Grammar parses date, payee, and postings where amounts are eight digits followed by literal STK, accounts are letter sequences optionally colon-delimited, and whitespace/newlines are handled explicitly. Action blocks convert matches into posting structs; repeated transactions become slices via type assertions; pigeon generates three parse functions and the parser runs successfully.

AI-written summary · about

  1. 0:00Start
  2. 1:00Pidgin Parser Expression Grammar Generator
  3. 1:27The Code Block
  4. 1:52Grammar Rules
  5. 2:26Primitive Rules
  6. 2:54Whitespace
~/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.