pub enum TokenType {
Show 52 variants
Null,
Bool(bool),
Number(f64),
String(String),
Identifier(String),
Let,
Const,
Fn,
If,
Else,
While,
For,
In,
Return,
Break,
Continue,
True,
False,
And,
Or,
Not,
Import,
Plus,
Minus,
Star,
Slash,
Percent,
Eq,
Neq,
Lt,
Gt,
Lte,
Gte,
Assign,
PlusAssign,
MinusAssign,
StarAssign,
SlashAssign,
LParen,
RParen,
LBrace,
RBrace,
LBracket,
RBracket,
Semicolon,
Colon,
Comma,
Dot,
Arrow,
Comment(String),
Newline,
Eof,
}Expand description
Iris Lexer - Tokenizer
Converts raw source code into a stream of tokens.
Variants§
Null
Bool(bool)
Number(f64)
String(String)
Identifier(String)
Let
Const
Fn
If
Else
While
For
In
Return
Break
Continue
True
False
And
Or
Not
Import
Plus
Minus
Star
Slash
Percent
Eq
Neq
Lt
Gt
Lte
Gte
Assign
PlusAssign
MinusAssign
StarAssign
SlashAssign
LParen
RParen
LBrace
RBrace
LBracket
RBracket
Semicolon
Colon
Comma
Dot
Arrow
Comment(String)
Newline
Eof
Trait Implementations§
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 UnsafeUnpin 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