| Crates.io | pddlp |
| lib.rs | pddlp |
| version | 0.1.7 |
| created_at | 2024-02-17 21:18:49.189648+00 |
| updated_at | 2024-06-07 18:47:43.721347+00 |
| description | A PDDL Parser |
| homepage | |
| repository | https://github.com/jamadaha/pddlp |
| max_upload_size | |
| id | 1143539 |
| size | 77,479 |
A simple, fast, and robust PDDL parser
pddlp has three goals:
let input = "(define (problem prob)
(:objects o1)
(:init (p o1))
(:goal (not (p o3)))
)";
let problem = pddlp::problem::parse(&input)?;
assert_eq!(problem.name, Some("prob"));
assert_eq!(problem.domain, None);
assert_eq!(problem.objects, Some(vec![pddlp::problem::Object { name: "o1", type_name: None }]));
//...
Benchmarked on a AMD Ryzen 5 5600X 6-Core Processor × 6 with Criterion
| Throughput | Time to Parse (see here) | |
|---|---|---|
| Domain | 436 MiB/s | 2 µs |
| Problem | 468 MiB/s | 523 ns |
| Plan | 507 MiB/s | 93 ns |