Lexical Scanning in Go - Rob Pike video thumbnail

Lexical Scanning in Go - Rob Pike

GoogleFOSSSydney · 13 recommenders · 12 months

Rob Pike shows how the Go text/template lexer is built, using state functions, goroutines and channels. The talk was given at a Google Technology User Group in Sydney in 2011.

Hacker News 读者推荐理由: HN returns to it for years as an elegant introduction to writing a lexer that is easy to follow even without a parsing background.

13 recommenders4 strong recommendations2012–2025
Compilers, interpreters & program analysisC, C++, Rust, Go & systems languages#go#lexer#rob pike#state machines#concurrency#parsing

“It's far more interesting than it sounds, and even if you don't know much about lexing/parsing it's easy to follow.”

查看原始 HN 讨论