Expand description
The types and the parser behind the pddl crate.
Depend on pddl instead: it re-exports everything in this crate and adds
the compile-time domain!, problem! and pddl! macros behind its
macros feature. This crate exists so that pddl-macros can use the
parser without depending on pddl, which re-exports it.
Re-exports§
pub use parsers::ParseError;parserpub use parsers::Parser;parserpub use pretty_print::Pretty;prettypub use pretty_print::PrettyPrinted;prettypub use pretty_print::PrettyRenderer;pretty
Modules§
- codegen
codegen - Loads a
Problemfor planning code thatpddl-codegengenerated from a domain. - parsers
parser - Provides the
Parsertrait and theParseErrorit reports. - pretty_
print pretty - Renders PDDL types back to PDDL text, wrapped to a target line width.
- sas_
plus sas-plus - Grounds a PDDL domain and problem into a Fast Downward SAS+ task.
- serde
serde - Serde support: PDDL domains and problems as JSON, YAML, TOML, NOVA or any other self-describing format.
- syntax
parser - The untyped syntax tree of PDDL text: atoms, parenthesized lists and comments, each with its byte range in the input.
- visitor
- Visitor traits for traversing PDDL structures.
Structs§
- Action
Definition - An action definition.
- Action
Symbol - An action symbol name.
- Atomic
Formula Skeleton - An atomic formula skeleton.
- Atomic
Function Skeleton - A numeric fluent, similar to a predicate, is a variable which applies to zero or more objects and maintains a value throughout the duration of the plan.
- Basic
Function Term - Usage
- Constants
- A set of constants.
- Derived
Predicate - A derived predicate.
- Domain
- The
Domaintype specifies a problem domain in which to plan. - Domain
Constraints Def - A domain constraints definition; wraps a
ConstraintGoalDescription. - Durative
Action Definition - A durative action represents an action which takes an amount of time to complete. The amount of time is expressible as either a value or as an inequality (allow for both fixed duration and ranged duration actions).
- Durative
Action Function Assignment - An timed effect assignment operation. Will perform the
specified assignment
atTimeSpecifierwhenNumericFluentsis allowed. - Durative
Action Symbol - A durative action symbol.
- Effects
- An effect. Occurs e.g. in a
ActionDefinition. - Equality
Atomic Formula - An equality atomic formula,
(= <t> <t>). - Fluent
Comparison - A fluent comparison used as part of a
GoalDescriptionwhenNumericFluentsis allowed. - Forall
Conditional Effect - Applies the specified effects for all listed variables.
- Function
Symbol - A function symbol name.
- Function
Term - A function term.
- Function
Type - A function type.
- Function
Typed - A typed function element.
- Function
Typed List - A list of typed elements.
- Functions
- A set of functions.
- Init
Elements - A wrapper around a list of
InitElementvalues. - Length
Spec - Deprecated since PDDL 2.1.
- Metric
Spec - A metric specification.
- Name
- A name.
- NotA
Multi Op - A
BinaryOpthat has noMultiOpequivalent:-or/. - Number
- A number.
- Objects
- A list of objects.
- Pddl
File - A PDDL file containing zero or more domains and problems.
- Precondition
Goal Descriptions - Zero, one or many precondition goal descriptions.
- Predicate
- A predicate name.
- Predicate
Atomic Formula - A predicate atomic formula,
(<predicate> <t>*). - Predicate
Definitions - A set of predicate definitions.
- Preference
- A preference.
- Preference
Constraint Goal Descriptions - A list of
PreferenceConstraintGoalDescriptionvalues. This represents the(and ...)variant of the PDDL definition, modeling cases of zero, one or many values. - Preference
Name - A name of a preference.
- Primitive
Type - A primitive type.
- Problem
- A domain-specific problem declaration.
- Problem
Constraints Def - A problem constraints definition; wraps a
PreferenceConstraintGoalDescriptions. - Problem
Goal Description - A problem goal description; wraps a
PreconditionGoalDescriptions. - Process
Definition - A PDDL+ process: continuous change that runs whenever its precondition holds.
- Requirements
- A set of domain requirements.
- Structure
Defs - A set of structure definitions.
- Timeless
- A timeless predicate.
- Typed
- A typed element.
- Typed
List - A list of typed elements.
- Types
- A set of types.
- Unknown
Keyword - A string that is not one of the keywords of a PDDL type, e.g.
"incr"for anAssignOp. - Variable
- A variable name.
- When
Conditional Effect - Applies the specified effects for all listed variables.
Enums§
- Assign
Op - An assignment operation.
- Atomic
Formula - An atomic formula.
- Binary
Comparison - A binary comparison operation.
- Binary
Op - A binary operation.
- Conditional
Effect - A (potentially conditional) effect. Occurs as part of
Effects. - Constraint
Goal Description - A constraint goal description.
- Constraint
Goal Description Inner - A type that represents either a
GoalDescriptionor an embeddedConstraintGoalDescription. - Definition
- A single
(define ...)block: either a domain or a problem. - Duration
Constraint - Usage
- Duration
Operator - Usage
- Duration
Value - A duration value, either a
Numberor aFluentExpression. - Durative
Action Effect - A durative action effect used in
DurativeActionDefinition. - Durative
Action Fluent Expression - Usage
- Durative
Action Goal Description - A durative action goal description.
- Effect
Condition - An effect condition as used by
WhenConditionalEffect::effectandTimedEffect::Conditional. - Fluent
Expression - A function/fluent expression used e.g. in a
DurationValue. - Function
Head - A function declaration.
- Goal
Description - A goal description.
- Init
Element - Usage
- Interval
- An interval used in
TimedGD::Over. - Literal
- An
AtomicFormulaor its negated value. - Metric
Fluent Expression - A metric function expression.
- MultiOp
- An operation with multiple operands.
- Number
Error - An error constructing or parsing a
Number. - Optimization
- An optimization instruction.
- Precondition
Goal Description - A precondition goal description.
- Preference
Constraint Goal Description - Requirements
- Preference
Goal Description - A goal description that may be a preference,
<pref-GD>. - Preference
Timed Goal Description - A timed goal description that may be a preference,
<pref-timed-GD>. - Primitive
Effect - A primitive effect. Occurs as part of a
ConditionalEffectvia itsEffectvariant, or nested within anEffectConditioninsidewhenclauses. - Requirement
- Domain requirements.
- Simple
Duration Constraint - A simple duration constraint.
- Structure
Def - A domain structure definition.
- Term
- A term, i.e. a
Name,VariableorFunctionTerm. - Time
Specifier - A time specifier used in e.g.
TimedGD::AtandTimedEffect. - Timed
Assign Operator - An assignment operation.
- Timed
Effect - A timed effect, either conditional, continuous or derived from a fluent, e.g.
DurativeActionEffect. - Timed
Fluent Expression - An f-exp-t.
- Timed
Goal Description - A timed goal description.
- Type
- A type selection from
<primitive-type> | (either <primitive-type>).
Traits§
Type Aliases§
- Assign
OpT Deprecated - Alias for
TimedAssignOperator; matches BNF<assign-op-t>. - Binary
Comp Deprecated - Alias for
BinaryComparison. - CEffect
Deprecated - Alias for
ConditionalEffect; matches BNF<c-effect>. - Con2GD
Deprecated - Alias for
ConstraintGoalDescriptionInner; matches BNF<con2-GD>. - ConGD
Deprecated - Alias for
ConstraintGoalDescription; matches BNF<con-GD>. - Constraint
Goal Definition Deprecated - Former name of
ConstraintGoalDescription. - Constraint
Goal Definition Inner Deprecated - Former name of
ConstraintGoalDescriptionInner. - DOp
Deprecated - Alias for
DurationOperator; matches BNF<d-op>. - Durative
Action Goal Definition Deprecated - Former name of
DurativeActionGoalDescription. - FAssign
Da Deprecated - Alias for
DurativeActionFunctionAssignment; matches BNF<f-assign-da>. - FComp
Deprecated - Alias for
FluentComparison; matches BNF<f-comp>. - FExp
Deprecated - Alias for
FluentExpression; matches BNF<f-exp>. - FExpDa
Deprecated - Alias for
DurativeActionFluentExpression; matches BNF<f-exp-da>. - FExpT
Deprecated - Alias for
TimedFluentExpression; matches BNF<f-exp-t>. - FHead
Deprecated - Alias for
FunctionHead; matches BNF<f-head>. - ForallC
Effect Deprecated - Alias for
ForallConditionalEffect; matches BNF<c-effect>(forall variant). - GoalDef
Deprecated - Alias for
ProblemGoalDescription. - Goal
Definition Deprecated - Former name of
GoalDescription. - MetricF
Exp Deprecated - Alias for
MetricFluentExpression; matches BNF<metric-f-exp>. - Name
Literal - A literal over names.
- PEffect
Deprecated - Alias for
PrimitiveEffect; matches BNF<p-effect>. - Precondition
Goal Definition Deprecated - Former name of
PreconditionGoalDescription. - Precondition
Goal Definitions Deprecated - Former name of
PreconditionGoalDescriptions. - Pref
ConGD Deprecated - Alias for
PreferenceConstraintGoalDescription; matches BNF<pref-con-GD>. - Pref
ConG Ds Deprecated - Alias for
PreferenceConstraintGoalDescriptions; matches BNF<pref-con-GD>(list form). - Pref
TimedGD Deprecated - Alias for
PreferenceTimedGoalDescription; matches BNF<pref-timed-GD>. - Preference
Constraint Goal Definition Deprecated - Former name of
PreferenceConstraintGoalDescription. - Preference
Constraint Goal Definitions Deprecated - Former name of
PreferenceConstraintGoalDescriptions. - PreferenceGD
Deprecated - Alias for
PreferenceGoalDescription; matches BNF<pref-GD>. - Preference
Goal Definition Deprecated - Former name of
PreferenceGoalDescription. - Preference
Timed Goal Definition Deprecated - Former name of
PreferenceTimedGoalDescription. - Problem
Goal Definition Deprecated - Former name of
ProblemGoalDescription. - Term
Literal - A literal over terms.
- TimedGD
Deprecated - Alias for
TimedGoalDescription; matches BNF<timed-GD>. - Timed
Goal Definition Deprecated - Former name of
TimedGoalDescription. - Typed
Names - A list of typed names, e.g. objects or constants
t1 t2 - truck. - Typed
Variables - A list of typed variables, e.g. action parameters
?x - truck ?l - location. - WhenC
Effect Deprecated - Alias for
WhenConditionalEffect; matches BNF<c-effect>(when variant).