It's very well-explained and the code's easy to read. And you can build on it. I've been able to modify his code to my language spec, use syntactic whitespace instead of braces, utf8 instead of ASCII, my idea of how continuations should work, line numbers in error messages, the ability to define infixes and suffixes, optional typing in functions, my own notion of conditional syntax, and I've just been able to rationalize my code by getting the 1.18 beta version of Go and implementing a generic Set type. It's going good. Recommend. On Wednesday, January 26, 2022 at 3:15:11 PM UTC-8 kziem...@gmail.com wrote:
> I found this books last weeks, on community page of different language and > I consider buying them. But I have a lot thing to learn for Go with > learning materials for free (unicode, UTF-8, Go spec, etc.), that I will > probably postpone this book to the future. If you don't mind, I want to ask > you about your experience of writing interpreter with them. > > Best regards, > Kamil > środa, 26 stycznia 2022 o 20:35:37 UTC+1 timphar...@gmail.com napisał(a): > >> How's it going? I'd just like to talk with someone who's doing the same >> thing, it's kind of a lonely hobby. >> >> I'm just about to start on the actual interpreter, I've got my lexer and >> parser working, and I also have a thing called a "relexer" which is kind of >> an elegant kludge that makes syntactic whitespace work, and an "uberparser" >> which breaks the program down into chunks ... my language is very different >> from Monkey, there's going to be hardly a line of Ball's code left when I'm >> finished, but I couldn't do it without him. >> >> (And for those of you who haven't seen his books, I recommend them, >> they're like crack if crack made you a better and smarter person.) >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/680cea29-9dd7-4f1d-af04-b253fee2c663n%40googlegroups.com.