Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sources for learning about Scheme Macros: define-syntax and syntax-rules

I've read JRM's Syntax-rules Primer for the Merely Eccentric and it has helped me understand syntax-rules and how it's different from common-lisp's define-macro. syntax-rules is only one way of implementing a syntax transformer within define-syntax.

I'm looking for two things, the first is more examples and explanations of syntax-rules and the second is good sources for learning the other ways of using define-syntax. What resources do you recommend?

like image 434
Kyle Burton Avatar asked Sep 25 '08 04:09

Kyle Burton


1 Answers

Fear of Macros is a practical guide for using macros in Racket. It shows many ways of using define-syntax. The material may not be completely applicable to Scheme, but you might find some of the examples useful for knowing what can be done.

like image 53
Flux Avatar answered Sep 25 '22 01:09

Flux