summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-03-16 23:18:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-03-16 23:18:25 -0700
commite84da36197b809c50a0c43cceb5c7b27b3d5733e (patch)
tree49ea25ca1b9299ae9c5c6b978a05a8d48e552f4b /stream.h
parentc1e94e69d1bea54330bd94371b101828b31e9add (diff)
downloadtxr-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