Next: Object type determination, Previous: Method calls and dereferencing, Up: Syntax
Kite has built-in support for documentation strings.
Documentation strings begin with /[ and end with /]. The string can span multiple lines. Example:
/[Top of file]/ class Test /[A class.]/ [ property prop /[A property.]/, construct() /[A constructor.]/ [ ... ], destruct() /[A destructor.]/ [ ... ], operator plus(rhs) [ ... ], method x( arg /[A method argument.]/ ) /[A method.]/ [ ... ] ];
To generate documentation, use System.doc|generate_doc()
:
import "System.doc"; import "your.package"; out = make System.doc.outputters.html_outputter(); doc = System.doc|generate_doc(your.package); doc|output(out);
An example of kdoc documentation (generated from System.doc) can be found at http://www.kite-language.org/kdoc-test/System.doc.html.
The following constructs can have documentation strings:
class
property
method
construct
destruct
operator