Exemplo n.º 1
0
 /**
  * 
  * 获取操作符Token
  * @param string $char
  */
 public function getOperatorToken($char)
 {
     $result = $this->getNextChar();
     while ($this->pos < $this->length) {
         $tmp = $result . $this->text[$this->pos];
         if (!Fl_Js_Static::isOperator($tmp)) {
             break;
         }
         $result .= $this->getNextChar();
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * 
  * 获取操作符Token
  * @param string $char
  */
 public function getOperatorToken($char)
 {
     $this->tmp .= $char;
     if (!Fl_Js_Static::isOperator($this->tmp)) {
         $this->tmp = '';
         $this->pendingNextChar = true;
         return true;
     }
 }