I am new to JEP, I am trying to use it to get the expression tree to be used in another task rather than evaluation.But I found that using:
String expression = "A*B+C*D+A*D+B*C";
Node tree = jep.parse(expression);
results in a tree constructed in a way different than that I need.
The tree produced is having the structure:
+
+ *
+ * B C
* * A D
A B C D
while I want it to be:
+
+ +
* * * *
A B C D A D B C
Is there a way in JEP to parse the expression in that way?
Or do I have to overload a parse function to do that?
Thanks for the good work done in JEP.
Best regards,
Farida