class Lit::Token

Defined in:

lit/token.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def lexeme : String #

[View source]
def line : Int32 #

[View source]
def literal : Float64 | String | Nil #

[View source]
def to_s(*args, **options) #

[View source]
def to_s(*args, **options, &) #

[View source]
def type : TokenType #

[View source]