You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| doc | 2 years ago | |
| scripts | 2 years ago | |
| src | 2 years ago | |
| tests | 2 years ago | |
| Android.bp | 2 years ago | |
| CONTRIBUTING.md | 2 years ago | |
| Cargo.toml | 2 years ago | |
| LICENSE | 2 years ago | |
| OWNERS | 2 years ago | |
| README.md | 2 years ago | |
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