Git Product home page Git Product logo

sicp's Introduction

如果我们可以立即看到自己修改求值器后的运行结果,那将极大的激发我们的兴趣,所以这里给出第4章4.1节中元循环求值器的完整代码,这样在做练习提时,我们立马就可以看到其效果。

在这里,我们求值器分为6个部分,它们分别是:

eval
apply
data_structure
representation
run_eval
table

需要解释一下的是,table文件是在做练习4.3(即把eval过程重写为数据导向的方式)时需要用到的。由于采用数据导向的eval,可以使得我们添加新的表达式比较方便,所以后面我就默认的使用练习4.3节中重写后的eval(即文件"exercise4.3.rkt"),而不是书中(中文版253页)给出的eval。

运行解释的方式很简单,就打开run_eval文件,然后运行即可(我所用的软件参见这里)。 注意一下,运行时我们需要把这个6个文件放在同一个文件夹下。

sicp's People

Watchers

James Cloos avatar  avatar

Forkers

plumpmath

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.