MatchException if the character wasn't matched.
1 auto stream = parsingStream("hello"); 2 3 // Matcher for "h" and "e" 4 ParsingStream.Checker check = a => a == 'h' || a == 'e'; 5 6 assert(stream.enforceStep(check) == 'h'); 7 assert(stream.enforceStep(check) == 'e'); 8 assertThrown(stream.enforceStep(check)); 9
Match the current character against the function and return it.