Writing an Eval Procedure in Scheme?

Posted by Planeman on Stack Overflow See other posts from Stack Overflow or by Planeman
Published on 2010-04-12T22:17:40Z Indexed on 2010/04/12 22:22 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

My problem isn't with the built-in eval procedure but how to create a simplistic version of it. Just for starters I would like to be able to take this in '(+ 1 2) and have it evaluate the expression + where the quote usually takes off the evaluation.

I have been thinking about this and found a couple things that might be useful: Unquote: , (quasiquote) (apply)

My main problem is regaining the value of + as a procedure and not a symbol. Once I get that I think I should just be able to use it with the other contents of the list.

Any tips or guidance would be much appreciated.

© Stack Overflow or respective owner

Related posts about Scheme

Related posts about eval