|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
An attempt at implementing terms using references to handle variable binding.
| Method Summary | |
boolean |
alphaEquals(Term t)
Compares this term to another term, up to variable renaming. |
Term |
headReduceOnce()
Reduces this term once in lazy order. |
Term |
substitute(Var y,
Term t)
Calculates the result of substituting into this term. |
java.lang.String |
toString()
Convert this term to a string. |
| Method Detail |
public Term substitute(Var y,
Term t)
y - the Var to substitute in fort - the term to substitute in.public Term headReduceOnce()
public boolean alphaEquals(Term t)
t - the term to compare this tot are equal
(ignoring the names of variables)public java.lang.String toString()
toString in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||