Structs§
- Ast
- Entity
Body - Typed body of an
entitydeclaration: a sequence of fields. - Enum
Decl - Enum
Member - Field
Decl - One field of a
recordor typedentitybody. - Field
Type Ref - A possibly alias-qualified symbol reference:
Orderoralias.Order. Used byquantity<>,ref<>, and named field types. - File
Metadata - File-level metadata from header annotations
- Import
Decl - Import declaration for a module file
- Import
Item - Mapping
Rule - Metric
Metadata - Metric declaration AST node
- Operation
Decl - Policy
Binding - Policy
Metadata - Policy metadata
- Projection
Override - Record
Decl - Spanned
Enums§
- AstNode
- AST Node types
- Field
Constraint Decl - Authored field constraint; validation maps these to the closed enum and type-checks the operand against the field type.
- Field
Type - Type of a record/entity field. Closes the v0.1 type model: scalars,
quantity<Unit>,ref<Target>,list<...>, and named symbol references. - Import
Specifier - Operation
Clause - One authored operation clause. Strings carry the raw symbol_ref / kind text; the application module resolves and lowers them.
- Policy
Kind - Policy
Modality - Target
Format
Functions§
- ast_
to_ graph - Convert AST to Graph
- ast_
to_ graph_ with_ options - parse_
expression_ from_ str - Parse a single expression string into an Expression AST node.
- parse_
source - Parse source code into an AST