From 83f61aecd22a95541ecacdbcb2f6fe466bab3712 Mon Sep 17 00:00:00 2001 From: Daphne Preston-Kendal Date: Thu, 30 Dec 2021 11:18:39 +0100 Subject: [PATCH] Document the addition of identifier macros --- doc/chibi.scrbl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/chibi.scrbl b/doc/chibi.scrbl index a673c52b..9c89e46e 100755 --- a/doc/chibi.scrbl +++ b/doc/chibi.scrbl @@ -261,6 +261,15 @@ introduction to syntactic-closures can be found at \scheme{make-syntactic-closure} and \scheme{strip-syntactic-closures} are also available. +Variable transformers and identifier macros are also supported: macros +created with \scheme{sc-macro-transformer} and \scheme{rsc-macro-transformer} +can match an identifier outside of operator position, and a special +\scheme{er-macro-transformer*} form is provided, otherwise identical +to the usual \scheme{er-macro-transformer}, which can do the same. +\scheme{make-variable-transformer} can be used to create transformer +procedures which expand an instance of \scheme{set!} with their syntax +keywords as their first argument. + \subsection{Types} You can define new record types with