Skip to main content

dw_parser/
lib.rs

1// Copyright (c) 2026, Salesforce, Inc.,
2// All rights reserved.
3// For full license text, see the LICENSE.txt file
4
5//! PDK DataWeave (DW) to PEL Parser Library
6//!
7//! Provides functionality for parsing DataWeave expressions into PEL.
8//!
9//! ## Primary types
10//!
11//! - [`pel::InputContext`]: Input context containing inputs (e.g. payload, attributes) and DW functions (e.g. substringBefore, fromBase64) for compiling the expression.
12//! - [`pel::CompilationResult`]: Contains the compiled PEL expression if compile was successful or error messages upon failure.
13//!
14
15extern crate peg;
16
17mod dw;
18mod json;
19pub mod pel;
20mod test_grammar;
21mod test_pel;