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



8
9
10
# File 'lib/lrama/counterexamples/triple.rb', line 8

def itm
  @itm
end

#lObject Also known as: precise_lookahead_set

Returns the value of attribute l

Returns:

  • (Object)

    the current value of l



8
9
10
# File 'lib/lrama/counterexamples/triple.rb', line 8

def l
  @l
end

#sObject Also known as: state

Returns the value of attribute s

Returns:

  • (Object)

    the current value of s



8
9
10
# File 'lib/lrama/counterexamples/triple.rb', line 8

def s
  @s
end

Instance Method Details

#inspectObject Also known as: to_s



17
18
19
# File 'lib/lrama/counterexamples/triple.rb', line 17

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

#state_itemObject



13
14
15
# File 'lib/lrama/counterexamples/triple.rb', line 13

def state_item
  StateItem.new(state, item)
end