pub enum ClojureTokenType {
Show 30 variants
Whitespace,
Newline,
Comment,
StringLiteral,
CharacterLiteral,
NumberLiteral,
BooleanLiteral,
NilLiteral,
KeywordLiteral,
Symbol,
Keyword,
ListStart,
ListEnd,
VectorStart,
VectorEnd,
MapStart,
MapEnd,
SetStart,
Quote,
Unquote,
UnquoteSplice,
Deref,
Meta,
Dispatch,
ReaderMacro,
RegexLiteral,
AnonFnStart,
AnonFnArg,
Error,
Eof,
}Expand description
Represents all possible token kinds in the Clojure programming language.
Variants§
Whitespace
Whitespace characters (spaces, tabs)
Newline
Newline characters
Comment
Comments (both single-line and multi-line)
StringLiteral
String literals (e.g., “hello”)
CharacterLiteral
Character literals (e.g., \a)
NumberLiteral
Number literals (integer and floating-point)
BooleanLiteral
Boolean literals (true, false)
NilLiteral
Nil literal
KeywordLiteral
Keyword literals (e.g., :keyword)
Symbol
Symbol identifiers (e.g., variable names, function names)
Keyword
Keyword identifiers (e.g., :keyword)
ListStart
List start delimiter: (
ListEnd
List end delimiter: )
VectorStart
Vector start delimiter: [
VectorEnd
Vector end delimiter: ]
MapStart
Map start delimiter: {
MapEnd
Map end delimiter: }
SetStart
Set start delimiter: #{
Quote
Quote form (e.g., ’expr)
Unquote
Unquote form (e.g., ~expr)
UnquoteSplice
Unquote-splicing form (e.g., ~@expr)
Deref
Deref form (e.g., @expr)
Meta
Metadata form (e.g., ^metadata expr)
Dispatch
Dispatch macro (e.g., #)
ReaderMacro
Reader macro form (e.g., #tag expr)
RegexLiteral
Regular expression literals (e.g., #“pattern”)
AnonFnStart
Anonymous function start delimiter: #(
AnonFnArg
Anonymous function argument (e.g., %1, %2, etc.)
Error
Error token
Eof
End of file marker
Trait Implementations§
Source§impl Clone for ClojureTokenType
impl Clone for ClojureTokenType
Source§fn clone(&self) -> ClojureTokenType
fn clone(&self) -> ClojureTokenType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more