hyper-literate/collects/scribblings/scribble/doclang.scrbl
Matthew Flatt 0aa14ae363 Scribble improvements: defmodule & co.
svn: r7902

original commit: cd7157641cc8a1dd6266c926675e5909daeb643f
2007-12-05 21:41:07 +00:00

20 lines
760 B
Racket

#lang scribble/doc
@require[scribble/manual]
@require["utils.ss"]
@title[#:tag "doclang"]{Document Module Language}
@defmodule[scribble/doclang]{The @schememodname[scribble/doclang]
language provides everything from @scheme[scheme/base], except that it
replaces the @scheme[#%module-begin] form.}
The @schememodname[scribble/doclang] @scheme[#%module-begin]
essentially packages the body of the module into a call to
@scheme[decode], binds the result to @scheme[doc], and exports
@scheme[doc].
Any module-level form other than an expression (e.g., a
@scheme[require] or @scheme[define]) is remains at the top level, and
the @scheme[doc] binding is put at the end of the module. As usual, a
module-top-level @scheme[begin] slices into the module top level.