Comment

Comment by itsfun10213123

>Parsers typically use regexes for the tokenization stage - indeed, what else would you use?

This is completely wrong. One can also just write their own tokenizer reading one character at a time with a state machine. It's trivial compared to the complexity of the rest of the parser.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton