Also note the amazing architecture behind the Golang template parser/lexer
A talk by Rob Like: https://talks.golang.org/2011/lex.slide
- Grammar documentation: https://golang.org/pkg/text/template/
- Code: https://golang.org/src/text/template/parse/lex.go
Edit: His name is Rob Pike