struct TopDown::Parser::Token(ValueType)

Defined in:

parser/tokens.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : Symbol, value : ValueType) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(name _name = @name, value _value = @value) #

[View source]
def inspect(io) #

Same as #to_s.


[View source]
def name : Symbol #

def to_s(io) #
Token.new(:"+").to_s         # => "[+]"
Token.new(:name, "foo").to_s # => "[name:foo]"

[View source]
def value : ValueType #