On Sat, Jan 5, 2013 at 11:17 PM, Walter Bright <newshound2@digitalmars.com> wrote:
On 1/5/2013 1:32 PM, Philippe Sigaud wrote:
What should it be? Some module to define text transformations? std.regex does
this quite well.


A text macro system is not std.regex at all. What std.textmacro should be is a range that takes a text input stream, an associative array of NAME=VALUE pairs, and it outputs a text range with the macros having been expanded.

OK, that's doable. It looks like a map-flatten action.
(map the first element, it might contain new macros, expand these again, etc)