more mysterx doc work (all ported, but need re-org and clean-up)

svn: r9327

original commit: 6abe2deff279f93fb9b51108d20a8e3cc8a72e75
This commit is contained in:
Matthew Flatt 2008-04-16 03:09:57 +00:00
parent a06e0ba9f5
commit d0ba333047
2 changed files with 14 additions and 2 deletions

View File

@ -8,7 +8,7 @@
(provide BNF
nonterm
BNF-seq
BNF-alt ; single-lie alternatives
BNF-alt BNF-alt/close ; single-line alternatives
BNF-etc
BNF-group
optional kleenestar kleeneplus kleenerange)
@ -47,6 +47,9 @@
(define (BNF-alt . l)
(interleave l alt))
(define (BNF-alt/close . l)
(interleave l " | "))
(define BNF-etc "...")
(define/kw (nonterm #:body s)

View File

@ -2296,6 +2296,15 @@
[(_ super)
null]))
(define (flatten-splices l)
(let loop ([l l])
(cond
[(null? l) null]
[(splice? (car l))
(append (splice-run (car l))
(loop (cdr l)))]
[else (cons (car l) (loop (cdr l)))])))
(define-syntax *defclass
(syntax-rules ()
[(_ *include-class name super (intf ...) body ...)
@ -2315,7 +2324,7 @@
null
whole-page?
make-class-index-desc)))
(list body ...))))]))
(flatten-splices (list body ...)))))]))
(define-syntax defclass
(syntax-rules ()