diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-02-04 07:05:10 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-02-04 07:05:10 -0800 |
commit | e2faa175388fee32508180887720ed3fdf238919 (patch) | |
tree | 544221b88c3f08840de9fdca7cc2f6cdf8a27847 | |
parent | 5c0837524e7ec2545f12c67f2dc6841ec25139fd (diff) | |
download | txr-e2faa175388fee32508180887720ed3fdf238919.tar.gz txr-e2faa175388fee32508180887720ed3fdf238919.tar.bz2 txr-e2faa175388fee32508180887720ed3fdf238919.zip |
doc: param macros: missing return value requirements.
* txr.1: Document return value convention of parameter list
transformers, without which it can only be deduced from
the example.
-rw-r--r-- | txr.1 | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -37039,6 +37039,16 @@ or .code lambda form. This is intended for error reporting. +A parameter transformer returns the transformed parameter list and body as a +single object: a list whose first element is the parameter list, +and whose remaining elements are the forms of the body. Thus, the following +is a correct null transformer: + +.verb + (lambda (params body env form) + (cons params body)) +.brev + .coNP Macro @ define-param-expander .synb .mets (define-param-expander < name >> ( pvar < bvar : < evar << fvar ) @@ -37086,6 +37096,10 @@ The form returns .metn name . +The parameter macro returns the transformed parameter list and body as a +single object: a list whose first element is the parameter list, +and whose remaining elements are the forms of the body. + .TP* Example: The following example shows the implementation |