Re: more attempts at modifying define

Turadg Aleahmad <[email protected]>
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
[email protected] wrote:

>Actually, I was suggesting that you literally wrap each incoming 
>s-expression in Matthias' macro, such as:
>
>(sisc-eval `(matthias-macro ... ,expr) ...)
>  
>

I was afraid that's what you meant.  ;)

I was trying to avoid having to wrap every s-expression, but to be done 
with this what's what I've done.

All this was for something we call the Replacement Modeler.  It helps 
beginning students understand evaluation.

You can play with it here:
  
http://turadg.ucdev.org/jist/callListener.php?init-expr=%28load+%22cs3-init.scm%22%29

Then type in something like this;
 > (define (square (* x x))
 > (model (square (+ 1 (square 2)) ) )



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.