Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain axioms #66

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Domain axioms #66

wants to merge 4 commits into from

Conversation

beasteers
Copy link

@beasteers beasteers commented May 16, 2023

Proposed changes

This adds support for parsing PDDL files with :axiom statements (defined here).

Fixes

Fixes #65

Types of changes

  • adds :axiom, :vars, :context, :implies statements to the lark language specification
  • adds parsers for them in the DomainParser
  • adds an Axiom class to pddl.logic.axioms

Checklist

  • I have read the CONTRIBUTING doc
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works

Further Comments

I defined axioms using the same syntax symbols as actions (context -> precondition, effect -> implies), if you could confirm that this is correct, or if I'm missing some nuance that would be great, thanks!

?axiom_body_def: [CONTEXT emptyor_pregd] [IMPLIES emptyor_effect]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for :domain-axioms requirement
1 participant