Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.
Construct a syntax transformer object. This is part of Guile’s low-level support for syntax-case.
Return #t
if obj is a syntax transformer, or #f
otherwise.
Note that it’s a bit difficult to actually get a macro as a first-class object;
simply naming it (like case
) will produce a syntax error. But it is
possible to get these objects using module-ref
:
(macro? (module-ref (current-module) 'case)) ⇒ #t
Return the type that was given when m was constructed, via
make-syntax-transformer
.
Return the name of the macro m.
Return the binding of the macro m.
Return the transformer of the macro m. This will return a procedure, for
which one may ask the docstring. That’s the whole reason this section is
documented. Actually a part of the result of macro-binding
.