public function seek($position)
    {
        if (!isset($this->tokens[$position])) {
            throw $this->getOutOfBoundsException($position);
        }

        $this->position = $position;
    }
public function seek($position)
    {
        if (!isset($this->tokens[$position])) {
            throw $this->getOutOfBoundsException($position);
        }

        $this->position = $position;
    }
public function seek ( $ position ) { if ( ! isset ( $ this -> tokens [ $ position ] ) ) { throw $ this -> getOutOfBoundsException ( $ position ) ; } $ this -> position = $ position ; }
Tries to go to a position in the stack.

@param int $position

@return void
Tries to go to a position in the stack .