between

Match pattern begin func end, return the result of func.

@safe
struct between (
alias begin
alias func
alias end
) {}

Members

Static functions

opCall
auto opCall(R i)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import sdpc.parsers;
auto i = "(asdf)";
auto r = between!(token!"(", token!"asdf", token!")")(i);
assert(r.ok);
assert(!r.cont.length);

Meta