[gambit-list] Simple implementation of "Using Closures for Code Generation"

Marc Feeley feeley at iro.umontreal.ca
Wed Feb 26 14:17:40 EST 2020


> On Feb 26, 2020, at 5:27 AM, Lassi Kortela <lassi at lassi.io> wrote:
> 
> In the interest of learning more about the fundamentals of Scheme and interpreters, is there a simple, pedagogical implementation of the paper "Using closures for code generation" (Feeley/Lapalme 1987) available somewhere? IIRC the Gambit and Chicken interpreters use the technique but those would probably be a bit daunting for a first study since they also do so many other things.
> 
> In related news, for anyone who enjoys learning about programming language fundamentals there's a new GitHub repo "A Bestiary of Single-File Implementations of Programming Languages" (https://github.com/marcpaq/b1fipl) which catalogues small interpreters. I've had a great time browsing it.

Sure.  Here is a modern use of this idea for a subset of Scheme.

Marc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: comp.scm
Type: application/octet-stream
Size: 2828 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20200226/f72a2584/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eval.scm
Type: application/octet-stream
Size: 1344 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20200226/f72a2584/attachment-0001.obj>


More information about the Gambit-list mailing list