Skip to main content

Module type_expr

Module type_expr 

Source
Expand description

Recursive CEL type expressions plus the small resolver boundary they need.

Parsing stays in cel-parser, while leaf-name lookup is delegated to a TypeResolver. This keeps CEL independent of adam-lang while still allowing a host to register custom types for typed arrays and future typed CEL surfaces.

Structs§

ResolvedArrayType
The resolved descriptor for one complete array type annotation.
ResolvedLeafType
One resolved scalar leaf type.

Enums§

ResolvedType
A resolved recursive CEL type expression.
TypeExpr
type_expression = identifier [ "(" [ type_expression { "," type_expression } ] ")" ] | "[" type_expression "]" | "(" [ type_expression ["," [ type_expression { "," type_expression } ]] ] ")".
TypeIdentity
Identifies nominal leaves and recursive structural types independently of names.

Traits§

TypeResolver
Resolves one named leaf type for CEL type expressions.

Functions§

builtin_type_resolver
Returns the builtin scalar and finite range type-function resolver.
resolve_builtin_named_type
Resolves name/args against cel-parser’s own built-in type resolver, without allocating a TypeResolver trait object.