[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] hart and syntax-case won't play nice. :(
From: |
Tobia Conforto |
Subject: |
Re: [Chicken-users] hart and syntax-case won't play nice. :( |
Date: |
Sat, 15 Mar 2008 21:12:44 +0100 |
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 have never seen CL, you can either read the previous chapters
of that book, or pretend it's just Scheme with a different syntax:
(defun name (args ...) body ...)
=> (define (name args ...) body ...)
(defmacro name (args ...) body ...)
=> (define-macro (name args ...) body ...)
IIRC (do) is the same as in Scheme. If you encounter (loop) just
treat it intuitively (and watch your back ;-) This should be enough
to get through that chapter.
Tobia
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, (continued)
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, Tobia Conforto, 2008/03/15
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, Graham Fawcett, 2008/03/15
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, Robin Lee Powell, 2008/03/15
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, Graham Fawcett, 2008/03/15
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, Graham Fawcett, 2008/03/15
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, Robin Lee Powell, 2008/03/15
- Re: [Chicken-users] hart and syntax-case won't play nice. :(,
Tobia Conforto <=
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, John Cowan, 2008/03/15
- Re: [Chicken-users] hart and syntax-case won't play nice. :(, Kon Lovett, 2008/03/15