~/talk

Building a small Language with Go for fun

Talkat GopherCon UK 2021 · 2021-10-25..10-27· [compilers-and-language-design]
links:none on file
slides:none on file

Builds a tiny language to add union (sum) types to Go and implements a handwritten top‑down parser (starts from an EBNF attempt and then throws it away) that tokenizes with go/scanner, emits go/ast nodes, and runs the standard go/types checker. Generates Go source, injects imports and helper structs to represent unions, runs the generated code, and uses static analysis on the produced AST to enforce constraints — a working end‑to‑end pipeline.

AI-written summary · about

  1. 0:00Start
  2. 0:23Building a Small Language with Go for Fun
  3. 10:13Write the Parser
  4. 11:43For Loops
  5. 14:41Type Checking
  6. 22:30Go Parser
~/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.