[ prog / sol / mona ]

prog


Post macros.

2 2018-11-04 23:14

Sometimes you need dirty unhygienic macros but your scheme doesn't provide them

(define-syntax define-macro
  (syntax-rules ()
    ((define-macro (name . args) body ...)
     (define-syntax name
       (rsc-macro-transformer
         (let ((transformer (lambda args body ...)))
           (lambda (exp env)
(apply transformer (cdr exp)))))))))
40


VIP:

do not edit these