Expand description
The loose syntax tree, one step away from the grammar.
This mirrors what was written, not what it means: no types are resolved, no names are mapped, no relation has two sides yet. Lowering turns it into the strict IR.
The separation is not ceremony. Relation resolution needs the complete set of models, which does not exist part-way through a parse, so an IR built directly in the parse walk would be wrong for any schema that references a model before declaring it — which is most of them.
Structs§
- Ast
- A parsed schema file.
- Attr
- An
@attror@@attr, with its arguments. - Block
- A
datasourceorgeneratorblock. - Config
Entry - One
key = valueline inside a block. - Enum
Decl - An
enumdeclaration. - Field
Decl - A field within a
ModelDecl. - Model
Decl - A
modeldeclaration. - Variant
Decl - One variant of an
EnumDecl.