Email solutions to cfk@cs.swarthmore.edu by Thursday, Nov 12, 11:59 pm. Provide code and evidence of testing. For the code part of the second problem, just provide parts that are different from the code provided for the first problem.
Here are a few brief details about quasiquote and unquote:
I want your tests to work in your driver-loop for your mini-eval. Here are some interactions in drScheme (not mini-eval):
> (define a 3) > (define b 4) > ,a ; rule 3 unquote: not in quasiquote in: (unquote b) > '(+ a b) (+ a b) > `(+ a b) ; rule 4 (+ a b) > `(+ ,a ,b) ; rule 5 (+ 3 4) > `(+ `(+ ,a ,b) ,b) ; rule 6 (+ `(+ ,a ,b) 4) > `,`,`,a 3Feel free to try other combinations to make sure you understand how quasiquote and unquote work.