I'm trying to write in visual c++ to convert a condition text to a simple "if" conditional expression with arithmetic operators, parentheses.
For exemple : text : "(((a+b)>0)or(c==10))and(d!=e))" or "(a>b)xor(c==d)", etc...
we have normally in c++ style :
int a,b,c,d,e;
...
...
char text[]="(((a+b)>0)or(c==10))and(d!=e))";
if(text_to_if(text)) { .... }
...
...
letters a, b, c, d, e in text correspond with existing integer or float variables.