Update doc lens references

This commit is contained in:
Jack Firth 2015-07-13 12:10:41 -07:00
parent e816782d46
commit 308c3590f9

View File

@ -3,13 +3,13 @@
@(require "example-evaluator.rkt" @(require "example-evaluator.rkt"
package-scribblings-tools package-scribblings-tools
(for-label racket/base (for-label racket/base
lenses lens
generic-syntax-expanders/define-expanders generic-syntax-expanders/define-expanders
generic-syntax-expanders/scoped-transformers)) generic-syntax-expanders/scoped-transformers))
@module-title[generic-syntax-expanders/scoped-transformers]{Lens Scoped Syntax Transformers} @module-title[generic-syntax-expanders/scoped-transformers]{Lens Scoped Syntax Transformers}
This module uses the @racket[lenses] package to create syntax transformers This module uses the @racket[lens] package to create syntax transformers
that affect only some small subpiece of a syntax object and compose them that affect only some small subpiece of a syntax object and compose them
with other transformers. This allows for the creation of a macro that cedes with other transformers. This allows for the creation of a macro that cedes
control to other macros to pre-expand parts of its body before the macro control to other macros to pre-expand parts of its body before the macro
@ -20,7 +20,7 @@ extensible macro.
@defproc[((with-scoped-pre-transformer @defproc[((with-scoped-pre-transformer
[transformer (-> syntax? syntax?)] [transformer (-> syntax? syntax?)]
[stx-lens (lens/c syntax? syntax?)] [stx-lens lens?]
[pre-transformer (-> syntax? syntax?)]) [pre-transformer (-> syntax? syntax?)])
[stx syntax?]) [stx syntax?])
syntax?]{ syntax?]{
@ -32,7 +32,7 @@ extensible macro.
@defproc[((with-scoped-pre-transformers @defproc[((with-scoped-pre-transformers
[transformer (-> syntax? syntax?)] [transformer (-> syntax? syntax?)]
[pre-transformer-lens-pairs [pre-transformer-lens-pairs
(listof (list/c (lens/c syntax? syntax?) (listof (list/c lens?
(-> syntax? syntax?)))]) (-> syntax? syntax?)))])
[stx syntax?]) [stx syntax?])
syntax?]{ syntax?]{