5 comments

[ 3.1 ms ] story [ 22.5 ms ] thread
Author of the book here. If you have any questions: feel free to ask!
Is the book really beginner friendly?

Do I need to have any pre knowledge about Lexers and Parsers and the Go AST package https://golang.org/pkg/go/ast/ to understand the book?

No, not at all. That's precisely what the book is about: what is a lexer? how do I build one? what is a parser? what is a recursive descent parser?

I tried to make the code as easy to understand as possible, always thinking: "would someone who's never written an interpreter understand this?"

Great thats exaclty what I always wanted to know about. I'm sure I'll buy the book! I always wanted to know howto implement an own little scripting language which could be used inside Go projects.
Well, I couldn't describe a better use case, even if I tried. Check out the free sample, which shows how to build a lexer/scanner/tokenizer.