This library module writes out to standard output a clause or a list of clauses.
Usage:pretty_print(Cls,Flags)
Prints each clause in the list Cls after numbering its variables.
Usage:pretty_print(Cls,Flags,Ds)
Prints each clause in the list Cls after using the corresponding variable names dictionary in Ds to name its variables.
clauses([]). clauses([_1|_2]) :- clause(_1), clauses(_2). clauses(_1) :- clause(_1).
clause(_1) :- clterm(_1). clause((_1,_2)) :- clterm(_1), term(_2).
clterm(clause(_1,_2)) :- cgoal(_1), body(_2). clterm(directive(_1)) :- body(_1). clterm((_1:-_2)) :- cgoal(_1), body(_2). clterm(_1) :- cgoal(_1).
Usage:body(X)
X is a printable body.
Usage:flag(X)
X is a flag for the pretty-printer.