chunks are translated to subsections -- not working right yet, but save a checkpoint
svn: r13651 original commit: 3467bf2ce644a276e4748c0ebdf8b734581f4869
This commit is contained in:
parent
5b8c9ce05a
commit
c62039efce
|
@ -1,3 +0,0 @@
|
||||||
#lang scribble/doc
|
|
||||||
@(require "literate-doc-wrapper.ss")
|
|
||||||
@(include "chat-noir-literate.ss")
|
|
|
@ -10,11 +10,12 @@
|
||||||
|
|
||||||
;; define `chunk' as a macro that typesets the code
|
;; define `chunk' as a macro that typesets the code
|
||||||
(define-syntax-rule (chunk name expr ...)
|
(define-syntax-rule (chunk name expr ...)
|
||||||
(make-splice (list (emph (scheme name) " ::=")
|
(make-splice (list (subsection #:tag (format "~a" 'name)
|
||||||
|
(scheme name))
|
||||||
(schemeblock expr ...))))
|
(schemeblock expr ...))))
|
||||||
|
|
||||||
;; HACK: provide a fake `module', which makes it possible to include a module
|
;; HACK: provide a fake `module', which makes it possible to include a module
|
||||||
;; and get only its code in.
|
;; and get only its code in.
|
||||||
(provide module)
|
(provide module)
|
||||||
(define-syntax module
|
(define-syntax-rule (module name base body ...)
|
||||||
(syntax-rules () [(module name base body ...) (begin body ...)]))
|
(begin body ...))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user