On May 20, 8:17 am, Don Stockbauer <
donstockba...@hotmail.com> wrote:
> Brilliant, eh??????
The Point is, given this program (i.e. Peano's 1st 2 Postulates)
8 isnumber 0
9 isnumber [ successor X ]
isnumber X
It demonstrates a FAILED BRANCH on the Logic Trace.
http://blockprolog.com/nat-s-dog.png
The fact is is a simple type check is only indicative of a partially
running PROLOG interpreter.
------------------------------
This Shows how PROLOG doesn't actually RUN ANY CODE AT ALL!
It pattern matches your command keyword by keyword
and finds matches to any procedures that may perform the task
and runs those procedures trial and error.
This is a Great Advantage for SETS of parallel code all lumped
together in the one PROGRAM_SET.
Pure PROLOG has 0 COMMANDS! You define all your own commands and
PROLOG just finds them.
Herc