// Copyright (c) 2026, Salesforce, Inc.,
// All rights reserved.
// For full license text, see the LICENSE.txt file

//! PDK DataWeave (DW) to PEL Parser Library
//!
//! Provides functionality for parsing DataWeave expressions into PEL.
//!
//! ## Primary types
//!
//! - [`pel::InputContext`]: Input context containing inputs (e.g. payload, attributes) and DW functions (e.g. substringBefore, fromBase64) for compiling the expression.
//! - [`pel::CompilationResult`]: Contains the compiled PEL expression if compile was successful or error messages upon failure.
//!

extern crate peg;

mod dw;
mod dw2pel;
mod json;
pub mod pel;
mod test_grammar;
mod test_pel;
pub use dw2pel::dw2pel;
