Self, for chaining.
MatchException if the character wasn't matched.
1 auto stream = parsingStream("hi!"); 2 char a, b, c; 3 ParsingStream.Checker check = x => x.isAlpha; 4 5 stream 6 .enforceStep(check, a) 7 .enforceStep(check, b); 8 9 assert(a == 'h'); 10 assert(b != 'e'); 11 assertThrown!MatchException(stream.enforceStep(check, c)); 12
A chainable version of this method. Matches the current character against the function and gives it via a reference argument.