Class: Semantic::AttrKey

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

Overview

The key used in the internal AttributeGrammar#attributes hash.


  :token_id .. token.object_id identification of the particular token,
  :attr_idx .. attribute index in the Functions#attributes

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Object) attr_idx

Returns the value of attribute attr_idx

Returns:

  • (Object)

    the current value of attr_idx



7
8
9
# File '../lib/semantic_types.rb', line 7

def attr_idx
  @attr_idx
end

- (Object) token_id

Returns the value of attribute token_id

Returns:

  • (Object)

    the current value of token_id



7
8
9
# File '../lib/semantic_types.rb', line 7

def token_id
  @token_id
end