pub enum Token {
KeywordExtern,
KeywordWithLevel,
KeywordPrivilege(Ring),
KeywordIsr,
KeywordCall,
Identifier(String),
LeftParen,
RightParen,
LeftBracket,
RightBracket,
Comma,
Dollar,
}Expand description
The fundamental unit of a source code file. These are used to represent the lexemes within a source file
Variants§
KeywordExtern
KeywordWithLevel
KeywordPrivilege(Ring)
KeywordIsr
KeywordCall
Identifier(String)
LeftParen
RightParen
LeftBracket
RightBracket
Comma
Dollar
‘$’ is a special Anillo token only allowed within an ISR. It directly refers to the number of the ISR itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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