Checkpoint
This commit is contained in:
parent
39c3af4ba5
commit
da21d890fb
39 changed files with 1166 additions and 48 deletions
20
src/prolog/builtins/control.kt
Normal file
20
src/prolog/builtins/control.kt
Normal file
|
@ -0,0 +1,20 @@
|
|||
package prolog.builtins
|
||||
|
||||
import prolog.components.terms.Atom
|
||||
|
||||
/**
|
||||
* Always fail.
|
||||
*/
|
||||
class Fail: Atom("fail")
|
||||
|
||||
/**
|
||||
* Same as fail, but the name has a more declarative connotation.
|
||||
*/
|
||||
typealias False = Fail
|
||||
|
||||
/**
|
||||
* Always succeed.
|
||||
*/
|
||||
class True: Atom("true")
|
||||
|
||||
// TODO Repeat/0
|
Reference in a new issue