在今天xkcd site,下面出現了一個笑話在< SCRIPT LANGUAGE =「方案」 >標籤這個xkcd代碼是做什麼的?
那麼,是什麼下面的代碼做/代表什麼?
(define
(eval exp env)
(cond ((self-evaluating? exp) exp)
((variable? exp)
(lookup-variable-value exp env))
((quoted? exp)
(text-of-quotation exp))
((assignment? exp)
(eval-assignment exp env))
((definition? exp)
(eval-definition exp env))
((if? exp)
(eval-if exp env))
((lambda? exp)
(make-procedure
(lambda-parameters exp)
(lambda-body exp) env))
((begin? exp)
(eval-sequence (begin-actions exp) env))
((cond? exp)
(eval (cond->if exp) env))
((application? exp)
(apply (eval (operator exp) env)
(list-of-values (operands exp) env)))
(else (error "Common Lisp or Netscape Navigator 4.0+ Required" exp))))
喜歡onHover選項 – Tom 2009-10-26 17:28:54
找到原始(永久)這個XKCD頁的任何機會呢? – 2016-01-04 07:44:45