Expand description
Token types emitted by the lexer.
A Token
can be a:
TerminalToken
: an atomic symbol or reserved identifier.LiteralToken
: an integer, float, char or string literal.Identifier
: an identifier, for naming things.
Tokens are also fully source-preserving. Each token maintains its range in the input string, as well as the comments and newlines after the token.
Structs§
Enums§
- Comment
- A comment.
- Literal
Base - The base of an
Int
literal. - Literal
Token - A literal.
- String
Token - A string literal.
- Terminal
Token - An atomic symbol or reserved identifier.
- Token
Type - The type of a
Token
.