예제 #1
0
 public function __construct($code, $vector)
 {
     parent::__construct($code, $vector, 'String');
     $this->pattern = array(new Regex('[^\\\\]"', 2), new Regex('[^\\\\]"', 2));
     $this->lookBehind = true;
     $this->parsable = false;
 }
예제 #2
0
 public function __construct($code, $vector)
 {
     parent::__construct($code, $vector, 'CommentLine');
     $this->parsable = false;
     $this->pattern = array('//', new Regex('(\\r\\n|\\n|\\r)', 1));
 }
예제 #3
0
 public function __construct($code, $vector)
 {
     parent::__construct($code, $vector, 'Definition');
     $this->parsable = false;
     $this->pattern = array(array(new Regex('public([^\\$]{1,})?\\$', 8), new Regex('protected([^\\$]{1,})?\\$', 11), new Regex('private([^\\$]{1,})?\\$', 9)), ';');
 }
예제 #4
0
 public function __construct($code, $vector)
 {
     parent::__construct($code, $vector, 'Block');
     $this->pattern = array('{', '}');
 }
예제 #5
0
 public function __construct($code, $vector)
 {
     parent::__construct($code, $vector, 'CommentBlock');
     $this->parsable = false;
     $this->pattern = array('/*', '*/');
 }
예제 #6
0
 public function __construct($code, $vector, $name = 'Array')
 {
     parent::__construct($code, $vector, $name);
     $this->pattern = array('=>', array('),', ';'));
     $this->lookBehind = true;
 }
예제 #7
0
 public function __construct($code, $vector, $name = 'Variable')
 {
     parent::__construct($code, $vector, $name);
     $this->pattern = array(array('return', new Regex('[^=\\!\\<\\>]=[^=\\>]', 3)), ';');
     $this->lookBehind = true;
 }