[plt-scheme] determine free variables

From: YC (yinso.chen at gmail.com)
Date: Mon Mar 24 19:55:33 EDT 2008

Hi all -

What's the best approach to determine free variables at source level?

What i am trying to accomplish is to take a scheme expression from a file,

(+ foo bar)

and transform

(lambda (foo bar)
  (+ foo bar))

for arbitrary scheme expressions.

Are there procedures that would allow me to determine whether a symbol has a
binding?  Given scheme identifier can be bound to different values, it seems
like this would require some sort of runtime environment inspection - is
that true?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080324/1d083d70/attachment.html>

Posted on the users mailing list.