class CPU::Token

Overview

A token, used when parsing

Defined in:

cr6502/parser/token.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def lexeme : String #

def lexeme=(lexeme : String) #

def literal : Int32 | Nil #

def literal=(literal : Int32 | Nil) #

def to_string #

def type : TokenType #

def type=(type : TokenType) #