Skip to main content

Crate pdk_pel

Crate pdk_pel 

Source
Expand description

Policy Expression Language (PEL)

The Policy Expression Language (PEL) is an internal abstraction layer to evaluate DataWeave expressions.

§Overview

PEL provides:

  • Expression parsing and evaluation
  • Runtime environment for expression execution
  • Context management for variable references
  • Type handling and coercion

§Features

  • experimental_coerced_type: USE AT OWN RISK: Enables experimental type coercion features. This feature enables reading objects as their original representation as strings.

Modules§

expression
Expression types for the Policy Expression Language (PEL).
parser
Parser for converting PEL expressions into its internal representation.
runtime
Runtime environment for executing PEL expressions.

Structs§

ContextId
A unique identifier for a context in the PEL runtime.
Location
Represents a location in the source Dataweave expression, typically used for error reporting.
Reference
A reference to a specific slot within a context.