diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-02-17 20:10:47 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-02-17 20:10:47 -0800 |
commit | b08041e3593ee857b33043140a7bfd00bedc4546 (patch) | |
tree | e4b44d1857f52585021447ffe65ec6e1068e58ca /eval.h | |
parent | 4c8dfaaf842db7c8e34d34b83d9cf38627f120da (diff) | |
download | txr-b08041e3593ee857b33043140a7bfd00bedc4546.tar.gz txr-b08041e3593ee857b33043140a7bfd00bedc4546.tar.bz2 txr-b08041e3593ee857b33043140a7bfd00bedc4546.zip |
New listener feature: greedy evaluation feature.
* eval.c (eval_intrinsic_noerr): New function.
* eval.h (eval_intrinsic_noerr): Declared.
* parser.c (listener_greedy_eval_s): New symbol variable.
(repl): Implement greedy evaluation loop, enabled by
the *listener-greedy-eval-p* special.
(parse_init): Intern the *listener-greedy-eval-p* symbol,
storing it in the listener_greedy_eval_s variable.
Register the symbol as a special variable.
* txr.1: Documented *listener-greedy-eval-p* variable
and the greedy evaluation feature that it controls.
Diffstat (limited to 'eval.h')
-rw-r--r-- | eval.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -69,6 +69,7 @@ val apply_intrinsic(val fun, val args); val eval_progn(val forms, val env, val ctx_form); val eval(val form, val env, val ctx_form); val eval_intrinsic(val form, val env); +val eval_intrinsic_noerr(val form, val env, val *error_p); void trace_check(val name); val format_field(val string_or_list, val modifier, val filter, val eval_fun); val subst_vars(val forms, val env, val filter); |