Conversation

This Tweet was deleted by the Tweet author. Learn more
I've wondered about using a parser on a stream of characters whose result is a stream of tokens to implement lexing, then running that stream of tokens through the regular parser. Maybe cause I'm too lazy to write my own regex stuff for lexing.
4
1
Yeah, this is just how I see it. A tokeniser is a parser from chars to tokens. And you can implement a parser from tokens to something else from that. Or maybe everything is just little compiler phases. I dunno!
3
1
This Tweet is from a suspended account. Learn more