Class: Lrama::Counterexamples::Triple

Inherits:
Struct
  • Object
show all
Defined in:
lib/lrama/counterexamples/triple.rb

Overview

s: state itm: item within s l: precise lookahead set

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#itmObject Also known as: item

Returns the value of attribute itm

Returns:

  • (Object)

    the current value of itm



6
7
8
# File 'lib/lrama/counterexamples/triple.rb', line 6

def itm
  @itm
end

#lObject Also known as: precise_lookahead_set

Returns the value of attribute l

Returns:

  • (Object)

    the current value of l



6
7
8
# File 'lib/lrama/counterexamples/triple.rb', line 6

def l
  @l
end

#sObject Also known as: state

Returns the value of attribute s

Returns:

  • (Object)

    the current value of s



6
7
8
# File 'lib/lrama/counterexamples/triple.rb', line 6

def s
  @s
end

Instance Method Details

#inspectObject Also known as: to_s



15
16
17
# File 'lib/lrama/counterexamples/triple.rb', line 15

def inspect
  "#{state.inspect}. #{item.display_name}. #{l.map(&:id).map(&:s_value)}"
end

#state_itemObject



11
12
13
# File 'lib/lrama/counterexamples/triple.rb', line 11

def state_item
  StateItem.new(state, item)
end