Sha256: e6852811514b71676bd27dd971a1b2b5ff7b5d73167178c894ccbb5d56c8dbf6

Contents?: true

Size: 635 Bytes

Versions: 28

Compression:

Stored size: 635 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

28 entries across 28 versions & 1 rubygems

Version Path
rley-0.5.10 lib/rley/gfg/start_vertex.rb
rley-0.5.09 lib/rley/gfg/start_vertex.rb
rley-0.5.08 lib/rley/gfg/start_vertex.rb
rley-0.5.07 lib/rley/gfg/start_vertex.rb
rley-0.5.06 lib/rley/gfg/start_vertex.rb
rley-0.5.05 lib/rley/gfg/start_vertex.rb
rley-0.5.04 lib/rley/gfg/start_vertex.rb
rley-0.5.03 lib/rley/gfg/start_vertex.rb
rley-0.5.02 lib/rley/gfg/start_vertex.rb
rley-0.5.01 lib/rley/gfg/start_vertex.rb
rley-0.5.00 lib/rley/gfg/start_vertex.rb
rley-0.4.08 lib/rley/gfg/start_vertex.rb
rley-0.4.07 lib/rley/gfg/start_vertex.rb
rley-0.4.06 lib/rley/gfg/start_vertex.rb
rley-0.4.05 lib/rley/gfg/start_vertex.rb
rley-0.4.04 lib/rley/gfg/start_vertex.rb
rley-0.4.03 lib/rley/gfg/start_vertex.rb
rley-0.4.02 lib/rley/gfg/start_vertex.rb
rley-0.4.01 lib/rley/gfg/start_vertex.rb
rley-0.4.00 lib/rley/gfg/start_vertex.rb