summaryrefslogtreecommitdiffstats
path: root/tests/011/macros-2.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-07-10 07:23:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-07-10 07:23:06 -0700
commit157145753623fde988c5b4664168a0cbd6282503 (patch)
tree171a451e01a7430254166bd7840da50a40d999f4 /tests/011/macros-2.txr
parent1ab3edf06ab0fdc2072c855392fa505e903846a4 (diff)
downloadtxr-157145753623fde988c5b4664168a0cbd6282503.tar.gz
txr-157145753623fde988c5b4664168a0cbd6282503.tar.bz2
txr-157145753623fde988c5b4664168a0cbd6282503.zip
Implementing local function binding constructs.
* eval.c (fbind_s, lbind_s, flet_s, labels_s): New symbol globals. (env_fb_to_fb): New static function. (lookup_mac): Implement the same shadow check for function macros that is done for symbol macros, because we now have local functions that can shadow local macros. (fbindings_helper, op_fbind, make_fun_shadowing_env, expand_fbind_vars, me_flet_labels): New static functions. (expand): Add cases for fbind and lbind. (eval_init): Intern the four new symbols. Register sys:fbind and sys:lbind operators. Register flet and labels macros. * txr.1: Documented flet and labels.
Diffstat (limited to 'tests/011/macros-2.txr')
0 files changed, 0 insertions, 0 deletions