def __iter__(self):
if self.current_token is not None:<EOL><INDENT>yield self.current_token<EOL><DEDENT>for token in self.lookahead:<EOL><INDENT>yield token<EOL><DEDENT>while True:<EOL><INDENT>token = self._parse_next_token()<EOL>if not token:<EOL><INDENT>return<EOL><DEDENT>self.lookahead.append(token)<EOL>yield token<EOL><DEDENT>
Look ahead from current position.