topos.graphs.ast.dispatch

topos.graphs.ast.dispatch.language_file_suffixes(language)[source]

Return filename suffixes associated with language for source discovery.

class topos.graphs.ast.dispatch.ParserDispatch(tree_sitter_provider: 'TreeSitterProvider', native_provider: 'NativeAstProvider')[source]

Bases: object

tree_sitter_provider
native_provider
classmethod default()[source]
parse(source, language, backend='hybrid', file=None)[source]
capability_matrix()[source]
topos.graphs.ast.dispatch.get_dispatch()[source]
topos.graphs.ast.dispatch.reset_dispatch()[source]

Reset the module-level singleton. Intended for test isolation.

topos.graphs.ast.dispatch.parse_source(source, language, backend='hybrid', file=None)[source]
topos.graphs.ast.dispatch.get_capability_matrix()[source]