public function current()
    {
        if (!isset($this->tokenList[$this->ptr])) {
            throw new \UnexpectedValueException("Unexpected input at offset {$this->ptr}, unexpected end of stream");
        }
        return $this->tokenList[$this->ptr];
    }