示例#1
0
 public static CrawlType UnaryNegate(CrawlType operand)
 {
     //If operand is tal, return tal; if operand is kommatal, return kommatal
     if (operand.Equals(CrawlSimpleType.Tal) || operand.Equals(CrawlSimpleType.Kommatal))
     {
         return(operand);
     }
     return(CrawlType.ErrorType);
 }
示例#2
0
        public static CrawlType UnaryNot(CrawlType operand)
        {
            if (operand.Equals(CrawlSimpleType.Bool))
            {
                return(CrawlSimpleType.Bool);
            }

            return(CrawlType.ErrorType);
        }