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

RE: Introductory material on hygienic macros in dr scheme



Chapter 8 of The Scheme Programming Language by Dybvig has a chapter on
macros, which is as helpful as anything I've read.

Book index:
http://www.scheme.com/tspl2d/index.html

Syntactic extension:
http://www.scheme.com/tspl2d/syntax.html

> -----Original Message-----
> From: owner-plt-scheme@fast.cs.utah.edu
> [mailto:owner-plt-scheme@fast.cs.utah.edu]On Behalf Of Chris Wright
> Sent: Monday, January 28, 2002 10:59 PM
> To: plt-scheme@fast.cs.utah.edu
> Subject: Introductory material on hygienic macros in dr scheme
>
>
> What would be the best place to find introductory material on the macro
> syntax in dr scheme.
>
> I guess I'm looking for something a little more gentle than what's in the
> help desk, that might show show some "old-style"  common lisp macros would
> look if converted to the r5 style:
>
> eg:
>
>
> (defmacro while (test &rest body)
>     `(do ()
>         ((not ,test))
>        ,@body))
>
> Thanks
>
> Chris
>
>
> Dr. Chris Wright
> Director, ICU
> Monash Medical Centre
> Clayton VIC 3168 AUSTRALIA
>
>