2013年9月2日月曜日

開発環境

計算機プログラムの構造と解釈(Gerald Jay Sussman(原著)、Julie Sussman(原著)、Harold Abelson(原著)、和田 英一(翻訳)、ピアソンエデュケーション、原書: Structure and Interpretation of Computer Programs (MIT Electrical Engineering and Computer Science)(SICP))の4(超言語的抽象)、4.1(超循環評価器)、4.1.2(式の表現)、問題 4.10を解いてみる。

その他参考書籍

問題 4.10

コード(BBEdit)

sample.scm

;; 問題の意図をよく理解できなかったのでとりあえずnotを導入してみる

(define (not? exp) (tagged-list 'not))

(define (not-predicate exp) (cadr exp))

(define (eval-not exp)
  (make-if (not-predicate exp) 'false 'true))

0 コメント:

コメントを投稿