doc_process.pl -- Process source documentation
The pldoc module processes structured comments in Prolog source files into well formatted HTML documents.
- prolog:predicate_summary(+PI, -Summary) is semidet[multifile]
- Provide predicate summaries to the XPCE class
prolog_predicate
, used by the IDE tools. - is_structured_comment(+Comment:string, -Prefixes:list(codes)) is semidet
- True if Comment is a structured comment that should use Prefixes to extract the plain text using indented_lines/3.
- doc_file_name(+Source:atom, -Doc:atom, +Options:list) is det
- Doc is the name of the file for documenting Source.
- doc_file_has_comments(+Source:atom) is semidet
- True if we have loaded comments from Source.
- doc_comment(?Objects, -Pos, -Summary:string, -Comment:string) is nondet
- True if Comment is the comment describing object. Comment is
returned as a string object containing the original from the
source-code. Object is one of
- Name / Arity
- Predicate indicator
- Name // Arity
- DCG rule indicator. Same as Name/Arity+2
- module(ModuleTitle)
- Comment appearing in a module.
If Object is unbound and multiple objects share the same description, Object is unified with a list of terms described above.
- process_comments(+Comments:list, +TermPos, +File) is det
- Processes comments returned by read_term/3 using the
comments
option. It creates clauses of the form- '$mode'(Head, Det)
- '$pldoc'(Id, Pos, Summary, Comment)
- '$pldoc_link'(Id0, Id)
where Id is one of
- module(Title)
- Generated from /** <module> Title */
- Name / Arity
- Generated from Name(Arg, ...)
- Name // Arity
- Generated from Name(Arg, ...)//
- parse_comment(+Comment, +FilePos, -Parsed) is semidet
- True when Comment is a structured comment and Parsed is its
parsed representation. Parsed is a list of the following terms:
- section(Id, Title, Comment)
- Generated from /** <module> Title Comment */ comments.
- predicate(PI, Summary, Comment)
- Comment for predicate PI
- link(FromPI, ToPI)
- Indicate that FromPI shares its comment with ToPI. The actual comment is in ToPI.
- mode(Head, Determinism)
- Mode declaration. Head is a term with Mode(Type) terms and
Determinism describes the associated determinism (
det
, etc.).
- comment_modes(+Comment, -Modes:list) is semidet
- doc_clean(+Module) is det
- Clean documentation for Module.