示例#1
0
文件: Dtl.php 项目: hoge1e3/jslesson
 public static function run($root, $vmcode)
 {
     //$root=self::createEmptyRoot();
     //self::initRoot($root);
     $b = new DtlBlock($root, $vmcode);
     return DtlThread::run($root, $b, array());
 }
示例#2
0
 public function execute()
 {
     $args = array();
     $n = func_num_args();
     for ($i = 0; $i < $n; $i++) {
         array_push($args, func_get_arg($i));
     }
     return DtlThread::run($this->__scope->self, $this, $args);
 }
示例#3
0
 public function create()
 {
     $this->IDSeq++;
     $r = new DtlObj($this, $this->ID . "->" . $this->IDSeq);
     $init = self::s_get($r, "initialize");
     if (!is_null($init)) {
         DtlThread::run($r, $init, func_get_args());
     }
     return $r;
 }