pub enum Terminal {
Trm(String, TerminalKind, Vec<usize>, SymbolAttribute, Option<UserDefinedTypeName>),
Eps,
End,
}
Expand description
A terminal symbol with different specificities
Variants§
Trm(String, TerminalKind, Vec<usize>, SymbolAttribute, Option<UserDefinedTypeName>)
A physical terminal symbol with the scanner states it belongs to Entities that are provided by the lexer.
Eps
Epsilon symbol, the empty word Can be contained in FIRST sets Cannot be contained in productions of our definition of grammar - epsilon productions are simply empty.
End
End of input symbol, End of grammar symbol (not belonging to any grammar)
Implementations§
Trait Implementations§
source§impl Ord for Terminal
impl Ord for Terminal
source§impl PartialEq for Terminal
impl PartialEq for Terminal
source§impl PartialOrd for Terminal
impl PartialOrd for Terminal
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TerminalMappings<Terminal> for Terminal
impl TerminalMappings<Terminal> for Terminal
impl Eq for Terminal
impl StructuralPartialEq for Terminal
Auto Trait Implementations§
impl Freeze for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnwindSafe for Terminal
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.