This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compiling syntax and macro


Keisuke Nishida <kxn30@po.cwru.edu> writes:

> Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> 
> > The long-term plan is to move from the current macro system to
> > syntax-case macros (a superset of the R5RS macros).
> > 
> >   http://www.cs.indiana.edu/~dyb/papers/syntactic.ps.gz
> > 
> > Such macros are expanded at compilation time.
> > 
> > They will not be objects.
> > 
> > We already have an implementation of such a macro system in the module
> > (ice-9 syncase).
> 
> Hmm, it seems the procedure syncase does everything what I want.
> All I have to do is just to compile the output of syncase.  How nice.
> 
> So the rest of the major tasks about compiling is module support.
> Is the new module system supporting syncase, too?  If so, all I need
> to care is the top-level environment.  I suppose there is a version
> already.  May I copy it for my VM?  I guess supporting the top-level
> environments is quite easy - just to fix a few functions.  I've already
> designed the VM so to use it.

I think you should design for the current module system since the new
one might take a while.  Syntax-case is here to stay.  It will be
supported in the future.

Is there any information you need on this to proceed?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]