public function nextOf($tokenNames)
    {
        $i = $this->index+1;
        $len = count($this->tokens);
        while ($i < $len) {
            $tok = $this->tokens[$i][0];
            if (in_array($tok, $tokenNames)) {
                return $tok;
            }
            $i++;
        }
        return null;
    }