2 ms·
Lexers are notoriously complex and difficult to read. The one in Go[1] is also really difficult to grok. [1] - https://code.google.com/p/go/source/browse/src/p
by octo_t 14y ago
Lexers are notoriously complex and difficult to read. The one in Go[1] is also really difficult to grok.
[1] - https://code.google.com/p/go/source/browse/src/pkg/go/scanner/scanner.go#142 https://code.google.com/p/go/source/browse/src/pkg/go/scanne...