Download lpdoc Reference Manual - pdf
Transcript
Chapter 11: Auto Documenter Output for the Example Module 75 11 Auto Documenter Output for the Example Module Author(s): Alan Robinson, David H.D. Warren. Version: 0.1#3 (2001/1/2) This is where general comments on the file go. In this case the file is a library which contains some assertion examples for testing the automatic documentation system. 11.1 Usage and interface (example_module) • Library usage: :- use_module(library(example_module)). • Exports: − Predicates: q/1, q/2, r/1, t/5, u/3, w/1, p/5. − Properties: long/1. − Regular Types: bar/1, baz/1, aorb/1, tree_of/2, list_or_aorb/2. − Multifiles: p/3. • Other modules used: − Application modules: bar. − Files of module user: foo. − System library modules: assertions/native_props, engine/basic_props. − Internal (engine) modules: hiord_rt, arithmetic, atomic_basic, attributes, basic_props, basiccontrol, data_facts, exceptions, io_aux, io_basic, prolog_flags, streams_basic, system_info, term_basic, term_compare, term_typing. 11.2 Documentation on exports (example_module) bar/1: REGTYPE Usage: bar(X) − Description: X is an acceptable kind of bar. baz/1: A regular type, defined as follows: baz(a). baz(b). REGTYPE