I am following the "Programming Languages :Application and Interpretation"
http://www.cs.brown.edu/~sk/Publications/Books/ProgLangs/2007-04-26/plai-2007-04-26.pdf (Page 21)
Now I am working on Page 21,with all the test cases. I could only pass the first one,while all test cases that having "with" fails.I realized that my parser doesnt have statements to cope with "with".
This is my parser at moment:
(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)))])]))
So could you please help is it because this parse function that causes my above tests fail? Thanks.