Пример #1
0
 def non_int_atom(self):
     """Checks if this is an atom, but not an integer"""
     if not self.atom():
         return False
     if INT_regex.match(self.val) is not None:
         return False
     return True
Пример #2
0
 def non_int_atom(self):
     """Checks if this is an atom, but not an integer"""
     if not self.atom():
         return False
     if INT_regex.match(self.val) is not None:
         return False
     return True
Пример #3
0
 def int(self, sexp=False):
     result = False
     if self.atom():
         if INT_regex.match(self.val) is not None:
             result = True
     if sexp:
         return BOOL_SEXPS[result]
     return result
Пример #4
0
 def int(self, sexp=False):
     result = False
     if self.atom():
         if INT_regex.match(self.val) is not None:
             result = True
     if sexp:
         return BOOL_SEXPS[result]
     return result