Skip to content

0.0.5

Compare
Choose a tag to compare
@sunsided sunsided released this 05 May 20:55
· 44 commits to main since this release
7742eae

pddl/0.0.5

To use it in your project, add:

[dependencies]
pddl = "0.0.5"

Changes since 0.0.4

Added

  • Added TryInto<PreconditionGoalDefinition> for PreconditionGoalDefinitions to get the only element of the list if it is a one-element list, or None.
  • TryInto implementations were added for CEffect to allow deconstruction into PEffect, ForallCEffect and WhenCEffect.
  • Added the Parser::from_str method that performs a Parse::parse but discards the remaining unparsed text.

Changes

  • The PrefConGD::And variant was removed and replaced with the PrefConGDs type.
  • The Effect::All and Effect::Single variants were removed and the Effect type was changed to a struct wrapping a vector Effects.
  • The CEffect variants were changed to wrap ForallCEffect and WhenCEffect types.
  • The parser now uses nom-greedyerror and nom_locate to improve error handling.
  • The Parser trait now takes an T: Into<Span<'a>> argument.
  • All parser methods now take an T: Into<Span<'a>> argument.

Fixed

  • Fixed an issue where (and ...) conditional effects would be accidentally parsed into an atomic formula with predicate and.