[racket] metacircular interpreter, lexical scope, environment

From: YC (yinso.chen at gmail.com)
Date: Wed Dec 1 14:26:07 EST 2010

Hi all -

a question for those who have experiences with metacircular interpreters:

How do you represent the lexical variables?  Since lexical variables can be
optimized away so they won't show up on a call to eval, it seems putting
them into the environment (I am using a struct holding an immutable hash for
environment) isn't the right approach.  It feels like I need my own
call-stack to represent them, but that sounds "heavy" for a metacircular

Any thoughts are appreciated, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101201/721444c5/attachment.html>

Posted on the users mailing list.