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 /glob.c | |
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 'glob.c')
0 files changed, 0 insertions, 0 deletions