preprocessor: special output for power deriv in JSON

time-shift
Houtan Bastani 2017-09-27 15:24:33 +02:00
parent fb6a11f544
commit 27dd46dab0
1 changed files with 10 additions and 0 deletions

View File

@ -3330,6 +3330,16 @@ BinaryOpNode::writeJsonOutput(ostream &output,
return;
}
if (op_code == oPowerDeriv)
{
output << "get_power_deriv(";
arg1->writeJsonOutput(output, temporary_terms, tef_terms);
output << ",";
arg2->writeJsonOutput(output, temporary_terms, tef_terms);
output << "," << powerDerivOrder << ")";
return;
}
int prec = precedenceJson(temporary_terms);
bool close_parenthesis = false;