Beispiel #1
0
String SimpleUnaryOperation::code() const
{
	if (!haveOperand() || !m_symbolCache)
		return String::null;
	if (isPostfix())
		return parenthesise(operand()->code() + id().code());
	else
		return parenthesise(id().code() + operand()->code());
}
Beispiel #2
0
bool isInfix(QString p)
{
    if (!isPostfix(p) && !isPrefix(p))
        return true;
    return false;
}