schemetoc-define-syntax.scm 390 B

12345678910111213141516
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Richard Kelsey, Jonathan Rees
  3. (define-macro define-syntax
  4. (lambda (form expander)
  5. (expander `(define-macro ,(cadr form)
  6. (let ((transformer ,(caddr form)))
  7. (lambda (form expander)
  8. (expander (transformer form
  9. (lambda (x) x)
  10. eq?)
  11. expander))))
  12. expander)))