Class: Rley::GFG::StartVertex
- Inherits:
-
NonTerminalVertex
- Object
- Vertex
- NonTerminalVertex
- Rley::GFG::StartVertex
- Defined in:
- lib/rley/gfg/start_vertex.rb
Overview
TODO: change definition. Represents a specialized vertex in a grammar flow graph that is associated to a given non-terminal symbol. Responsibilities (in addition to inherited ones):
- Know its related non-terminal symbol
Instance Attribute Summary
Attributes inherited from NonTerminalVertex
Attributes inherited from Vertex
Instance Method Summary collapse
Methods inherited from NonTerminalVertex
Methods inherited from Vertex
#add_edge, #complete?, #initialize, #inspect, #next_symbol, #prev_symbol, #selfie
Constructor Details
This class inherits a constructor from Rley::GFG::NonTerminalVertex
Instance Method Details
#label ⇒ String
14 15 16 |
# File 'lib/rley/gfg/start_vertex.rb', line 14 def label ".#{non_terminal}" end |