Lines Matching refs:current
307 token = self.stream.current
320 one token ahead. The current active token is stored as :attr:`current`.
334 self.current = Token(1, TOKEN_INITIAL, "")
341 return bool(self._pushed) or self.current.type is not TOKEN_EOF
355 result = self.current
357 self.current = old_token
369 if self.current.test(expr):
383 rv = self.current
386 self.current = self._pushed.popleft()
387 elif self.current.type is not TOKEN_EOF:
389 self.current = next(self._iter)
397 self.current = Token(self.current.lineno, TOKEN_EOF, "")
405 if not self.current.test(expr):
408 if self.current.type is TOKEN_EOF:
411 self.current.lineno,
417 f"expected token {expr!r}, got {describe_token(self.current)!r}",
418 self.current.lineno,
761 # yield for the current token the first named