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) #

[View source]

Instance Method Detail

def lexeme : String #

[View source]
def lexeme=(lexeme : String) #

[View source]
def literal : Int32 | Nil #

[View source]
def literal=(literal : Int32 | Nil) #

[View source]
def to_string #

[View source]
def type : TokenType #

[View source]
def type=(type : TokenType) #

[View source]