4 ms·
If you don't think you're missing out, you're not. I think it could be preference. I just prefer for a lexer to be responsible for handling characters, and a p
by gavinhoward 4y ago
If you don't think you're missing out, you're not. I think it could be preference.
I just prefer for a lexer to be responsible for handling characters, and a parser be responsible for handling tokens. So Single Responsibility Principle.