Token
Represents a lexical token produced by matching a Lexeme against input.
A Token encapsulates the matched text (value), its source position (line and column), and a reference to the Lexeme that produced it. Tokens are created by the Lexer during the tokenization process (Lexer.tokenize).
Custom token types can extend this class to carry additional metadata beyond the matched text.
Inheritors
Types
Properties
Link copied to clipboard
Indicates whether this token should be discarded during lexing (when discard mode is enabled).
Link copied to clipboard
The character sequence matched from the input that this token represents.