Scheme macro tutorials?

Discussion of Scheme and Racket

Scheme macro tutorials?

Postby antonio » Sat Aug 09, 2008 3:10 pm

Hi all,

I'm currently enjoying myself while reading this tutorial for Scheme Macros:

http://www.xs4all.nl/~hipster/lib/schem ... primer.txt

What's your preferred tutorial for Scheme macros?

Thanks,
Antonio
antonio
 
Posts: 5
Joined: Sun Jun 29, 2008 10:40 am

Re: Scheme macro tutorials?

Postby Will Donnelly » Sat Aug 30, 2008 2:30 pm

I just found myself needing scheme macros for the first time a couple of days ago. I rather like http://www.cs.utah.edu/classes/cs6520-mflatt/s04/macro-tutorial.pdf (Warning: PDF)

It's obviously meant to be used as a set of slides for a presentation, but the examples given are clear and concise, and they helped me learn the syntax-rules system.

I must say though, I'm surprised that there's so little documentation on such a major feature of the language. R5RS is pretty much incomprehensible on the subject, and too many discussions on the subject seem to assume that the reader already understands the basic operation of syntax-rules.

EDIT: I wrote a guide myself: http://blog.willdonnelly.net/2008/09/04/a-scheme-syntax-rules-primer/
Will Donnelly
 
Posts: 2
Joined: Sat Aug 30, 2008 2:08 pm


Return to Scheme

Who is online

Users browsing this forum: No registered users and 2 guests

cron