class

Lit::Token

Inherits Reference / Object

Constructors

new(type : ::Lit::TokenType, lexeme : String, literal : Float64 | Int64 | String | Nil, line : Int32, filename : String)
Source

Instance methods

filename
Source
inspect

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.

Source
lexeme
Source
line
Source
literal
Source
to_s(*args, **options)
Source
to_s(*args, **options, &)
Source
type
Source
with_lexeme(lexeme)
Source
with_type(type)
Source