예제 #1
0
 public function parse($string)
 {
     $this->root = self::node(self::T_ROOT);
     $this->stack = array();
     $this->pushStack($this->root);
     $this->string = $string;
     parent::parse($string);
     return $this->root;
 }
예제 #2
0
파일: Tokenizer.php 프로젝트: floxim/floxim
 public function parse($string)
 {
     parent::parse($string);
     $this->popToken();
     return $this->res;
 }