listing

BAP Online Manuals : Library Reference : Library by Name : listing
Previous: killmenu
Next: load

6.2.77. listing

lists all database predicates with the given name

SYNOPSIS

listing(test_predicate)

SYNTAX

listing(PredName) (i)

ARGUMENTS

atom(PredName) (i) Name of the predicates to be listed.

DESCRIPTION

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.

EXAMPLE

consult('queens.pro'),
listing(_).

asserta(hello),
asserta(( hello :- write("Hello World),nl )),
asserta( dont_list ),
listing(hello)

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

database , clause , assertz , asserta , op , consult , retract , retractall


BAP Online Manuals : Library Reference : Library by Name : listing
Previous: killmenu
Next: load