Lines Matching refs:Token
22 * @return Token
24 abstract public function getToken(string $buffer, int $offset): ?Token;
29 * @param Token $token
32 abstract public function isEndToken(Token $token): bool;
37 * @param Token $token
40 abstract public function getNewStatus(Token $token): ?Status;
64 protected function matchPatterns(string $buffer, int $offset, array $patterns): ?Token {
70 return new Token(
78 protected function matchCharacters(string $buffer, int $offset, array $chars): ?Token {
83 return new Token($type, $char, $offset);