| Home | Trees | Index | Help |
|
|---|
|
|
ParsedDocstrings
support the following operations:
The parse()
function provides a single interface to the epydoc.markup
package: it takes a docstring and the name of a markup language;
delegates to the appropriate parser; and returns the parsed docstring
(along with any errors or warnings that were generated).
ParsedDocstring output generation methods
(to_format()) use a DocstringLinker to link the docstring output with the
rest of the documentation that epydoc generates.
DocstringLinkers are currently responsible for translating
two kinds of crossreference:
A parsed docstring's fields can be extracted using the ParsedDocstring.split_fields() method. This method
divides a docstring into its main body and a list of Fields, each of
which encodes a single field. The field's bodies are encoded as
ParsedDocstrings.
|
|||
| |||
|
|||
| ParsedDocstring | A standard intermediate representation for parsed docstrings that can be used to generate output. | ||
| Field | The contents of a docstring's field. | ||
| DocstringLinker | A translator for crossreference links into and out of a
ParsedDocstring. |
||
| ConcatenatedDocstring | |||
| Errors and Warnings | |||
|---|---|---|---|
| ParseError | The base class for errors generated while parsing docstrings. | ||
|
|||
| ParsedDocstring |
parse(docstring,
markup='plaintext',
errors=None,
**options)
Parse the given docstring, and use it to construct a ParsedDocstring.
|
||
|
register_markup_language(name,
parse_function)
Register a new markup language named name, which can
be parsed by the function parse_function.
|
|||
|
_parse_warn(estr)
Print a warning message. |
|||
| Utility Functions | |||
|---|---|---|---|
| ParsedDocstring | parse_type_of(obj) | ||
|
|||
| _markup_language_registry | |||
| MARKUP_LANGUAGES_USED | |||
| _parse_warnings | Used by _parse_warn. | ||
| SCRWIDTH | The default width with which text will be wrapped when formatting the output of the parser. | ||
|
|||
ParsedDocstring. If any fatal ParseErrors are
encountered while parsing the docstring, then the docstring will be
rendered as plaintext, instead.
|
name, which can be
parsed by the function parse_function.
|
|
|
|
|||
_markup_language_registry
|
MARKUP_LANGUAGES_USED
|
_parse_warningsUsed by _parse_warn.
|
SCRWIDTHThe default width with which text will be wrapped when formatting the output of the parser.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 3.0alpha2 on Tue Apr 11 17:31:29 2006 | http://epydoc.sf.net |