parenthesis, "(", has a matching closing parenthesis, ")"
I am trying to write a program that does Expression evaluation, the expression is can be a conjuction of expression or conjuction of expression and condition.
(((a+1) > 1) AND(a != 0))
I want to make sure that i have a vaild statement so i want to make sure their are appropriate "(" and close ")" parenthesis. Please let me knwo if you know of a C# or C++ or C code that already does what i need to do.
I also want a suggestion of how about doing this...:-)
What would be the easy way to delimite by AND/OR
The input got me going, now my question is how to i make it so it delimits by AND/OR. So before the delimiting the string will be like:
((((a+1) > 1) AND(a != 0))OR(x > y))
after the delimiting it will be:
Please give me your suggestion on how about doing it...