class

CPU::Token

Inherits Reference < Object

A token, used when parsing

Constructors

new(type : TokenType, lexeme : String, literal : Int32 | Float64 | String | Nil = nil)

Instance methods

lexeme
lexeme=(lexeme : String)
literal
literal=(literal : Int32 | Nil)
to_string
type
type=(type : TokenType)