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 dw2pel;
19mod json;
20pub mod pel;
21mod test_grammar;
22mod test_pel;
23pub use dw2pel::dw2pel;