摘要: 由于最近在做一个文本搜索器的需要,其中包含与或逻辑表达式计算的部分。所以特意封装了一个处理类,算法比较笨,还请大家多多指教! 1 class BoolExpression 2 { 3 4 internal bool IsRight(string expression) 5 { 6 bool isRight = true; 7 8 Regex regex0 = new Regex(@"((T|F)((\||\&)(T|F))*)"); 9 Regex re... 阅读全文
posted @ 2012-08-20 15:25 Poerin 阅读(810) 评论(0) 推荐(0) 编辑