示例#1
0
 def regex(self):
     if self.operator is None:
         return t.Any(long, int, float)
     elif self.operator == "<":
         return t.LT(self.comparator)
     elif self.operator == "<=":
         return t.LE(self.comparator)
     elif self.operator == ">":
         return t.GT(self.comparator)
     elif self.operator == ">=":
         return t.GE(self.comparator)
     else:
         raise ValueError
示例#2
0
 def regex(self):
     return t.Any()