diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-16 23:18:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-16 23:18:25 -0700 |
commit | e84da36197b809c50a0c43cceb5c7b27b3d5733e (patch) | |
tree | 49ea25ca1b9299ae9c5c6b978a05a8d48e552f4b /stream.h | |
parent | c1e94e69d1bea54330bd94371b101828b31e9add (diff) | |
download | txr-e84da36197b809c50a0c43cceb5c7b27b3d5733e.tar.gz txr-e84da36197b809c50a0c43cceb5c7b27b3d5733e.tar.bz2 txr-e84da36197b809c50a0c43cceb5c7b27b3d5733e.zip |
Support binding in @(repeat)/@(rep) :vars.
* match.c (extract_bindings): Check for (var expr) syntax,
evaluate and bind.
* match.h (vars_k): Declared.
* parser.y (expand_repeat_rep_args): New static function.
(repeat_rep_helper): The :counter and :var arguments of
repeat/rep must be macro-expanded, since there can be Lisp
expressions there. This supports the new feature, but also
fixes the bug of :counter (var form) not expanding
form.
* txr.1: Updated documentation about :vars in @(repeat).
Diffstat (limited to 'stream.h')
0 files changed, 0 insertions, 0 deletions