Class: Taoism::Token

Inherits:
Data
  • Object
show all
Defined in:
lib/taoism/token.rb,
lib/taoism/token.rb

Defined Under Namespace

Classes: Position

Instance Attribute Summary collapse

Instance Attribute Details

#endObject (readonly)

Returns the value of attribute end

Returns:

  • (Object)

    the current value of end



2
3
4
# File 'lib/taoism/token.rb', line 2

def end
  @end
end

#lexemeObject (readonly)

Returns the value of attribute lexeme

Returns:

  • (Object)

    the current value of lexeme



2
3
4
# File 'lib/taoism/token.rb', line 2

def lexeme
  @lexeme
end

#startObject (readonly)

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



2
3
4
# File 'lib/taoism/token.rb', line 2

def start
  @start
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



2
3
4
# File 'lib/taoism/token.rb', line 2

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2
3
4
# File 'lib/taoism/token.rb', line 2

def value
  @value
end