4 ms·
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 i
by alex_smart 4y ago
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.
- jchw 4y agoYep, fair enough. As a single-threaded design, I have no particular problems with it.