Translated the first section of SICP Chapter #4 into Alice - the
eval/apply interpreter. Not sure if I'm on the right track, but since
the remainder of the book leverages off the interpreter, I thought I'd
ask for suggestions on cleaning up the code. The translation can be
found at:
http://www.codepoetics.com/wiki/index.php?title=Topics:SICP_in_other_languages
The main problem that I see (beyond not having lex/parse) is that I'm
not sure how to handle "let". Also the primitives seem to be exploding,
but since SICP just uses the base Scheme in metacircular fashion, I do
have to build the interpreter from the ground up. The language
interpreter is not really Scheme per se - I cheated along the way and
threw some ML ideas in as well. I'd prefer to actually have it be a
metacircular ML but since ML is a much larger and involved language,
that's not currently in the cards.
Any suggestions on better ways to do the evaluator are welcome.
Thanks,
Chris Rathman
_______________________________________________
alice-users mailing list
[email protected]
http://www.ps.uni-sb.de/mailman/listinfo/alice-users