![]() |
YAP 7.1.0
|
This library provides a way of visualizing a prolog program using modules with blocks. More...
This library provides a way of visualizing a prolog program using modules with blocks.
To use it use: :-use_module(library(block_diagram))
class make_diagram/2 |
make_diagram(+Inputfilename, +Ouputfilename)
This will crawl the files following the use_module, ensure_loaded directives withing the inputfilename The result will be a file in dot format You can make a pdf at the shell by asking dot -Tpdf filename > output.pdf
class make_diagram/5 |
make_diagram(+Inputfilename, +Ouputfilename, +Predicate, +Depth, +Extension)
The same as make_diagram/2 but you can define how many of the imported/exporeted predicates will be shown with predicate, and how deep the crawler is allowed to go with depth The extension is used if the file use module directives do not include a file extension
class process/2 |
process(+ StreamInp, + Goal)
For every line LineIn in stream StreamInp, call call(Goal,LineIn)
meta
For every line LineIn in stream StreamInp, call call(Goal,LineIn)