pub enum TokenKind {
Show 113 variants
Fn,
Let,
Const,
Mut,
If,
Else,
For,
In,
While,
Loop,
Return,
Break,
Continue,
True,
False,
Null,
Plugin,
Writer,
Struct,
Enum,
Impl,
Use,
Pub,
As,
Self_,
SelfType,
Match,
Matches,
Traverse,
Using,
Capturing,
Str,
Bool,
I32,
U32,
F64,
Vec,
Option,
Result,
HashMap,
HashSet,
CodeBuilder,
Program,
FunctionDeclaration,
VariableDeclaration,
ExpressionStatement,
ReturnStatement,
IfStatement,
ForStatement,
WhileStatement,
BlockStatement,
Identifier,
Literal,
BinaryExpression,
UnaryExpression,
CallExpression,
MemberExpression,
ArrayExpression,
ObjectExpression,
JSXElement,
JSXFragment,
JSXAttribute,
JSXText,
JSXExpressionContainer,
Ident(String),
StringLit(String),
IntLit(i64),
FloatLit(f64),
Plus,
Minus,
Star,
Slash,
Percent,
Eq,
PlusEq,
MinusEq,
StarEq,
SlashEq,
EqEq,
NotEq,
Lt,
Gt,
LtEq,
GtEq,
And,
Or,
Not,
Ampersand,
Pipe,
Caret,
DotDot,
DotDotDot,
LParen,
RParen,
LBrace,
RBrace,
LBracket,
RBracket,
Comma,
Dot,
Colon,
Semicolon,
Arrow,
DDArrow,
ColonColon,
Question,
QuestionDot,
Hash,
Comment(String),
DocComment(String),
Newline,
Eof,
Error(String),
}Expand description
All token types in ReluxScript
Variants§
Fn
Let
Const
Mut
If
Else
For
In
While
Loop
Return
Break
Continue
True
False
Null
Plugin
Writer
Struct
Enum
Impl
Use
Pub
As
Self_
SelfType
Match
Matches
Traverse
Using
Capturing
Str
Bool
I32
U32
F64
Vec
Option
Result
HashMap
HashSet
CodeBuilder
Program
FunctionDeclaration
VariableDeclaration
ExpressionStatement
ReturnStatement
IfStatement
ForStatement
WhileStatement
BlockStatement
Identifier
Literal
BinaryExpression
UnaryExpression
CallExpression
MemberExpression
ArrayExpression
ObjectExpression
JSXElement
JSXFragment
JSXAttribute
JSXText
JSXExpressionContainer
Ident(String)
StringLit(String)
IntLit(i64)
FloatLit(f64)
Plus
Minus
Star
Slash
Percent
Eq
PlusEq
MinusEq
StarEq
SlashEq
EqEq
NotEq
Lt
Gt
LtEq
GtEq
And
Or
Not
Ampersand
Pipe
Caret
DotDot
DotDotDot
LParen
RParen
LBrace
RBrace
LBracket
RBracket
Comma
Dot
Colon
Semicolon
Arrow
DDArrow
ColonColon
Question
QuestionDot
Hash
Comment(String)
DocComment(String)
Newline
Eof
Error(String)
Trait Implementations§
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
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