type_bridge.generator.parser¶
parser
¶
TQL schema parser backed by the Rust type_bridge_core core.
parse_tql_schema
¶
Parse a TQL schema string into a :class:ParsedSchema.
Parsing runs entirely through the Rust type_bridge_core core. Annotations
and docstrings (extracted from comments) are applied on the Python side.
Raises:
| Type | Description |
|---|---|
RuntimeError
|
if the Rust core is unavailable (it is a default dependency, so this is a guard, not a fallback). |
ValueError
|
if the Rust parser rejects the schema (propagated from core). |