YAP 7.1.0
Block Diagram

This library provides a way of visualizing a prolog program using modules with blocks. More...

Detailed Description

This library provides a way of visualizing a prolog program using modules with blocks.

To use it use: :-use_module(library(block_diagram))


Class Documentation

◆ make_diagram/2

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

◆ make_diagram/5

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

◆ process/2

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)