/** * Initialize the parser * @param string $s * @param boolean $force(force to reset errors) */ public function initialize($s) { // set string to lexer if (!$this->_lexer) { $this->_lexer = new epLexer($s); } else { $this->_lexer->initialize($s); } // clear errors $this->errors = array(); }
/** * Initialize the parser * @param string $s * @param boolean $force(force to reset errors) */ public function initialize($s) { // set string to lexer if (!$this->_lexer) { $this->_lexer = new epQueryLexer($s); } else { $this->_lexer->initialize($s); } // clear errors $this->errors = array(); // reset argument index $this->aindex = 0; }