diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-03 06:16:35 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-03 06:16:35 -0700 |
commit | eb25dece0352e65855499ca13f01585875693e28 (patch) | |
tree | 77e40849f0e186736110d85c80f8294f872b4e81 /lisplib.c | |
parent | 1f6d6acb5b8ed75776249d3032477050ebb92a9a (diff) | |
download | txr-eb25dece0352e65855499ca13f01585875693e28.tar.gz txr-eb25dece0352e65855499ca13f01585875693e28.tar.bz2 txr-eb25dece0352e65855499ca13f01585875693e28.zip |
eval/compile: special ops compile-only & eval-only.
These forms will be specially recognized by the file compiler
when they appear as top-level forms. eval-only will mean this:
only execute this form (possibly after compiling it);
do not emit any compiled code into the output file.
compile-only will mean: only emit the compiled code into the
output file; do not execute it.
* eval.c (eval_init): Register special operators compile-only
and eval-only. In the interpreter, these are equivalent to
progn and so route to op_progn.
* share/txr/stdlib/compiler.tl (compiler compile): Similarly
to interpreter, handle compile-only and eval-only as progn.
Diffstat (limited to 'lisplib.c')
0 files changed, 0 insertions, 0 deletions