Sha256: 2073c583b7750401be892639cd30453979010a45372875eb3aa811bd6c7ca8cd

Contents?: true

Size: 643 Bytes

Versions: 3

Compression:

Stored size: 643 Bytes

Contents

require_relative 'non_terminal_vertex'

module Rley # This module is used as a namespace
  module GFG # This module is used as a namespace
    # 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
    class StartVertex < NonTerminalVertex
      
      def initialize(aNonTerminal)
        super(aNonTerminal)
      end

      def label()
        return ".#{non_terminal}"
      end       

    end # class
  end # module
end # module

# End of file

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rley-0.3.04 lib/rley/gfg/start_vertex.rb
rley-0.3.01 lib/rley/gfg/start_vertex.rb
rley-0.3.00 lib/rley/gfg/start_vertex.rb