Lines Matching defs:line

49             trigger_error("Undefined syntax fragment '$name' on {$trace[0]['file']}:{$trace[0]['line']}", E_USER_NOTICE);
69 trigger_error("Undefined syntax capture '$name' on {$trace[0]['file']}:{$trace[0]['line']}", E_USER_NOTICE);
118 trigger_error("Syntax fragment fields are read-only on {$trace[0]['file']}:{$trace[0]['line']}", E_USER_NOTICE);
124 trigger_error("Syntax fragment fields are read-only on {$trace[0]['file']}:{$trace[0]['line']}", E_USER_NOTICE);
161 * Determines whether a line can be ignored.
163 function ignorableLine($line) {
164 $line = utf8_trim($line);
165 return $line == '' || utf8_substr($line,0,2) == '--';
265 // handle each line in the group
266 foreach($ordering[0]['cs'] as $line) {
267 if($this->isGroup($line)) {
268 $this->_fail($this->getLang('error_query_sortblock'), $line);
271 if(preg_match("/^({$p->variable})\s*(?:\((asc|desc)(?:ending)?\))?$/S",utf8_trim($line['text']),$match)) {
274 $this->_fail(sprintf($this->getLang('error_query_sortvar'),utf8_tohtml(hsc($var->name))), $line);
279 $this->_fail(sprintf($this->getLang('error_query_sortline'), utf8_tohtml(hsc($line['text']))), $line);
293 foreach($grouping[0]['cs'] as $line) {
294 if($this->isGroup($line)) {
295 $this->_fail($this->getLang('error_query_groupblock'), $line);
298 if(preg_match("/({$p->variable})$/",utf8_trim($line['text']),$match)) {
301 $this->_fail(sprintf($this->getLang('error_query_groupvar'),utf8_tohtml(hsc($var->name))), $line);
306 $this->_fail(sprintf($this->getLang('error_query_groupline'), utf8_tohtml(hsc($line['text']))), $line);
317 foreach($considering[0]['cs'] as $line) {
318 if($this->isGroup($line)) {
319 $this->_fail($this->getLang('error_query_considerblock'), $line);
322 if(preg_match("/^({$p->variable})$/",utf8_trim($line['text']),$match)) {
325 $this->_fail(sprintf($this->getLang('error_query_considervar'),utf8_tohtml(hsc($var->name))), $line);
330 $this->_fail(sprintf($this->getLang('error_query_considerline'), utf8_tohtml(hsc($line['text']))), $line);
413 $line = $f['_line'];
416 $this->_fail(sprintf($this->getLang('error_query_filterscope'),utf8_tohtml(hsc($f['lhs']['text']))), $line);
419 $this->_fail(sprintf($this->getLang('error_query_filterscope'),utf8_tohtml(hsc($f['rhs']['text']))), $line);
504 $line = trim($lineNode['text']);
507 if(preg_match("/^({$p->variable}|{$p->reflit})\s+({$p->variable}|{$p->predicate})\s*({$p->type})?\s*:\s*({$p->any})$/S",$line,$match)) {
571 } elseif(preg_match("/^({$p->variable})\s*({$p->type})?\s*({$p->operator})\s*({$p->variable})\s*({$p->type})?$/S",$line, $match)) {
605 } elseif(preg_match("/^({$p->variable})\s*({$p->type})?\s*({$p->operator})\s*({$p->any})$/S",$line, $match)) {
644 } elseif(preg_match("/^({$p->any})\s*({$p->operator})\s*({$p->variable})\s*({$p->type})?$/S",$line, $match)) {
681 $this->_fail(sprintf($this->getLang('error_query_pattern'),utf8_tohtml(hsc($line))), $lineNode);
719 $line = trim($lineNode['text']);
721 if(preg_match("/^({$p->variable})\s*({$p->aggregate})?\s*({$p->type})?(?:\s*(:)\s*({$p->any})?\s*)?$/S",$line, $match)) {
732 $this->_fail(sprintf($this->getLang('error_query_fieldsline'),utf8_tohtml(hsc($line))), $lineNode);
742 function parseFieldsShort($line, &$typemap) {
747 if(preg_match_all("/\s*({$p->variable})\s*({$p->aggregate})?\s*({$p->type})?\s*(?:(\")([^\"]*)\")?/",$line,$match, PREG_SET_ORDER)) {
796 foreach($lines as $line) {
798 if($this->ignorableLine($line)) continue;
800 if(preg_match('/^([^\{]*) *{$/',utf8_trim($line),$match)) {
813 } elseif(preg_match('/^}$/',utf8_trim($line))) {
820 'text'=>$line,
848 foreach($lines as $line) {
864 if($line != '') {
865 $result .= '<div class="strata-debug-line">'.hsc($line).'</div>'."\n";
867 $result .= '<div class="strata-debug-line"><br/></div>'."\n";
930 * Returns whether the given node is a line.
989 $line = utf8_trim($lineNode['text']);
990 if (preg_match('/^('.$p->predicate.')(\*)?\s*:\s*('.$p->any.')$/', $line, $match)) {
994 $this->emitError($lineNode, 'error_property_weirdgroupline', hsc($tree['tag']), hsc($line));