Next: , Previous: , Up: iklib expander   [Index]


6.14.2 Syntax transformers facilities

The following bindings are exported by the library (vicare).

Function: make-variable-transformer func

Defined by R6RS. Build and return a “special” value that, when used as right–hand side of a syntax definition, is recognised by the expander as a variable transformer as opposed to a normal transformer or a compile-time value.

func must be the transformer function.

Function: variable-transformer? obj

Return #t if obj is recognised by the expander as a variable transformer as opposed to a normal transformer or a compile–time value; otherwise return #f.

Function: variable-transformer-procedure var-trasf

If var-trasf is recognised by the expander as a variable transformer: return the actual transformer function, otherwise raise an assertion violation.