Index: openacs-4/packages/acs-templating/tcl/doc-tcl-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/doc-tcl-procs.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-templating/tcl/doc-tcl-procs.tcl 21 Aug 2002 18:15:37 -0000 1.4 +++ openacs-4/packages/acs-templating/tcl/doc-tcl-procs.tcl 31 Aug 2002 02:01:41 -0000 1.5 @@ -67,22 +67,6 @@ } -# @private find_marker_indices -# given a body of text and a text marker, returns a list of position indices -# for each occurrence of the text marker - -# @param text body of text to be searched through -# @param marker the text-divider mark - -# @return list of indices of the position immediately preceding each -# occurrence of the text marker; if there are no occurrences -# of the text marker, returns a zero-element list - -# @see namespace doc -# @see proc doc::parse_file -# @see proc doc::parse_namespace doc.html#doc::parse_namespace -# @see proc doc::util::text_divider - ad_proc -private doc::util::find_marker_indices { text marker } { given a body of text and a text marker, returns a list of position indices for each occurrence of the text marker @@ -193,7 +177,6 @@ ad_proc -private template::util::proper_noun { string_ref } { - @private proper_noun capitalizes the first letter of a string @return returns formatted string (UNFINISHED. FIXME.) } { @@ -294,10 +277,6 @@ } -# @private set_proc_name_source_txt -# called by parse_comment_text -# @param comment_text this should include the source text - ad_proc -private doc::set_proc_name_source_text_comment_text { proc_block } { called by parse_comment_text @param comment_text this should include the source text @@ -543,34 +522,39 @@ ad_proc -private doc::parse_file { path } { Parse API documentation from a Tcl page API documentation is parsed as follows: - Document is scanned until a @namespace directive is encountered. + Valid directives in a procedure doc include: - - @author - - @param (for hard parameters) - - @see (should have the form namespace::procedure. A reference to an + - +

Reads the text for a file and scans for a namespace directive. When one is encountered, reads until the next namespace or EOF and calls doc::parse_namespace on the accumulated lines to get procedure documentation. - +

creates a multirow variable in the variable name designated by result_ref with columns namespace_name, proc_name, public_private, author, param, option, see, return and source_text - +

Note that this format is suitable for passing to array set for creating a lookup on namespace name. } {