I recommend the interpreter book [https://interpreterbook.com/], which isn't entirely free of charge however.
On the other hand, it was enough to get me off the ground for my lexer and write a parser that wasn't entirely dumb.
On the other hand, it was enough to get me off the ground for my lexer and write a parser that wasn't entirely dumb.
And just FYI, the interpreter we build in the book ends up with ~3900 lines, including the full test suite.