public final class Op extends AbstractSingleResultPredicate
op(X,Y,Z)
Allows functors (names of predicates) to be defined as "operators". The use of operators allows syntax to be easier
to write and read. Z
is the atom that we want to be an operator, X
is the precedence class
(an integer), and Y
the associativity specifier. e.g. op(1200,xfx,':-')
Constructor and Description |
---|
Op() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(Term arg1,
Term arg2,
Term arg3) |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAlwaysCutOnBacktrack
protected boolean evaluate(Term arg1, Term arg2, Term arg3)
evaluate
in class AbstractSingleResultPredicate
Copyright © 2024. All rights reserved.