30 Syntax
(require unstable/syntax) |
procedure
→ (listof (or/c module-path? resolved-module-path? #f)) mpi : module-path-index?
Examples: | ||||||
|
syntax
Examples: | ||||||||||||||
|
procedure
(make-variable-like-transformer reference-stx [ setter-stx]) → set!-transformer? reference-stx : syntax? setter-stx : (or/c syntax? #f) = #f
If the macro identifier is used as the target of a set! form, then the set! form expands into the application of setter-stx to the set! expression’s right-hand side, if setter-stx is syntax; otherwise, the identifier is considered immutable and a syntax error is raised.
Examples: | |||||||||||||||||
|
The subsequent bindings were added by Vincent St-Amour <stamourv@racket-lang.org>.
procedure
(format-unique-id lctx fmt v ... [ #:source src #:props props #:cert cert]) → identifier? lctx : (or/c syntax? #f) fmt : string? v : (or/c string? symbol? identifier? keyword? char? number?) src : (or/c syntax? #f) = #f props : (or/c syntax? #f) = #f cert : (or/c syntax? #f) = #f
procedure
(syntax-within? a b) → boolean?
a : syntax? b : syntax?
The subsequent bindings were added by Sam Tobin-Hochstadt <samth@racket-lang.org>.
procedure
(syntax-map f stxl ...) → (listof A)
f : (-> syntax? A) stxl : syntax?
Example: | ||
|
The subsequent bindings were added by Carl Eastlund <cce@racket-lang.org>.
30.1 Syntax Object Source Locations
procedure
(syntax-source-directory stx) → (or/c path? #f)
stx : syntax?
procedure
(syntax-source-file-name stx) → (or/c path? #f)
stx : syntax?
Examples: | |||||||||||||||||||||||||
|