- Added Type info to terms.
This commit is contained in:
parent
60d6a10b04
commit
65920fb7fc
@ -101,6 +101,14 @@ class Term(object):
|
||||
# Two terms are equal when their string rep is equal
|
||||
def __cmp__(self,other):
|
||||
return cmp(str(self),str(other))
|
||||
|
||||
def getTypes(self):
|
||||
return self.types
|
||||
|
||||
def setType(self, tp):
|
||||
self.types = [ tp ]
|
||||
|
||||
|
||||
|
||||
|
||||
class TermConstant(Term):
|
||||
|
Loading…
Reference in New Issue
Block a user