March 2001
Intermediate to advanced
400 pages
8h 35m
English
At this point, we have covered the fundamentals that make a logic engine work. If you understand structures, variables, facts, rules, and programs, you can create query or logic languages that use the engine these objects create. In practice, you may want several additional features, including
Comparisons
Arithmetic
Evaluation
Not
Anonymous variables
Lists
A Comparison object compares the values of two terms. These terms can be either variables or structures, but if they are structures, they must be atoms. This restriction follows from the fact that there is no conventional way to compare two structures, such as
city(denver, 5280) city(richmond, 19)
If you compare these facts by an alphabetic ...
Read now
Unlock full access