public function readSequence(array $allowedTokenTypes)
	{
		$tokens = [];

		while($this->valid())
		{
			$token = $this->current();

			if(!$token->isOneOf($allowedTokenTypes))
			{
				break;
			}

			$tokens[] = $token;

			$this->next();
		}

		return $this->createTokenSequence($tokens);
	}