public function setInput($input)
    {
        $this->input    = $input;

        $this->pos      = 0;

        $this->line     = 0;

        $this->linePos  = 0;

        $this->tokenType = TokenType::BOF;

        $this->tokenValue = null;

        $this->length   = strlen($this->input);
    }
public function setInput($input)
    {
        $this->input    = $input;

        $this->pos      = 0;

        $this->line     = 0;

        $this->linePos  = 0;

        $this->tokenType = TokenType::BOF;

        $this->tokenValue = null;

        $this->length   = strlen($this->input);
    }
public function setInput ( $ input ) { $ this -> input = $ input ; $ this -> pos = 0 ; $ this -> line = 0 ; $ this -> linePos = 0 ; $ this -> tokenType = TokenType :: BOF ; $ this -> tokenValue = null ; $ this -> length = strlen ( $ this -> input ) ; }
Sets the input string, resets the tokenizer...
Sets the input string resets the tokenizer ...