- Added Type info to terms.

This commit is contained in:
ccremers 2005-11-16 19:07:57 +00:00
parent 60d6a10b04
commit 65920fb7fc

View File

@ -101,6 +101,14 @@ class Term(object):
# Two terms are equal when their string rep is equal # Two terms are equal when their string rep is equal
def __cmp__(self,other): def __cmp__(self,other):
return cmp(str(self),str(other)) return cmp(str(self),str(other))
def getTypes(self):
return self.types
def setType(self, tp):
self.types = [ tp ]
class TermConstant(Term): class TermConstant(Term):