| .. | ||
| doc | ||
| scripts | ||
| src | ||
| tests | ||
| Android.bp_disable | ||
| Cargo.toml | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| OWNERS | ||
| README.md | ||
Packet Description Language (PDL)
PDL is a domain specific language for writing the definition of binary protocol packets. Parsing and validating packets from raw bytes is tedious and error prone in any language. PDL generates memory safe and tailored backends for mulitple target languages:
- Rust
- C++
- Python
How to use PDL
- Write the protocol definition
cargo run my-protocol.pdl --output-format rust > my-protocol.rs
Language specific instructions are provided in another section.
Supported Features
- Scalar values
- Enumerators
- Arrays
- Nested packets
- Conditional packet derivation
- Custom field definitions