class

Omicron::Token

Inherits Reference < Object

Constructors

new(type : TokenType, lexeme : String, literal : LiteralType, line : Integer)
Source

Instance methods

lexeme
Source
lexeme=(lexeme : String)
Source
line
Source
line=(line : Int32)
Source
literal
Source
literal=(literal : Bool | Char | Float64 | String | Nil)
Source
to_s

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.

Source
type
Source