예제 #1
0
String SubscriptOperation::code() const
{
	if (!haveLeft() || !haveRight())
		return "";
	return parenthesise(left()->code() + "[" + right()->code() + "]");
}
예제 #2
0
String SimpleBinaryOperation::code() const
{
	if (!haveLeft() || !haveRight() || !m_symbolCache)
		return String::null;
	return parenthesise(left()->code() + " " + id().code() + " " + right()->code());
}