~/talk

The Compiler Pipeline of Pug

Talkat dotJS 2015 · on Monday, 2015-12-07· [javascript, developer-experience]
slides:none on file

Pug is a small compiler with explicit stages and a working pipeline that actually produces output HTML or component code. It claims a clear split: lexer, parser, codegen handle tokenization, AST construction and string generation; loader and linker resolve includes and extends by producing one merged AST; plugins can intercept between stages. The project renames Jade to pug, compiles the same source into HTML or React components, and demonstrates the system working end to end.

AI-written summary · about

  1. 0:00Introduction to compilers
  2. 1:28The lexer phase
  3. 2:47Lexer implementation details
  4. 6:33The parser phase
  5. 9:58The code generation phase
  6. 12:14Modular compiler pipeline
  7. 13:27Advanced architecture benefits
~/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.