Example #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);
 }
Example #2
0
        public static CrawlType UnaryNot(CrawlType operand)
        {
            if (operand.Equals(CrawlSimpleType.Bool))
            {
                return(CrawlSimpleType.Bool);
            }

            return(CrawlType.ErrorType);
        }