dsl for transforming results of a parser
transforming from regexp string to integer
import unit_threaded; import std.conv; auto res = (regex("\\d+") ^^ (input) { return variantArray(input[0].get!string.to!int); }).parse("123"); res.success.shouldBeTrue; res.results[0].shouldEqual(123);
See Implementation
dsl for transforming results of a parser