pub enum TokenType {
Empty,
Subgoal,
Comma,
Semicolon,
LParen,
RParen,
Group,
And,
Or,
Complex,
LinkedList,
}
Expand description
Identifies tokens in the token tree and on the parse stack.
Variants§
Empty
Represents an empty parse stack.
Subgoal
Any subgoal, such as $NP = [$H | $T]
.
Comma
Semicolon
LParen
Left parenthesis
RParen
Right parenthesis
Group
Groups goals between parentheses: (goal1, goal2, goal3)
And
Conjunction - goal and goal
Or
Disjunction - goal or goal
Complex
Complex term on the parse stack.
LinkedList
List on the parse stack.
Trait Implementations§
impl Copy for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Freeze for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
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