예제 #1
0
 private int Prec(int token)
 {
     return(ExpInfo.OpPrec(token));   //返回操作符的优先级数
 }
예제 #2
0
 //是否是二元操作符
 private bool IsBinaryOperator(int token)
 {
     return(ExpInfo.OpPrec(token) != -1 ? true : false);
 }