diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 19:42:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 19:42:14 -0700 |
commit | c1028a70340c82d9c1143da195ae31b1eba927c7 (patch) | |
tree | 41590ad1bfeb008bf6803418cd5d2068ef663146 /stdlib/optimize.tl | |
parent | 32dd7406ef88dffe3bf5c5477e4487e617da483b (diff) | |
download | txr-c1028a70340c82d9c1143da195ae31b1eba927c7.tar.gz txr-c1028a70340c82d9c1143da195ae31b1eba927c7.tar.bz2 txr-c1028a70340c82d9c1143da195ae31b1eba927c7.zip |
Allow t symbol in macro parameter lists.
* eval.c (expand_params_rec, bind_macro_params): Handle t
specially everywhere a parameter can occur. Expansion
allows the syntax through without extending the
environment with a t variable; binding walks over
the structure without binding a variable.
* stdlib/compiler.tl (expand-bind-mac-params): Likewise,
handle occurrences of t, suppressing the generation of
and assignment to variables, while ensuring that
initializing expressions are evaluated.
* tests/011/tree-bind.tl: New file.
* txr.1: Documented.
Diffstat (limited to 'stdlib/optimize.tl')
0 files changed, 0 insertions, 0 deletions