New ASCII Art Tree Subsystem
The conversion of object trees to ASCII-art strings must be generalized.
Currently only ast.Node subclasses can be converted. The general algorithm and interface should allow any Python object to be converted.
This is necessary for the new object architecture.
Whiteboard
Possible interface:
- method: aa_tree(self, depth, left_margin_string, memo_set) ??? __siml_aa_tree__
- If present this function is called to create the tree
- memo_set: store IDs of objects that have already been converted, to avoid infinite recursion.
- data member: __siml_
- Can be present in class or instance
- Contains configuration data
- top_names: [str]
- id_names: [str]
- short_names: [str]
- long_names: [str]
- bottom_names: [str]
- short_types: [type]
- long_types: [type]
- tree_maker_name: str
- left_margin_string: str
- method: make_tree(self, tree_obj, depth, memo_set, left_margin_string, )
Work Items
Dependency tree
* Blueprints in grey have been implemented.