You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pollen/main-preproc.rkt

23 lines
589 B
Racket

#lang racket/base
(provide (except-out (all-from-out racket/base) #%module-begin)
11 years ago
(rename-out [replacement-module-begin #%module-begin]))
11 years ago
(define-syntax-rule (replacement-module-begin body ...)
(#%module-begin
(module inner pollen/lang/doclang_raw
main
(λ(x) (apply string-append (cdr x))) ;; chop first linebreak with cdr
()
11 years ago
(require pollen/main-helper)
(require-project-require-files)
(provide (all-defined-out))
body ...)
(require 'inner)
(provide (all-from-out 'inner))
(module+ main
11 years ago
(display main))))