| 
    SPRAAK
    
   | 
 
Data Structures | |
| class | ModuleInfo | 
| Represents a parsed python file.  More... | |
| class | ClassInfo | 
| Represents a parsed class.  More... | |
| class | FunctionInfo | 
| Represents a parsed function.  More... | |
| class | ParamInfo | 
| Represents a function parameter.  More... | |
Functions | |
| def | match_tree | 
| Utility function to find specific sub-trees of the parse tree.  More... | |
| def | search_tree | 
| Utility function to find all subtrees starting with a specific node name.  More... | |
| def | conv | 
| Utility function that converts token and symbol id numbers to readable strings.  More... | |
| def | pprint_ast | 
| Utility function to dump a parse tree to stdout.  More... | |
| def | split_comment | 
| Looks for an optional spr_* tag at the start of a comment.  More... | |
| def | is_empty_line | 
| def | ws_len | 
| def | parse_endlist_line | 
| def | parse_itemlist_line | 
| def | convert_comment_lists | 
| def | tag_from_name | 
| Matches access level tags to functions based on naming convention.  More... | |
| def | ast_to_tok | 
| Walks a parse tree and returns a list of all encountered token nodes.  More... | |
| def | convert | 
| Convert python source code.  More... | |
| def | main | 
| Main function.  More... | |
| def spr_pydoc_filter.match_tree | ( | pat, | |
| tree | |||
| ) | 
Utility function to find specific sub-trees of the parse tree.
| pat | List of symbol and token ids that should be matched. | 
| tree | The parse tree to search in. | 
| def spr_pydoc_filter.search_tree | ( | symb, | |
| tree | |||
| ) | 
Utility function to find all subtrees starting with a specific node name.
| symb | Symbol or token id to search for. | 
| tree | The parse tree to search in. | 
| def spr_pydoc_filter.conv | ( | ast | ) | 
Utility function that converts token and symbol id numbers to readable strings.
Used mainly for debuging.
| ast | The parse tree with ids. | 
| def spr_pydoc_filter.pprint_ast | ( | ast | ) | 
Utility function to dump a parse tree to stdout.
| ast | The parse tree to be dumped. | 
| def spr_pydoc_filter.split_comment | ( | comment | ) | 
Looks for an optional spr_* tag at the start of a comment.
| comment | The comment that needs splitting. | 
| def spr_pydoc_filter.is_empty_line | ( | line | ) | 
| def spr_pydoc_filter.ws_len | ( | ws | ) | 
| def spr_pydoc_filter.parse_endlist_line | ( | line | ) | 
| def spr_pydoc_filter.parse_itemlist_line | ( | line | ) | 
| def spr_pydoc_filter.convert_comment_lists | ( | comment | ) | 
| def spr_pydoc_filter.tag_from_name | ( | name | ) | 
Matches access level tags to functions based on naming convention.
| name | A name of a function or method. | 
| def spr_pydoc_filter.ast_to_tok | ( | ast, | |
tok = None  | 
        |||
| ) | 
Walks a parse tree and returns a list of all encountered token nodes.
| ast | A parse tree. | 
| tok | An optional list in which the token nodes will be collected. | 
| def spr_pydoc_filter.convert | ( | fname, | |
stdout = None,  | 
        |||
tag_mask = None  | 
        |||
| ) | 
Convert python source code.
Convert python source code to a format supported by doxygen.
| fname | The file name holding the source code. | 
| stdout | The file object to which the converted code should be written. Defaults to stdout. | 
| tag_mask | A list of access level tags used to filter what should be documented. Defaults to all. | 
| def spr_pydoc_filter.main | ( | ) | 
Main function.
Expects one command-line argument, the input python file.
 1.8.6