A semantic element, used to build the semantic interpretations
returned by the parser. This class is effectively abstract. Most of its
methods should be overridden.
|
|
|
|
|
alpha_convert(self,
source_var,
target_var)
This should be overridden by subclasses. |
source code
|
|
|
|
beta_reduce(self,
*args,
**kwargs)
This should be overridden by subclasses. |
source code
|
|
|
|
substitute(self,
source_variable,
target_expression)
This should be overridden by subclasses. |
source code
|
|
|
|
|
|
|
|
|
|
get_bound_variables(self)
This should be overridden by subclasses. |
source code
|
|
|
|
|
|
|
get_children(self)
This should be overridden by subclasses. |
source code
|
|
|
|
get_instances(self,
lf)
Returns all instances of logical forms equal to lf among this logical form and its descendents. |
source code
|
|
|
|
alpha_equivalent(self,
other,
substitution)
This should be overridden by subclasses. |
source code
|
|
|
|
__eq__(self,
other)
This should be overridden by subclasses. |
source code
|
|
|
|
|
|
|
copy(self)
This should be overridden by subclasses. |
source code
|
|
|
|
replace_in_parent(self,
other)
Replaces references in this LF's parent to this LF with references to
the LF other. |
source code
|
|
|
|
get_ancestor_bound_variables(self)
Returns all the variables that are bound at some point higher up the
structure and can therefore be used unbound within this element. |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|