def num_forward_until(self, condition):
i, c = <NUM_LIT:0>, '<STR_LIT>'<EOL>while self.hasNext() and not condition(self.peek()):<EOL><INDENT>c += self.forward(<NUM_LIT:1>)<EOL>i += <NUM_LIT:1><EOL><DEDENT>assert self.backward(i) == c<EOL>return i<EOL>
Forward until one of the provided matches is found.

        :param condition: set of valid strings