pub enum TokenType {
Show 40 variants
For,
In,
Require,
Provide,
Struct,
Class,
Match,
WithHandlers,
Raise,
Identifier,
Number,
String,
Boolean,
LParen,
RParen,
LBracket,
RBracket,
LBrace,
RBrace,
Comma,
Dot,
Colon,
Semicolon,
Plus,
Minus,
Multiply,
Divide,
Modulo,
Equals,
NotEquals,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
And,
Or,
Not,
Comment,
Whitespace,
Eof,
}Expand description
Token types for the Racket language lexer.
This enum represents all possible token types in Racket, including keywords, identifiers, literals, punctuation, and operators.
Variants§
For
For keyword for iteration.
In
In keyword for iteration context.
Require
Require keyword for module imports.
Provide
Provide keyword for module exports.
Struct
Struct keyword for structure definitions.
Class
Class keyword for class definitions.
Match
Match keyword for pattern matching.
WithHandlers
With-handlers keyword for exception handling.
Raise
Raise keyword for raising exceptions.
Identifier
Identifier token.
Number
Number literal token.
String
String literal token.
Boolean
Boolean literal token.
LParen
Left parenthesis (.
RParen
Right parenthesis ).
LBracket
Left bracket [.
RBracket
Right bracket ].
LBrace
Left brace {.
RBrace
Right brace }.
Comma
Comma ,.
Dot
Dot ..
Colon
Colon :.
Semicolon
Semicolon ;.
Plus
Plus operator +.
Minus
Minus operator -.
Multiply
Multiply operator *.
Divide
Divide operator /.
Modulo
Modulo operator %.
Equals
Equality operator =.
NotEquals
Inequality operator !=.
LessThan
Less than operator <.
LessThanOrEqual
Less than or equal operator <=.
GreaterThan
Greater than operator >.
GreaterThanOrEqual
Greater than or equal operator >=.
And
Logical and operator and.
Or
Logical or operator or.
Not
Logical not operator not.
Comment
Comment token.
Whitespace
Whitespace token.
Eof
End of file token.