Checkpoint
This commit is contained in:
parent
e3c84e1761
commit
e73e5cbfc8
32 changed files with 1354 additions and 92 deletions
|
@ -1,9 +1,16 @@
|
|||
package prolog.ast.terms
|
||||
|
||||
import prolog.logic.Substituted
|
||||
|
||||
/**
|
||||
* Value in Prolog.
|
||||
*
|
||||
* A [Term] is either a [Variable], [Atom], integer, float or [CompoundTerm].
|
||||
* In addition, SWI-Prolog also defines the type string.
|
||||
*/
|
||||
interface Term : Comparable<Term>
|
||||
interface Term : Comparable<Term> {
|
||||
/**
|
||||
* Returns the term that this expression evaluates to. (All the way down.)
|
||||
*/
|
||||
fun evaluate(subs: Substituted): Pair<Term, Substituted>
|
||||
}
|
||||
|
|
Reference in a new issue