Crates.io | pddl-parser |
lib.rs | pddl-parser |
version | 0.2.3 |
source | src |
created_at | 2023-05-08 16:15:30.821334 |
updated_at | 2024-02-12 10:41:22.738406 |
description | A Rust library for parsing PDDL files |
homepage | |
repository | https://github.com/MrRobb/pddl-parser |
max_upload_size | |
id | 859911 |
size | 679,547 |
Parser for PDDL (Planning Domain Definition Language) files.
Add this to your Cargo.toml
:
pddl-parser = "0.1.0"
use pddl_parser::domain::Domain;
fn main() {
let domain_file = include_str!("../tests/domain.pddl");
let domain = Domain::parse(domain_file);
domain.predicates.iter().for_each(|p| println!("{:?}", p.name));
}
:strips
:typing
:equality
:fluents
:adl
:durative-actions
:derived-predicates
:numeric-fluents
:preferences
:constraints
:action-costs
:conditional-effects
:probabilistic-effects
:reward-effects
Parsing:
PDDL Features
Testing:
Error handling:
Documentation: