lists all database predicates with the given name
listing(test_predicate)
listing(PredName) (i)
atom(PredName) (i) Name of the predicates to be listed.
This is a standard prolog built-in. Listing() will write all clauses to the current output stream, whose predicate name can be matched to the PredName atom, no matter what their argument count is.
consult('queens.pro'),
listing(_).
asserta(hello),
asserta(( hello :- write("Hello World),nl )),
asserta( dont_list ),
listing(hello)
No runtime errors.
prolog-process, client-server, object
database , clause , assertz , asserta , op , consult , retract , retractall