@iska @vector1dev@mstdn.vector1.dev
This looks like the book you need: https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniques,_and_Tools Surprisingly, I've never read it (SICP too π), but it's regarded by many as an essential book on the topic.
Also, lexical analysis might seem complex, but when you see how it's done in practice β not so much, there are good examples both in C book and in Go book β not your languages of choice, but they demonstrate that it's not that hard really well.