analyze - ;METACIRCULAR EVALUATOR THAT SEPARATES ANALYSIS...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
;;;;METACIRCULAR EVALUATOR THAT SEPARATES ANALYSIS FROM EXECUTION ;;;; FROM SECTION 4.1.7 OF STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS ;;;;Matches code in ch4.scm ;;;;This file can be loaded into Scheme as a whole. ;;;;**NOTE**This file loads the metacircular evaluator of ;;;; sections 4.1.1-4.1.4, since it uses the expression representation, ;;;; environment representation, etc. ;;;; You may need to change the (load . ..) expression to work in your ;;;; version of Scheme. ;;;;Then you can initialize and start the evaluator by evaluating ;;;; the expression (mce). ;;**implementation-dependent loading of evaluator file ;;Note: It is loaded first so that the section 4.1.7 definition ;; of eval overrides the definition from 4.1.1 ;; modified 8/2/2000 by jeremy to add path (load "~cs61a/lib/mceval.scm") ;;;SECTION 4.1.7 (define (mc-eval exp env) ((analyze exp) env)) (define (analyze exp) (cond ((self-evaluating? exp) (analyze-self-evaluating exp)) ((quoted? exp) (analyze-quoted exp))
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/30/2010 for the course EECS 21281 taught by Professor Harvey during the Spring '10 term at Berkeley.

Page1 / 2

analyze - ;METACIRCULAR EVALUATOR THAT SEPARATES ANALYSIS...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online