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

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 8:14 PM, Kon Lovett <[EMAIL PROTECTED]> wrote: > In release/3 is hart 1.3.0 which supports syntax-case. Nicely done, Kon. For those who haven't seen Kon's modification yet, it uses cond-expand to see if syntax-case is installed when hart is loaded: if so, it provides high-l

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

2008-03-15 Thread Kon Lovett
In release/3 is hart 1.3.0 which supports syntax-case. Best Wishes, Kon ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

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

2008-03-15 Thread Robin Lee Powell
On Sun, Mar 16, 2008 at 12:56:06AM +0100, Leonardo Valeri Manera wrote: > On 16/03/2008, Robin Lee Powell <[EMAIL PROTECTED]> > wrote: > > Should I just use one of those, then? Do they define > > syntax-rules? > > Yup. Any one of those 3 defines syntax-rules. Ha! That does it. (use hart), then

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

2008-03-15 Thread Felix Winkelmann
From: John Cowan <[EMAIL PROTECTED]> Subject: Re: [Chicken-users] hart and syntax-case won't play nice. :( Date: Sat, 15 Mar 2008 19:07:47 -0400 > Felix Winkelmann scripsit: > > > Actually not quite. Low-level macros are still seen, as the low-level > > expander is

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

2008-03-15 Thread Leonardo Valeri Manera
On 16/03/2008, Robin Lee Powell <[EMAIL PROTECTED]> wrote: > Should I just use one of those, then? Do they define syntax-rules? Yup. Any one of those 3 defines syntax-rules. Leo ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.non

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

2008-03-15 Thread Robin Lee Powell
On Sat, Mar 15, 2008 at 07:07:47PM -0400, John Cowan wrote: > Felix Winkelmann scripsit: > > > Actually not quite. Low-level macros are still seen, as the > > low-level expander is used by default - high-level expanders > > just pre-expand all macros usually. > > Well, it's true that define-macro

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

2008-03-15 Thread John Cowan
Felix Winkelmann scripsit: > Actually not quite. Low-level macros are still seen, as the low-level > expander is used by default - high-level expanders just pre-expand > all macros usually. Well, it's true that define-macro definitions made after you (use syntax-case) expander are correctly proce

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

2008-03-15 Thread Felix Winkelmann
From: John Cowan <[EMAIL PROTECTED]> Subject: Re: [Chicken-users] hart and syntax-case won't play nice. :( Date: Sat, 15 Mar 2008 15:21:41 -0400 > Robin Lee Powell scripsit: > > > Are you saying that all things that use low-level macros die when you > > load synt

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

2008-03-15 Thread Tobia Conforto
Robin Lee Powell wrote: Anybody got a good define-macro tutorial? This is not bad: http://www.gigamonkeys.com/book/macros-defining-your-own.html#defmacro It's CL, not Scheme, but I believe define-macro comes from CL anyways. You can ignore the part before the anchor that link goes to. If you

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

2008-03-15 Thread Kon Lovett
On Mar 15, 2008, at 12:43 PM, John Cowan wrote: 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,

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

2008-03-15 Thread John Cowan
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 int

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

2008-03-15 Thread Robin Lee Powell
On Sat, Mar 15, 2008 at 03:37:20PM -0400, Graham Fawcett wrote: > On Sat, Mar 15, 2008 at 3:24 PM, Graham Fawcett > <[EMAIL PROTECTED]> wrote: > > The main macro in Hart is ridiculously small. Hart-support (the > > non-macro code) does all the work: > > > > (define-macro (hart . forms) > > `(n

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

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 3:24 PM, Graham Fawcett <[EMAIL PROTECTED]> wrote: > The main macro in Hart is ridiculously small. Hart-support (the > non-macro code) does all the work: > > (define-macro (hart . forms) > `(noop ,(apply hart-parse forms))) > > That should be trivial to translate into

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

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 2:49 PM, Robin Lee Powell <[EMAIL PROTECTED]> wrote: > > On Sat, Mar 15, 2008 at 02:48:01PM -0400, Graham Fawcett wrote: > > On Sat, Mar 15, 2008 at 1:26 PM, Kon Lovett <[EMAIL PROTECTED]> > > wrote: > > > hart uses low-level macros only. > > > > Is there a way I can al

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

2008-03-15 Thread Tobia Conforto
Robin Lee Powell wrote: Kon Lovett wrote: hart uses low-level macros only. I'm afraid that means very little to me. Are you saying that all things that use low-level macros die when you load syntax-case? I'd like to understand this too, even if the hart problem is solved another way.

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

2008-03-15 Thread John Cowan
Robin Lee Powell scripsit: > Are you saying that all things that use low-level macros die when you > load syntax-case? So if I want to use high-level macros with hart, > I'm just screwed? Essentially yes. Native Chicken and Chicken-with-a-syntax-expander are two different and incompatible diale

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

2008-03-15 Thread Robin Lee Powell
On Sat, Mar 15, 2008 at 02:48:01PM -0400, Graham Fawcett wrote: > On Sat, Mar 15, 2008 at 1:26 PM, Kon Lovett <[EMAIL PROTECTED]> > wrote: > > hart uses low-level macros only. > > Is there a way I can alter hart so that it will play better with > code that uses higher-level macro systems? I'd rath

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

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 1:26 PM, Kon Lovett <[EMAIL PROTECTED]> wrote: > hart uses low-level macros only. Is there a way I can alter hart so that it will play better with code that uses higher-level macro systems? I'd rather not rewrite it in syntax-case (though it's really not very much macro cod

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

2008-03-15 Thread Robin Lee Powell
On Sat, Mar 15, 2008 at 10:26:28AM -0700, Kon Lovett wrote: > hart uses low-level macros only. I'm afraid that means very little to me. Are you saying that all things that use low-level macros die when you load syntax-case? So if I want to use high-level macros with hart, I'm just screwed? I re

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

2008-03-15 Thread Kon Lovett
hart uses low-level macros only. klovett ~ #204 $ csi CHICKEN (c)2008 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 3.0.8 - macosx-unix-gnu-ppc [ manyargs dload ptables applyhook ] SVN rev. 9145 compiled 2008-03-01 on Nikko.local (Darwin) ; loading ./.csirc ... #;1> (use ha

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

2008-03-15 Thread Robin Lee Powell
On Sat, Mar 15, 2008 at 05:38:51PM +0100, Felix Winkelmann wrote: > From: Robin Lee Powell <[EMAIL PROTECTED]> > > csi's "-e" is implemented by wrapping the forms into a "(begin > ...)". Due to the way toplevel expressions are macroexpanded (and > details that you don't want to know about), "(use

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

2008-03-15 Thread Felix Winkelmann
From: Robin Lee Powell <[EMAIL PROTECTED]> Subject: [Chicken-users] hart and syntax-case won't play nice. :( Date: Sat, 15 Mar 2008 02:02:50 -0700 > > > $ csi -e "(use hart) (hart (html))" > > > $ csi -e "(use syntax-case) (use hart)

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

2008-03-15 Thread Robin Lee Powell
$ csi -e "(use hart) (hart (html))" $ csi -e "(use syntax-case) (use hart) (hart (html))" Error: invalid syntax: hart Call history: (list (quote #(syntax-object (k . args) ((top) #(ribcage #(_ name transformer) #((top) (top) (top)) #(... (list (quo