Skip to main content

Module expression

Module expression 

Source
Expand description

Expression language for DerivedParameter.

A declarative AST — literals, parameter references, binary/unary ops, built-in functions, and conditionals — serde-able end to end so plan files fingerprint deterministically. Evaluated against a ValueBindings map (the already-bound parameter values).

Type checking happens at Expression::eval: an expression is only statically checked for shape at construction (the AST type system does that); kind errors surface at bind time with DerivationError::TypeMismatch. This matches the upstream Java behaviour where compute() throws at runtime.

Enums§

BinOp
Binary operators.
BuiltinFn
Built-in functions.
DerivationError
Errors produced at Expression::eval time.
EvalValue
Typed value produced by Expression::eval.
Expression
An expression tree. Serde-able end to end.
Literal
A literal value embedded in an expression.
UnOp
Unary operators.

Type Aliases§

ValueBindings
Parameter-name → value lookup passed to Expression::eval.