Skip to content

A simple parser for the Planning Domain Definition Language (PDDL) based on pyparsing.

License

Notifications You must be signed in to change notification settings

jens-classen/pddl_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A PDDL parser for Python

This repository provides a simple parser for the Planning Domain Definition Language (PDDL), using the pyparsing library.

It implements the BNF of PDDL 3.1 as described in:

Daniel L. Kovacs: Complete BNF description of PDDL 3.1 (completely corrected), 2011.

It is assumed that all keywords and identifiers are caseless (so :strips is identified with :STRIPS, and move-block with MOVE-BLOCK).

The two functions for parsing domain and problem files return an abstract syntax tree (AST) in the form of a dictionary.

The examples directory contains a few example files from standard benchmarks. To see their ASTs, run

$ pytest -s pddl_parser.py

About

A simple parser for the Planning Domain Definition Language (PDDL) based on pyparsing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages