sec_parser.semantic_tree.semantic_tree
Classes
Module Contents
- class sec_parser.semantic_tree.semantic_tree.SemanticTree(root_nodes: list[sec_parser.semantic_tree.tree_node.TreeNode])
- _root_nodes
- __iter__() collections.abc.Iterator[sec_parser.semantic_tree.tree_node.TreeNode]
Iterate over the root nodes of the tree.
- __len__() int
- property nodes: collections.abc.Iterator[sec_parser.semantic_tree.tree_node.TreeNode]
Get all nodes in the semantic tree. This includes the root nodes and all their descendants.
- render(*, pretty: bool | None = True, ignored_types: tuple[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement], Ellipsis] | None = None, char_display_limit: int | None = None, verbose: bool = False) str
Render the semantic tree as a human-readable string.
Syntactic sugar for a more convenient usage of render.
- print(*, pretty: bool | None = True, ignored_types: tuple[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement], Ellipsis] | None = None, char_display_limit: int | None = None, verbose: bool = False, line_limit: int | None = None) None
Print the semantic tree as a human-readable string.
Syntactic sugar for a more convenient usage of render.