Conversation

What's your favorite approach to lexical analysis (i.e. turning a stream of bytes/characters into a stream of tokens)?
14
15
I used to skip lexing too. In my experience, parsing with tokens is a lot nicer than parsing with characters, so I tend not to skip it anymore.
2
5
That said, parser combinators make it easy to do both in a single step, and it's not hard to keep the "token rules" separate from the "parser rules" conceptually. So it's good :)
3
3