kenju's blog

About Programming and Mathematics

Reading Notes of 5th Chapter of "Writing An Interpreter in Go"

Recently I have written a reading node blog post of "Writing An Interpreter in Go".

http://itiskj.hatenablog.com/entry/2018/06/19/083208

After posting the article, I found that the author kindly publish a "lost" chapter - which is about implementing macro features - online. This is really a good chapter, and you can figure out what Macro is, why Macro is necessary in which situations, and how Macro can be implemented.

https://interpreterbook.com/lost/

Here is the PR which implements the macro feature. Just for your information.

https://github.com/kenju/go-monkey/pull/4

By the way, the author has recently tweeted that he gonna publish "Writing Compiler in Go" in the near future. I am really looking forward to it.

https://compilerbook.com/