예제 #1
0
 /**
  * @override
  */
 public function parse(\Doctrine\ORM\Query\Parser $parser)
 {
     $lexer = $parser->getLexer();
     $parser->match($lexer->lookahead['value']);
     $parser->match('(');
     $this->_firstSimpleArithmeticExpression = $parser->_SimpleArithmeticExpression();
     $parser->match(',');
     $this->_secondSimpleArithmeticExpression = $parser->_SimpleArithmeticExpression();
     $parser->match(')');
 }
예제 #2
0
 /**
  * @override
  */
 public function parse(\Doctrine\ORM\Query\Parser $parser)
 {
     $lexer = $parser->getLexer();
     $parser->match($lexer->lookahead['value']);
     $parser->match('(');
     $this->_firstStringPrimary = $parser->_StringPrimary();
     $parser->match(',');
     $this->_secondStringPrimary = $parser->_StringPrimary();
     if ($lexer->isNextToken(',')) {
         $parser->match(',');
         $this->_simpleArithmeticExpression = $parser->_SimpleArithmeticExpression();
     }
     $parser->match(')');
 }