REPL checkpoint
This commit is contained in:
parent
69c156024a
commit
1b3280a947
21 changed files with 503 additions and 34 deletions
|
@ -39,6 +39,11 @@ class Predicate : Resolvent {
|
|||
*/
|
||||
fun add(clause: Clause) {
|
||||
require(clause.functor == functor) { "Clause functor does not match predicate functor" }
|
||||
|
||||
if (Debug.on) {
|
||||
println("Adding clause $clause to predicate $functor")
|
||||
}
|
||||
|
||||
clauses.add(clause)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue