RetractAll
This commit is contained in:
parent
4d334c1600
commit
1179e6a29b
4 changed files with 94 additions and 16 deletions
|
@ -94,6 +94,7 @@ open class Preprocessor {
|
|||
// Database
|
||||
term.functor == "dynamic/1" -> Dynamic((args[0] as Atom).name)
|
||||
term.functor == "retract/1" -> Retract(args[0])
|
||||
term.functor == "retractall/1" -> RetractAll(args[0])
|
||||
term.functor == "assert/1" -> {
|
||||
if (args[0] is Rule) {
|
||||
Assert(args[0] as Rule)
|
||||
|
@ -138,4 +139,4 @@ open class Preprocessor {
|
|||
|
||||
return prepped
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue