more mysterx doc work (all ported, but need re-org and clean-up)
svn: r9327 original commit: 6abe2deff279f93fb9b51108d20a8e3cc8a72e75
This commit is contained in:
parent
a06e0ba9f5
commit
d0ba333047
|
@ -8,7 +8,7 @@
|
||||||
(provide BNF
|
(provide BNF
|
||||||
nonterm
|
nonterm
|
||||||
BNF-seq
|
BNF-seq
|
||||||
BNF-alt ; single-lie alternatives
|
BNF-alt BNF-alt/close ; single-line alternatives
|
||||||
BNF-etc
|
BNF-etc
|
||||||
BNF-group
|
BNF-group
|
||||||
optional kleenestar kleeneplus kleenerange)
|
optional kleenestar kleeneplus kleenerange)
|
||||||
|
@ -47,6 +47,9 @@
|
||||||
(define (BNF-alt . l)
|
(define (BNF-alt . l)
|
||||||
(interleave l alt))
|
(interleave l alt))
|
||||||
|
|
||||||
|
(define (BNF-alt/close . l)
|
||||||
|
(interleave l " | "))
|
||||||
|
|
||||||
(define BNF-etc "...")
|
(define BNF-etc "...")
|
||||||
|
|
||||||
(define/kw (nonterm #:body s)
|
(define/kw (nonterm #:body s)
|
||||||
|
|
|
@ -2296,6 +2296,15 @@
|
||||||
[(_ super)
|
[(_ super)
|
||||||
null]))
|
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
|
(define-syntax *defclass
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
[(_ *include-class name super (intf ...) body ...)
|
[(_ *include-class name super (intf ...) body ...)
|
||||||
|
@ -2315,7 +2324,7 @@
|
||||||
null
|
null
|
||||||
whole-page?
|
whole-page?
|
||||||
make-class-index-desc)))
|
make-class-index-desc)))
|
||||||
(list body ...))))]))
|
(flatten-splices (list body ...)))))]))
|
||||||
|
|
||||||
(define-syntax defclass
|
(define-syntax defclass
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user