Merge pull request #5 from jsmaniac/doc-changes
A few fixes in the documentation
This commit is contained in:
commit
0a9b106e22
|
@ -17,11 +17,12 @@ expanders for use with other macros.
|
|||
with @code{id-expander-type}}
|
||||
@item{@code{id-expander?} - a predicate bound at phase level 1
|
||||
recognizing expanders produced by @code{make-id-expander}}
|
||||
@item{@code{define-id-expander?} - a syntactic form at phase level
|
||||
@item{@code{define-id-expander} - a syntactic form at phase level
|
||||
0 that takes an identifier and a transformer procedure and binds the
|
||||
identifier as a @code{id-expander?} for use in a transformer
|
||||
environment}
|
||||
@item{@code{expand-all-id-expanders} - a procedure bound at phase
|
||||
@; TODO: expand-all-expanders-of-type is not documented
|
||||
level 1 that's equivalent to @racket[expand-all-expanders-of-type] with
|
||||
the @code{id-expander-type} as the type argument}
|
||||
]}
|
||||
|
|
|
@ -9,6 +9,6 @@ and friends.
|
|||
@defform[(define-syntax-with-scoped-pre-transformers id
|
||||
([stx-lens pre-transformer] ...)
|
||||
transformer-expr)]{
|
||||
Binds @racket[id] as a syntax transformer equivalent to
|
||||
@racket[with-scoped-pre-transformers transformer-expr ([stx-lens pre-transformer] ...)].
|
||||
Binds @racket[id] as a syntax transformer that is equivalent to
|
||||
@racket[(with-scoped-pre-transformers transformer-expr ([stx-lens pre-transformer] ...))].
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ expansion context.
|
|||
(define exp (expander A (λ (stx) stx)))
|
||||
(expander-of-type? A exp)]}
|
||||
|
||||
@defproc[(expand-stx-tree-with-expanders-of-type [type expander-type?] [syntax syntax?]) syntax?]{
|
||||
@defproc[(expand-syntax-tree-with-expanders-of-type [type expander-type?] [syntax syntax?]) syntax?]{
|
||||
Recursively searches through @racket[syntax] for identifiers bound to
|
||||
generic syntax expanders of the given type. When an expander is found,
|
||||
its transformer is called with the given syntax value of its location
|
||||
|
|
Loading…
Reference in New Issue
Block a user