chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] hart and syntax-case won't play nice. :(


From: John Cowan
Subject: Re: [Chicken-users] hart and syntax-case won't play nice. :(
Date: Sat, 15 Mar 2008 15:43:06 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Graham Fawcett scripsit:

> >  (define-macro (hart . forms)
> >   `(noop ,(apply hart-parse forms)))
> >
> >  That should be trivial to translate into any macro system.
> 
> Hm, on second thought, I probably shouldn't assume that just because a
> macro is short, it would be trivial to translate into another system.

This one is, though:

(define-syntax hart (syntax-rules ()
        ((hart . forms) (noop (hart-parse . forms)))))

(Untested, of course)


-- 
The man that wanders far                        address@hidden
from the walking tree                           http://www.ccil.org/~cowan
        --first line of a non-existent poem by:         John Cowan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]