[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1 Hygienic Macros

R7RS hygienic macro is based on a special pattern language, and guaranteed that no "variable capture" occurs. "Variable capture" means that if you insert new variable bindings in the expanded form, the new bindings shadows the bindings in the form passed to the macro.

Special Form: define-syntax name transformer-spec

[R7RS]

Special Form: let-syntax ((name transformer-spec) …) body
Special Form: letrec-syntax ((name transformer-spec) …) body

[R7RS]

Special Form: syntax-rules (literal …) clause1 clause2 …
Special Form: syntax-rules ellipsis (literal …) clause1 clause2 …

[R7RS]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on July 19, 2014 using texi2html 1.82.