got rid off some double brackets.
This commit is contained in:
parent
1a5561b265
commit
c9ecca0c19
@ -639,7 +639,7 @@ void PFunction::EvalTreeForStringExpression(iter_t const& i, bool funcFlag)
|
||||
fFuncString += "(";
|
||||
// '(', expression, ',' expression, ')'
|
||||
EvalTreeForStringExpression(i->children.begin()+1, true); // base expression
|
||||
fFuncString += ",";
|
||||
fFuncString += ", ";
|
||||
EvalTreeForStringExpression(i->children.begin()+3, true); // exponent expression
|
||||
fFuncString += ")";
|
||||
} else if (i->value.id() == PFunctionGrammar::factorID) {
|
||||
@ -659,7 +659,7 @@ void PFunction::EvalTreeForStringExpression(iter_t const& i, bool funcFlag)
|
||||
((i->children.begin()+1)->value.id() != PFunctionGrammar::functionID) &&
|
||||
(i->children.begin()+1)->value.id() != PFunctionGrammar::powerID) // check if denominator is non-trivial and not a function
|
||||
fFuncString += "(";
|
||||
EvalTreeForStringExpression(i->children.begin()+1);
|
||||
EvalTreeForStringExpression(i->children.begin()+1, true);
|
||||
if (((i->children.begin()+1)->children.size()>1) &&
|
||||
((i->children.begin()+1)->value.id() != PFunctionGrammar::functionID) &&
|
||||
(i->children.begin()+1)->value.id() != PFunctionGrammar::powerID) // check if denominator is non-trivial and not a function
|
||||
|
Loading…
x
Reference in New Issue
Block a user