0.0.5
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>
forPreconditionGoalDefinitions
to get the only element of the list if it is a one-element list, orNone
. TryInto
implementations were added forCEffect
to allow deconstruction intoPEffect
,ForallCEffect
andWhenCEffect
.- Added the
Parser::from_str
method that performs aParse::parse
but discards the remaining unparsed text.
Changes
- The
PrefConGD::And
variant was removed and replaced with thePrefConGDs
type. - The
Effect::All
andEffect::Single
variants were removed and theEffect
type was changed to a struct wrapping a vectorEffects
. - The
CEffect
variants were changed to wrapForallCEffect
andWhenCEffect
types. - The parser now uses nom-greedyerror and nom_locate to improve error handling.
- The
Parser
trait now takes anT: 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 predicateand
.