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
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