Skip to main content

Module ast

Module ast 

Source

Structs§

Ast
EntityBody
Typed body of an entity declaration: a sequence of fields.
EnumDecl
EnumMember
FieldDecl
One field of a record or typed entity body.
FieldTypeRef
A possibly alias-qualified symbol reference: Order or alias.Order. Used by quantity<>, ref<>, and named field types.
FileMetadata
File-level metadata from header annotations
ImportDecl
Import declaration for a module file
ImportItem
MappingRule
MetricMetadata
Metric declaration AST node
OperationDecl
PolicyBinding
PolicyMetadata
Policy metadata
ProjectionOverride
RecordDecl
Spanned

Enums§

AstNode
AST Node types
FieldConstraintDecl
Authored field constraint; validation maps these to the closed enum and type-checks the operand against the field type.
FieldType
Type of a record/entity field. Closes the v0.1 type model: scalars, quantity<Unit>, ref<Target>, list<...>, and named symbol references.
ImportSpecifier
OperationClause
One authored operation clause. Strings carry the raw symbol_ref / kind text; the application module resolves and lowers them.
PolicyKind
PolicyModality
TargetFormat

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