Checkpoint

This commit is contained in:
Tibo De Peuter 2025-04-05 17:36:37 +02:00
parent 39c3af4ba5
commit da21d890fb
39 changed files with 1166 additions and 48 deletions

View file

@ -0,0 +1,10 @@
package prolog.builtins2.control
import prolog.components.terms.Atom
import prolog.components.Operand
import prolog.components.Operator
/**
* Conjunction (and). True if both Goal1 and Goal2 are true.
*/
class Conjunction(leftOperand: Operand, rightOperand: Operand) : Operator(Atom(","), leftOperand, rightOperand)

View file

@ -0,0 +1,10 @@
package prolog.builtins2.control
import prolog.components.terms.Atom
import prolog.components.Operand
import prolog.components.Operator
/**
* Disjunction (or). True if either Goal1 or Goal2 succeeds.
*/
class Disjunction(leftOperand: Operand, rightOperand: Operand) : Operator(Atom(";"), leftOperand, rightOperand)