Validating an infix expression
I'm trying to validate infix expressions.
So far, I've developed code that can detect a l开发者_Python百科arge percentage of invalid infix expressions, but for some reason, the case "( ( ( ) ) ) 5" is not detected as invalid.
How do I detect the invalid condition when there are parenthesis that have no expression?
精彩评论