caffeine_lang/frontend/token
Types
A token produced by the tokenizer.
pub type Token {
KeywordExpectations
KeywordUnmeasured
KeywordMeasured
KeywordBy
KeywordExtends
KeywordRequires
KeywordProvides
KeywordIn
KeywordX
KeywordString
KeywordInteger
KeywordFloat
KeywordBoolean
KeywordList
KeywordDict
KeywordOptional
KeywordDefaulted
KeywordType
KeywordURL
KeywordPercentage
LiteralString(String)
LiteralInteger(Int)
LiteralFloat(Float)
LiteralPercentage(Float)
LiteralTrue
LiteralFalse
SymbolLeftBrace
SymbolRightBrace
SymbolLeftParen
SymbolRightParen
SymbolLeftBracket
SymbolRightBracket
SymbolColon
SymbolComma
SymbolStar
SymbolPipe
SymbolEquals
SymbolDotDot
WhitespaceNewline
WhitespaceIndent(Int)
CommentLine(String)
CommentSection(String)
Identifier(String)
EOF
}
Constructors
-
KeywordExpectations -
KeywordUnmeasured -
KeywordMeasured -
KeywordBy -
KeywordExtends -
KeywordRequires -
KeywordProvides -
KeywordIn -
KeywordX -
KeywordString -
KeywordInteger -
KeywordFloat -
KeywordBoolean -
KeywordList -
KeywordDict -
KeywordOptional -
KeywordDefaulted -
KeywordType -
KeywordURL -
KeywordPercentage -
LiteralString(String) -
LiteralInteger(Int) -
LiteralFloat(Float) -
LiteralPercentage(Float) -
LiteralTrue -
LiteralFalse -
SymbolLeftBrace -
SymbolRightBrace -
SymbolLeftParen -
SymbolRightParen -
SymbolLeftBracket -
SymbolRightBracket -
SymbolColon -
SymbolComma -
SymbolStar -
SymbolPipe -
SymbolEquals -
SymbolDotDot -
WhitespaceNewline -
WhitespaceIndent(Int) -
CommentLine(String) -
CommentSection(String) -
Identifier(String) -
EOF