| Trees | Indices | Help |
|
|---|
|
|
object --+
|
LogicalForm --+
|
Variable
A variable in a semantic expression.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Creates a new variable object, representing the variable given by name.
|
This should be overridden by subclasses.
|
This should be overridden by subclasses.
|
This should be overridden by subclasses.
|
This should be overridden by subclasses.
|
This should be overridden by subclasses. It should replace the LogicalForm old_lf with new_lf if it appears as an immediate constituent of this LogicalForm.
|
This should be overridden by subclasses. This method returns a list of all the variables used in this LF. This includes bound and unbound variables. (Only unbound variables need to be alpha-converted to avoid accidental binding, but we will convert bound variables too for readability.) Note that this only contains one instance of each variable, not every occurrence.
|
This should be overridden by subclasses.
|
For the time being, two variables are considered equal if they have the same name. We could use some more elaborate internal representation if this turns out to be a problem, but if alpha conversion is carried out when it should be this method ought to be ok.
|
Checks whether self is equal to a LF that can be derived by some variable substitution S into other, where S contains the substitution T given by "substitution".
|
str(x)
|
This should be overridden by subclasses.
|
Returns a list of all the instances of Variable within the logical form that represent the same variable. If it's a free variable, returns all other occurrences within the logical form. If it's bound, returns all other variables bound by the same abstraction. |
hash(x)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |