
TypeScript compiler pipeline

TypeScript, C# and Turbo Pascal with Anders Hejlsberg
Topic 13 of 21
Published May 13, 2026 · Clip 43:09–48:15 (5:06)
Anders walks through the TypeScript compiler pipeline: lexer/scanner producing tokens, parser building ASTs, a binder attaching symbol tables and building a control flow graph, the type checker (the largest part) verifying semantics, and an emitter that erases types and optionally down-levels newer ECMAScript features. The distinctive part is that the compiler doubles as an IDE service, analyzing perpetually broken programs as you type. To answer questions within ~200 milliseconds even on 500,000-line codebases, everything is lazy, deferred, functional, and reusable—caching ASTs of unedited files and resolving only what's needed—a very different approach than textbooks teach.