1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Copyright (c) 2026, Salesforce, Inc.,
// All rights reserved.
// For full license text, see the LICENSE.txt file
//! 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.
//!
/// Runtime environment for executing PEL expressions.
/// Represents a location in the source Dataweave expression, typically used for error reporting.
///
/// The `start` and `end` fields represent the character offsets in the source string.
/// A unique identifier for a context in the PEL runtime.
///
/// Contexts are used to manage scopes and variable lookups during expression evaluation.
/// Each context has a unique ID that can be used to reference it.
;
/// A reference to a specific slot within a context.
///
/// References are used to track variable lookups and other context-dependent operations.