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