[plt-scheme] Chapter 1 of Programming Languages: Application and
Interpretation Shriram Krishnamurthi
Emeka
emekamicro at gmail.com
Fri Feb 20 14:06:35 EST 2009
I use DrScheme , I set it to Advanced Student(may be I didn't do it well),
while it seems the book used something else(I may be wrong too). Could
someone who has read this book before instruct me on what to do? Basically,
how to get the codes snippet of Chapter 1 up and runnig.
(define (parse sexp)
(cond
[(number? sexp) (num sexp)]
[(list? sexp)
(case (first sexp)
[(+) (add (parse (second sexp))
(parse (third sexp)))]
[(-) (sub (parse (second sexp))
(parse (third sexp)))])]))
Regards,
Emeka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.cs.brown.edu/pipermail/plt-scheme/attachments/20090220/a2c75045/attachment.html
More information about the plt-scheme
mailing list