Token
data class Token( val tokenType: TokenType, val lexeme: String, val line: Int, val column: Int, val value: String? = null)
Content copied to clipboard
The smallest meaningful unit of information in the input.
A list of tokens is generated during lexical analysis and used to build an AST during syntax analysis.
Parameters
value
Some token types, such as TokenType.NUMBER have a value associated with them