struct Token

Defined in:

lexer.cr

Constant Summary

NULL_TOKEN = Token.new("eof", "", nil, nil)

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, value : Char | Int32 | String | Nil, start : Char | Int32 | String | Nil, end __arg0 : Char | Int32 | String | Nil) #

[View source]

Instance Method Detail

def end : Char | Int32 | String | Nil #

[View source]
def end=(end __arg0 : Char | Int32 | String | Nil) #

[View source]
def start : Char | Int32 | String | Nil #

[View source]
def start=(start : Char | Int32 | String | Nil) #

[View source]
def type : String #

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

[View source]
def value : Char | Int32 | String | Nil #

[View source]
def value=(value : Char | Int32 | String | Nil) #

[View source]