示例#1
0
 function __construct($parser, $line)
 {
     parent::__construct($parser);
     if (preg_match('/' . self::REGEX . '/x', $line, $m)) {
         $parser->subParse($this, $m[1]);
     }
 }
示例#2
0
 function __construct($parser, $v)
 {
     parent::__construct($parser);
     if (preg_match('/' . $this::REGEXP . '/x', $v, $m)) {
         $parser->subParse($this, $m[1]);
     }
 }
示例#3
0
 function __construct($parser, $v)
 {
     parent::__construct($parser);
     if (preg_match('/' . $this::REGEXP . '/x', $v, $m)) {
         $parser->subParse($this, $m[1]);
     }
     if ($this->isIncomplate($m)) {
         $this->capStart(array($this, 'input'));
     }
 }
示例#4
0
 function __construct($parser, $v)
 {
     parent::__construct($parser);
     $this->parser = $parser;
     if (preg_match('/' . $this::REGEXP . '/x', $v, $m)) {
         $this->func = $m[1];
         $this->args = $m[2];
         $this->text = isset($m[4]) && !empty($m[4]) ? $m[4] : "";
     }
     if ($this->isIncomplate($m)) {
         $this->capStart(array($this, 'input'));
     }
 }