refactor: Rework
This commit is contained in:
parent
ac55ed4c64
commit
6469dd6ced
34 changed files with 593 additions and 552 deletions
|
@ -2,11 +2,6 @@ package prolog.ast.arithmetic
|
|||
|
||||
import prolog.ast.terms.Atom
|
||||
import prolog.ast.terms.Operator
|
||||
import prolog.ast.terms.Term
|
||||
import prolog.logic.Substituted
|
||||
|
||||
abstract class ArithmeticOperator(symbol: Atom, leftOperand: Expression, rightOperand: Expression) :
|
||||
Operator(symbol, leftOperand, rightOperand), Expression {
|
||||
// Operators should overload the evaluate method to perform the operation
|
||||
abstract override fun evaluate(subs: Substituted): Pair<Term, Substituted>
|
||||
}
|
||||
Operator(symbol, leftOperand, rightOperand), Expression
|
||||
|
|
Reference in a new issue