@@ -1048,18 +1048,21 @@ The @racket[proc] must match the contract @racket[(-> lw? lw?)].
10481048Its result should be the rewritten version version of the input.
10491049}
10501050
1051- @defform[(with-atomic-rewriter name-symbol
1051+ @defform[(with-atomic-rewriter atom-name
10521052 string-or-thunk-returning-pict
10531053 expression)]{
10541054
10551055Extends the current set of atomic-rewriters with one
1056- new one that rewrites the value of name-symbol to
1056+ new one that rewrites the value of atom-name to
10571057@racket[string-or-pict-returning-thunk] (applied, in the case of a
10581058thunk), during the evaluation of expression.
10591059
1060- @racket[name-symbol] is expected to evaluate to a symbol. The value
1061- of @racket[string-or-thunk-returning-pict] is used whenever the symbol
1062- appears in a pattern.
1060+ @racket[atom-name] is expected to evaluate to a symbol or
1061+ string. Note that to rewrite other literals, the string
1062+ representation of that literal should be used (e.g.
1063+ @racket[ "#t"] as the atom-name to rewrite @racket[#t], etc).
1064+ The value of @racket[string-or-thunk-returning-pict] is used
1065+ that atom appears in a pattern.
10631066
10641067@ex[
10651068 (define-language lam-lang
@@ -1071,7 +1074,7 @@ appears in a pattern.
10711074]
10721075}
10731076
1074- @defform[(with-atomic-rewriters ([name-symbol string-or-thunk-returning-pict] ...)
1077+ @defform[(with-atomic-rewriters ([atom-name string-or-thunk-returning-pict] ...)
10751078 expression)]{
10761079Shorthand for nested @racket[with-atomic-rewriter] expressions.
10771080@history[#:added "1.4"]}
0 commit comments