I am working on a calculator program for a finance application. I need to parse and evaluate complex financial expressions like mentioned below.
The expression is a mix of custom functions and arithmetic expressions.
I am using NCalc to resolve the Arithmetic expressions. However, I am having trouble in resolving the Custom Functions.
IF((COALESCE(X1,X2)-X3+IF(X4<=0,0,X5))>0, CUSTOM_FUNCTION(X6), X7)
Any suggestion on best approach?
I am currently working on a complex logic Involving Recursive calls and Stack Push/Pop. But it is not working.