- Added Type info to terms.
This commit is contained in:
parent
60d6a10b04
commit
65920fb7fc
@ -102,6 +102,14 @@ class Term(object):
|
||||
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):
|
||||
def __init__(self, constant):
|
||||
|
Loading…
Reference in New Issue
Block a user