Sha256: 4c8aba53e669074578280c41535881dad1ee7d7e4b06ca38de990536c328dae8

Contents?: true

Size: 625 Bytes

Versions: 46

Compression:

Stored size: 625 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 EndVertex < 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

46 entries across 46 versions & 1 rubygems

Version Path
rley-0.7.03 lib/rley/gfg/end_vertex.rb
rley-0.7.02 lib/rley/gfg/end_vertex.rb
rley-0.7.01 lib/rley/gfg/end_vertex.rb
rley-0.7.00 lib/rley/gfg/end_vertex.rb
rley-0.6.09 lib/rley/gfg/end_vertex.rb
rley-0.6.08 lib/rley/gfg/end_vertex.rb
rley-0.6.07 lib/rley/gfg/end_vertex.rb
rley-0.6.06 lib/rley/gfg/end_vertex.rb
rley-0.6.05 lib/rley/gfg/end_vertex.rb
rley-0.6.04 lib/rley/gfg/end_vertex.rb
rley-0.6.03 lib/rley/gfg/end_vertex.rb
rley-0.6.02 lib/rley/gfg/end_vertex.rb
rley-0.6.01 lib/rley/gfg/end_vertex.rb
rley-0.6.00 lib/rley/gfg/end_vertex.rb
rley-0.5.14 lib/rley/gfg/end_vertex.rb
rley-0.5.13 lib/rley/gfg/end_vertex.rb
rley-0.5.12 lib/rley/gfg/end_vertex.rb
rley-0.5.11 lib/rley/gfg/end_vertex.rb
rley-0.5.10 lib/rley/gfg/end_vertex.rb
rley-0.5.09 lib/rley/gfg/end_vertex.rb