summaryrefslogtreecommitdiffstats
path: root/stdlib/optimize.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-21 19:42:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-21 19:42:14 -0700
commitc1028a70340c82d9c1143da195ae31b1eba927c7 (patch)
tree41590ad1bfeb008bf6803418cd5d2068ef663146 /stdlib/optimize.tl
parent32dd7406ef88dffe3bf5c5477e4487e617da483b (diff)
downloadtxr-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