struct Tokens::Token

Defined in:

token.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

also(& : self | Nil -> _) : self also, or_else(alternative) or_else

Constructor Detail

def self.new(type : TokenType, literal : String) #

[View source]
def self.new(type : TokenType, literal : Char) #

[View source]

Instance Method Detail

def literal : String #

[View source]
def type : Tokens::TokenType #

[View source]