class Lit::Token
- Lit::Token
- Reference
- Object
Defined in:
lit/token.crConstructors
Instance Method Summary
-
#inspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #lexeme : String
- #line : Int32
- #literal : Float64 | String | Nil
- #to_s(*args, **options)
- #to_s(*args, **options, &)
- #type : TokenType
Constructor Detail
def self.new(type : ::Lit::TokenType, lexeme : String, literal : Float64 | String | Nil, line : Int32)
#
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
.