diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-09-28 23:34:42 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-09-28 23:34:42 -0700 |
commit | 7e2327cd393cb1ada82ff2b80dcff73a05d98f80 (patch) | |
tree | d7906dd012895b40f087e997aa45b62475514881 /eval.h | |
parent | 70dca98f3500158716f49d5281d55769a44f7f67 (diff) | |
download | txr-7e2327cd393cb1ada82ff2b80dcff73a05d98f80.tar.gz txr-7e2327cd393cb1ada82ff2b80dcff73a05d98f80.tar.bz2 txr-7e2327cd393cb1ada82ff2b80dcff73a05d98f80.zip |
tree: allow quasiquoting into #T syntax.
* eval.c (tree_lit_s, tree_construct_s): New symbol variables.
(expand_qquote_rec): Handle sys:tree-lit syntax generated by
quasi-quoted #T notaton by expanding and converting to
sys:tree-constuct call.
(eval_init): Initialize tree_lit_s and tree_construct_s.
* eval.h (tree_lit_s, tree_construct_s): Declared.
* parser.y (tree): Produce sys:tree-lit syntax when #T is
quasi-quoted, and unquotes occur inside it.
* tree.c (tree_construct_fname, tree_construct): New static
functions.
(tree_init): Register sys:tree-construct intrinsic function.
Diffstat (limited to 'eval.h')
-rw-r--r-- | eval.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -27,6 +27,7 @@ extern val dwim_s, lambda_s, progn_s, vector_lit_s, vec_list_s, list_s; extern val hash_lit_s, hash_construct_s, struct_lit_s, qref_s, uref_s; +extern val tree_lit_s, tree_construct_s; extern val eval_error_s, if_s, call_s, identity_s; extern val eq_s, eql_s, equal_s, less_s; extern val car_s, cdr_s; |