Class: ShuntingYard::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/shunting_yard/structs.rb

Instance Attribute Summary collapse

Instance Attribute Details

#lexemeObject

Returns the value of attribute lexeme

Returns:

  • (Object)

    the current value of lexeme



2
3
4
# File 'lib/shunting_yard/structs.rb', line 2

def lexeme
  @lexeme
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/shunting_yard/structs.rb', line 2

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2
3
4
# File 'lib/shunting_yard/structs.rb', line 2

def value
  @value
end