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
-
#initialize(aNonTerminal) ⇒ StartVertex
constructor
A new instance of StartVertex.
- #label ⇒ Object
Methods inherited from Vertex
#add_edge, #complete?, #next_symbol, #prev_symbol
Constructor Details
#initialize(aNonTerminal) ⇒ StartVertex
Returns a new instance of StartVertex.
11 12 13 |
# File 'lib/rley/gfg/start_vertex.rb', line 11 def initialize(aNonTerminal) super(aNonTerminal) end |
Instance Method Details
#label ⇒ Object
15 16 17 |
# File 'lib/rley/gfg/start_vertex.rb', line 15 def label() return ".#{non_terminal}" end |