pub enum Class {
IDENTIFIER,
SEPARATOR,
EQUALS,
LITERAL,
NEWLINE,
BOOLEAN,
UNKNOWN,
}
Expand description
An enumerator for types of lexical tokens.
It is used by all components of the parser stack and is here as to keep each component separate from the others.
Variants§
IDENTIFIER
Names and keys assigned by the programmer.
SEPARATOR
Punctuation and delimiters.
EQUALS
Equals.
LITERAL
Strings and integers.
NEWLINE
New lines.
BOOLEAN
True and false.
UNKNOWN
Tokens that do not fit the lexer’s ruleset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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