How to write an interpreter?

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.