示例#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
文件: sexp.py 项目: kemaleren/LisPy
 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
文件: sexp.py 项目: kemaleren/LisPy
 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