Version: 5.1.2
30 Syntax
(require unstable/syntax) |
This library is unstable;
compatibility will not be maintained.
See Unstable: May Change Without Warning for more information.
(explode-module-path-index mpi) |
→ (listof (or/c module-path? resolved-module-path? #f)) |
mpi : module-path-index? |
Unfolds mpi using module-path-index-split, returning
a list of the relative module paths together with the terminal
resolved module path or #f for the “self” module.
Examples: | ||||||
|
Returns the phase level of the module in which the form occurs (and
for the instantiation of the module in which the form is
executed). For example, if a module is required directly by the
“main” module (or the top level), its phase level is 0. If a module
is required for-syntax by the “main” module (or the top level), its
phase level is 1.
Examples: | ||||||||
|
The subsequent bindings were added by Vincent St-Amour <stamourv@racket-lang.org>.
| ||||||||||||||||||||||||||||||||||||||||||
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 |
Like format-id, but returned identifiers are guaranteed to be unique.
(syntax-within? a b) → boolean? |
a : syntax? |
b : syntax? |
Returns true is syntax a is within syntax b in the source.
Bounds are inclusive.
The subsequent bindings were added by Sam Tobin-Hochstadt <samth@racket-lang.org>.
(syntax-map f stxl ...) → (listof A) |
f : (-> syntax? A) |
stxl : syntax? |
Example: | ||
|
The subsequent bindings were added by Carl Eastlund <cce@racket-lang.org>.
(syntax-list template ...) |
This form constructs a list of syntax objects based on the given templates. It
is equivalent to (syntax->list #'(template ...)).
Example: | ||
|
30.1 Syntax Object Source Locations
| ||
|
These produce the directory and file name, respectively, of the path with which
stx is associated, or #f if stx is not associated
with a path.
Examples: | |||||||||||||||||||
|