pub enum TokenKind {
LParen,
RParen,
Symbol(String),
Keyword(String),
Variable(String),
Number(f64),
}Expand description
The kind of a lexed PDDL token.
Variants§
LParen
Opening parenthesis (.
RParen
Closing parenthesis ).
Symbol(String)
An identifier: predicate names, type names, operators (+, -, …), etc.
Stored in lowercase.
Keyword(String)
A PDDL keyword starting with : (e.g. :requirements, :typing).
The leading : is stripped; stored in lowercase.
Variable(String)
A PDDL variable starting with ? (e.g. ?x, ?duration).
The leading ? is kept; stored in lowercase.
Number(f64)
An integer or floating-point numeric literal.
Trait Implementations§
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more