codist.ast

Utilities for converting abstract syntax trees to codist.tree.Tree objects

Functions

ast_silhouette(node)

Returns a Tree containing only AST node type information

parse_ast_silhouette(code)

Parses the given code and returns a Tree containing only AST node type information.

ast_silhouette(node: AST) Tree[str]

Returns a Tree containing only AST node type information

parse_ast_silhouette(code: str) Tree[str]

Parses the given code and returns a Tree containing only AST node type information.