Sha256: 9775a9e6d1ffacef3cf5360cdd56f8b185d7318ca503030bb17eb677d371f4cd

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

require_relative 'parse_rep_creator'
require_relative 'parse_forest_builder'

module Rley # This module is used as a namespace
  module Parser # This module is used as a namespace
    # Utility class that helps to create a ParseForest from
    # a given Parsing object.
    class ParseForestFactory < ParseRepCreator

      protected

      # Create a Builder, that is, an object
      # that will create piece by piece the forest
      def builder(aParseResult, aBuilder = nil)
        ParseForestBuilder.new(aParseResult.tokens)
      end
    end # class
  end # module
end # module

# End of file

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rley-0.5.02 lib/rley/parser/parse_forest_factory.rb