Self, for chaining.
MatchException if didn't match anything
1 auto stream = parsingStream("This is a sentence"); 2 ParsingStream.Checker check = a => a.isAlpha; 3 string a, b, c; 4 5 assertNotThrown(stream 6 .skip.enforceMatch(check, a) 7 .skip.enforceMatch(check, b) 8 ); 9 10 assert(a == "This" && b == "is"); 11 12 // No .skip! 13 assertThrown(stream.enforceMatch(check, c)); 14
A chainable version of the method. Matches all next characters against the function until it returns false.