Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * 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;
 }