Class: Ibex::LALR::IELR::Inadequacy

Inherits:
Struct
  • Object
show all
Defined in:
lib/ibex/lalr/ielr/inadequacy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state:, token:, contributions:, id:) ⇒ Inadequacy

Returns a new instance of Inadequacy.



11
12
13
14
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 11

def initialize(state:, token:, contributions:, id:)
  super(state: state, token: token, contributions: contributions.freeze, id: id)
  freeze
end

Instance Attribute Details

#contributionsObject

Returns the value of attribute contributions

Returns:

  • (Object)

    the current value of contributions



10
11
12
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10

def contributions
  @contributions
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



10
11
12
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10

def id
  @id
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



10
11
12
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10

def state
  @state
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



10
11
12
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10

def token
  @token
end