killResults

convenient function to build a parser that kills the result of another parser e.g. killResults(match("a")) succeeds, but returns an empty result

Parser!(T)
killResults
(
T
)

Examples

unittests for kill results

auto res = killResults(match("a")).parse("a");
res.success.should == true;
res.results.length.should == 0;

Meta