chickadee » contracts » define-syntax-with-contract

(define-syntax-with-contract name docstring rules)syntax

where rules is one of

  • (syntax-rules (sym ...) (pat0 tpl0) (pat1 tpl1) ...)
  • (ir-macro-rules (sym ...) (pat0 xpr0) (pat1 xpr1) ...)
  • (er-macro-rules (%sym ...) (pat0 xpr0) (pat1 xpr1) ...)

and docstring is optional,