I've been working on creating a stupid lexer for a few days now... I was stuck on quite a few little bugs. This is the cleanest code I could make in Python. This is only a prototype, so the next step is to implement this in Rust.
Few things I'm already worried about when implementing this in Rust is the big difference between strings in Python and Rust
Also, if you've got a cleaner way to do this, please please please do show.










