How to write an interpreter?
Some of my titles start with the same name. They are not because I am superior to others, but because the two are talking about the same thing.
To put it simply, after I learned the first three chapters of eopl, I took out the construction process of the interpreter for the homework and introduced it to my colleagues, start with the two simplest syntax rules (enter a string and return a number), and gradually complete all the syntax of ''let-lang'' described in the book:
In this simple interpreter, terms such as AST, environement, and closure will help you understand some of the problems that often plague you. For example, why cannot I write only one print in pyhton lambda.
This slides is written in beamer, so it is only in pdf format. If it is helpful to you, you are welcome to use it. If there is an error in it, you can mail me: sockpuppet.lea@gmail.com.
Sildes: address 1 address 2