求一个函数或正则,可以严整逻辑表达式.
要带括号匹配的。
数字和 and not or
例如:
1 or 2 and (3 or 4)
(5 or 1)and (2 or 4)
not ( 3 and 5 ) and 1
要带括号匹配的。
数字和 and not or
例如:
1 or 2 and (3 or 4)
(5 or 1)and (2 or 4)
not ( 3 and 5 ) and 1
http://www.codeproject.com/csharp/rpn_expressionparser.asp