Class: Rley::GFG::EpsilonEdge

Inherits:
Edge
  • Object
show all
Defined in:
lib/rley/gfg/epsilon_edge.rb

Overview

Represents an edge in a grammar flow graph without change of the position in the input stream. Responsibilities:

  • To know the successor vertex

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Edge

#inspect, #to_s

Constructor Details

#initialize(thePredecessor, theSuccessor) ⇒ EpsilonEdge

Returns a new instance of EpsilonEdge.



15
16
17
# File 'lib/rley/gfg/epsilon_edge.rb', line 15

def initialize(thePredecessor, theSuccessor)
  super(thePredecessor, theSuccessor)
end

Instance Attribute Details

#successorObject (readonly)

The destination vertex of the edge .



13
14
15
# File 'lib/rley/gfg/epsilon_edge.rb', line 13

def successor
  @successor
end