Class representing a binary operator in the AST.
Definition at line 1597 of file template.cpp.
Reimplemented from ExprAst.
Definition at line 1604 of file template.cpp.
References Operator::And, Operator::Divide, Operator::Equal, Operator::Greater, Operator::GreaterEqual, Operator::Less, Operator::LessEqual, TemplateContextImpl::line(), m_lhs, m_operator, m_rhs, Operator::Minus, Operator::Modulo, Operator::Multiply, Operator::NotEqual, Operator::Or, Operator::Plus, ExprAst::resolve(), TemplateVariant::String, TemplateContextImpl::templateName(), TemplateVariant::toBool(), TemplateVariant::toInt(), TemplateVariant::toString(), TemplateVariant::type(), and TemplateContextImpl::warn().
{
{
{
}
else
{
}
{
}
else
{
}
{
}
else
{
}
{
}
else
{
}
{
}
{
}
{
}
{
if (denom!=0)
{
}
else
{
ci->
warn(ci->
templateName(),ci->
line(),
"division by zero while evaluating expression is undefined");
return 0;
}
}
{
if (denom!=0)
{
}
else
{
return 0;
}
}
default:
}
}