protected function parseCompareExpression()
{
static $operators = array('!==', '===', '==', '!=', '<>', '<', '>', '>=', '<=');
$line = $this->stream->getCurrentToken()->getLine();
$expr = $this->parseConcatExpression();
$ops = array();
while ($this->stream->test(Token::OPERATOR, $operators)) {
$ops[] = array($this->stream->next()->getValue(), $this->parseAddExpression());
}
if (empty($ops)) {
return $expr;
}
return new Expression\CompareExpression($expr, $ops, $line);
}