The lexer is entirely single-threaded, as in the original Rob Pike talk.
>I find the design to be elegant for sure, but I also don’t mind handwriting parsers in general.
But this is a hand-written parser! Just using function pointers to store the state instead of using an enum and switch statements.