def _parse_next_token(self):
while self._position < self.limit:<EOL><INDENT>token = self._next_pattern()<EOL>if token:<EOL><INDENT>return token<EOL><DEDENT><DEDENT>return None<EOL>
Will parse patterns until it gets to the next token or EOF.