I've been making my way through SICP, I've reached a point where I feel I have to start experimenting with a Lisp compiler. I'm on a Mac so I downloaded LispWorks, I'm too lazy to figure out how this IDE works.
Can someone point me in the direction of a simple command line compiler/interpreter that will work with the SICP?
Name:
Anonymous2011-03-03 9:13
>>2 You want Racket or MIT Scheme
Macro in LISP.
(defmacro aif (cond then else)
`(let ((it ,cond))
(if it ,then ,else)))
"Macro" in Scheme/Racket.
#lang racket
(require racket/stxparam)
(define-syntax-parameter it (lambda (stx) (raise-syntax-error 'anaphora "missed context" stx)))
(define-syntax-rule (aif cond then else)
(let ([temp cond])
(syntax-parameterize ([it (make-rename-transformer #`temp)])
(if temp then else))))
Name:
Anonymous2011-03-03 9:15
>>3 Racket or Chicken for actual coding
Nobody does "actual coding" in Scheme. It's a useless academic language, like Haskell. Real lispers code in CL, Clojure and Arc, never scheme.