summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-22 01:03:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-22 01:03:54 -0800
commit8ced687d65438141be8a1305fa4058a76fa3cc59 (patch)
treefc806ca24868f5ce0255668e6440f22ab38d7fa9 /txr.c
parent97865d48b22fd96e75ca216e2dd67850b1c84b2a (diff)
downloadtxr-8ced687d65438141be8a1305fa4058a76fa3cc59.tar.gz
txr-8ced687d65438141be8a1305fa4058a76fa3cc59.tar.bz2
txr-8ced687d65438141be8a1305fa4058a76fa3cc59.zip
Support function versions of if, and, or so that partial
evaluation like (op or @1 42) or (op if (eq @1 foo) bar xyzzy) is possible. * eval.c (do_eval): Change precedence between operator and function lookup to favor operators. This is important since there are several operators now which are also functions. (if_fun, or_fun, and_fun): New static functions. (eval_init): New functions registered as intrinsics. * txr.1: Documented that if, and, or exist as both functions and operators.
Diffstat (limited to 'txr.c')
0 files changed, 0 insertions, 0 deletions