Abstract class for term transformations.
A transformation takes as input a term and returns the transformed
term, or raises a failure exception if it is not applicable. It also
receives a transformation context to which it can read/write.
A transformation should
|
|
|
|
|
__call__(self,
trm,
**kargs)
User-friendly wrapper for apply. |
|
|
|
|
apply(self,
trm,
ctx)
Applies the transformation to the given term with the specified
context. |
|
|
|
|
|
|
|
|
|
|
__add__(self,
other)
Addition operator. |
|
|
|
|
__mul__(self,
other)
Multiplication operator. |
|
|
|
|
__pow__(self,
other)
Exponentiation operater. |
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|