Registry
registry
Language-backend registry — auto-detects a file's backend by extension.
The registry is the single dispatch point: backend_for(path) returns the
:class:LanguageBackend that owns the file's suffix, or None for an
unsupported extension. supported_suffixes() powers file discovery so the
analyzer collects every language's files, not just .py.
The Python backend is always registered. Optional backends (TypeScript, Svelte)
register themselves on first import iff their optional tree-sitter grammar is
installed (axm-ast[typescript]), mirroring axm-echo's lazy-torch convention.
backend_for(path)
get_backend(suffix)
Return the backend registered for suffix, or None if unsupported.
register_backend(backend)
Register backend for each of its suffixes (idempotent, last wins).
supported_suffixes()
Return every registered file suffix (used for multi-language discovery).