hyper-literate/collects/scribble/provide-doc-transform.ss
Matthew Flatt 4809dfdeb5 revise scribble/srcdoc so it is extensible; tweak bytecode optimizer to drop more omittable expressions
svn: r9028

original commit: f5e0fd35f53eddf5e51843542103f5ea85d429a2
2008-03-19 19:53:51 +00:00

16 lines
405 B
Scheme

#lang scheme/base
(require (for-syntax scheme/base))
(provide define-provide/doc-transformer
(for-syntax
provide/doc-transformer?
provide/doc-transformer-proc))
(begin-for-syntax
(define-struct provide/doc-transformer (proc) #:omit-define-syntaxes))
(define-syntax-rule (define-provide/doc-transformer id rhs)
(define-syntax id
(make-provide/doc-transformer rhs)))