Next: Programs
Up: How to run programs
Previous: Compiling and loading
Contents
Index
Another way to run a program is to consult it directly into the program
area without compilation. It is possible to trace the execution of consulted
programs but not compiled programs. To consult a program in
a file into the program area, type
consult(file-name)
or simply
[file-name].
To see the consulted or dynamically asserted clauses in the program area, use
listing
and to see the part of the clauses defining a predicate Atom/Arity,
use
listing(Atom/Arity)
Neng-Fa Zhou
1999-11-24