
Also, updates some of the mzlib files to point at `racket/*' libraries rather than to `scheme/*' ones.
18 lines
581 B
Racket
18 lines
581 B
Racket
#lang scribble/doc
|
|
@(require "common.rkt" (for-label syntax/strip-context))
|
|
|
|
@title[#:tag "strip-context"]{Replacing Lexical Context}
|
|
|
|
@defmodule[syntax/strip-context]
|
|
|
|
@defproc[(strip-context [stx syntax?]) syntax?]{
|
|
|
|
Removes all lexical context from @racket[stx], preserving
|
|
source-location information and properties.}
|
|
|
|
@defproc[(replace-context [ctx-stx (or/c syntax? #f)] [stx syntax?]) syntax?]{
|
|
|
|
Uses the lexical context of @racket[ctx-stx] to replace the lexical
|
|
context of all parts of @racket[stx], preserving source-location
|
|
information and properties of @racket[stx].}
|