class Myst::Token
- Myst::Token
- Reference
- Object
Defined in:
myst/syntax/token.crConstructors
Instance Method Summary
- #inspect(io)
- #location : Location
- #location=(location : Location)
- #raw : String
- #raw=(raw : String)
- #to_s(io)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #type : Type
- #type=(type : Type)
-
#value
Avoid having to explicitly set
#value
. - #value=(value : String | Nil)
Constructor Detail
def self.new(type : Myst::Token::Type = Type::UNKNOWN, value : Nil | String = nil, raw : String = "", *, location : Myst::Location)
#