diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-05-16 06:34:31 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-05-16 06:34:31 -0700 |
commit | c990d37be74f452d1a8bcb2b0b1dc133704c0a93 (patch) | |
tree | bef4d7e94d53353d5e8fa17b3946874c16d1f7fd /autoload.c | |
parent | c606261b92348ef7b0f934705ee46ee4ccf28bab (diff) | |
download | txr-c990d37be74f452d1a8bcb2b0b1dc133704c0a93.tar.gz txr-c990d37be74f452d1a8bcb2b0b1dc133704c0a93.tar.bz2 txr-c990d37be74f452d1a8bcb2b0b1dc133704c0a93.zip |
New special operator: compiler-let
* eval.c (compiler_let_s): New symbol variable.
(op_let): Recognize compiler-let for sequential
binding.
(do_expand): Traverse and diagnose compiler-let
form.
(eval_init): Initialize compiler_let_s and register
the interpreted version of the operator.
* stdlib/compiler.tl (compiler compile): Handle
compiler-let form.
(compiler comp-compiler-let): New method.
(no-dvbind-eval): New function.
* autoload.c (compiler-set-entries): Intern the
compiler-let symbol in the user package.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'autoload.c')
-rw-r--r-- | autoload.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -660,7 +660,7 @@ static val compiler_set_entries(val fun) lit("compile-toplevel"), lit("compile"), lit("compile-file"), lit("compile-update-file"), lit("with-compilation-unit"), lit("dump-compiled-objects"), - lit("with-compile-opts"), + lit("with-compile-opts"), lit("compiler-let"), nil }; val vname[] = { |