schemetoc-define-syntax.scm 361 B

1234567891011121314
  1. ; Copyright (c) 1993-2007 by Richard Kelsey and Jonathan Rees. See file COPYING.
  2. (define-macro define-syntax
  3. (lambda (form expander)
  4. (expander `(define-macro ,(cadr form)
  5. (let ((transformer ,(caddr form)))
  6. (lambda (form expander)
  7. (expander (transformer form
  8. (lambda (x) x)
  9. eq?)
  10. expander))))
  11. expander)))