class Myst::Token

Defined in:

myst/syntax/token.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : Myst::Token::Type = Type::UNKNOWN, value : Nil | String = nil, raw : String = "", *, location : Myst::Location) #

[View source]

Instance Method Detail

def inspect(io) #

[View source]
def location : Location #

[View source]
def location=(location : Location) #

[View source]
def raw : String #

[View source]
def raw=(raw : String) #

[View source]
def to_s(io) #

[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 : Type #

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

[View source]
def value #

Avoid having to explicitly set #value.


[View source]
def value=(value : String | Nil) #

[View source]