A token generated by a lexical analyzer typically consists of a token type and an optional token value, formatted as {Token type, Token value}.
Token Type: This represents the category or classification of the token. Examples include Identifier, Keyword, Operator, Literal, and Delimiter. The token type helps the parser understand the role of the token in the syntax of the language.
Token Value: This is the actual data or lexeme from the source code that matches the token type. It provides the specific instance of the token type. For example, if the token type is Identifier, the token value might be x, y, sum, etc.