222 Logic Programming With Prolog
Cut with failure 106-107, 212
Database 4, 109-117, 212
Declarative Interpretation of a Rule
vi, 16-17, 213 See also Procedural
Interpretation of a Rule
Declarative Program 52-54, 213
Directive 59, 213
Disjunction Operator 66-67, 213
dynamic Predicate 110, 169
Empty List 119, 215
Equality Operators 63-66, 213
Evaluate a Goal 5, 35-51, 213
Existentially Quantified Variable 24-
25, 220
Expert System viii
Fact vi, vii, 4, 13, 14, 114, 213
fail Predicate 94, 107, 169
Files 77-81, 214
findall Predicate 133-135, 170
Function 18, 214
Functor 10, 15, 16, 17, 18, 30, 219
functor Predicate 162, 170
get Predicate 73, 78, 141, 170
get0 Predicate 73, 78, 141, 170
Goal 1, 2, 3, 21-23, 30, 214
halt Predicate 2,3, 171
Head of a Clause 13, 211
Head of a List 120, 215
Head of a Rule 13, 14, 211
Infix Operator 57, 214
Input Stream 71, 73-74, 77, 78-79,
214
integer Predicate 171
is Operator 59, 182
length Predicate 126, 171
Lexical Scope of a Variable 23-24,
215
List 11, 119-124, 215
List Constructor Notation 120-124
List Element 11, 119, 215
List Processing ix, 119-135, 215
listing Predicate 7-8, 171
Loading Clauses 19-21, 109
Logic Programming v, 215
Logical Operators 66-67
Looping 85-96, 216
member Predicate 125, 131, 172
name Predicate 137-138, 172
Neck of a Clause 14, 211
Neck Operator 14, 211
nl Predicate 2, 172
not Operator 66, 182
op Predicate 58-59, 172
Operator 57-59, 62, 63-67, 149, 216
Operator Precedence 58, 62, 216
Output Stream 17, 69-70, 77, 214
Postfix Operator 58, 216
Precedence Value See Operator
Precedence
Predicate 2, 4, 15-18, 30, 59, 217
Prefix Operator 57, 217
Procedural Interpretation of a Rule
vi, 16-17, 217 See also
Declarative Interpretation of a
Rule
Program v, 217
Prolog v-x, 217
Prompt See System Prompt
put Predicate 73, 173
Query vi, vii, 3, 218
Re-evaluate a Goal 51, 218
read Predicate 71, 78, 173
reconsult Predicate 19-21, 109, 173
Recursion ix, 18, 85-90, 129-132
Recursive Definition of a Predicate
18, 218
Relational Operator 62, 63-66, 218
repeat Predicate 91-93, 173
Resatisfy a Goal 39, 42-44, 218
retract Predicate 111, 174
retractall Predicate 111, 174