Using DEFINE-SYNTAX and SYNTAX-RULES in DrScheme
We do not need to use
(require (lib "defmacro.ss"))
Instead of DEFINE-MACRO we use DEFINE-SYNTAX and SYNTAX-RULES. This creates a hygienic macro and requires that we use a pattern language.
Works in DrScheme version 201.
Previous slide
Next slide
Back to first slide
View graphic version