示例#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 __toString()
 {
     $ret = parent::__toString();
     $ret .= ' (func=' . $this->func . ')';
     return $ret;
 }