struct Token::Token

Defined in:

scanner/token.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : Type, literal : String | Float32, line : Int32, offset : Int32) #

[View source]

Instance Method Detail

def display #

[View source]
def literal : Float32 | String #

[View source]
def literal=(literal : Float32 | String) #

[View source]
def name : String #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

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

Also see #inspect.


[View source]
def type : Token::Type #

[View source]
def type=(type : ::Token::Type) #

[View source]