Sha256: d8698c807a231518e27c23f9ce047e36cd6a822859933e3cd719de1a0442b87e

Contents?: true

Size: 649 Bytes

Versions: 2

Compression:

Stored size: 649 Bytes

Contents

require_relative 'parse_rep_creator'
# require_relative 'parse_tree_builder' # TODO remove this line
require_relative 'cst_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 ParseTree from
    # a given Parsing object.
    class ParseTreeFactory < ParseRepCreator

      protected

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

# End of file

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rley-0.5.01 lib/rley/parser/parse_tree_factory.rb
rley-0.5.00 lib/rley/parser/parse_tree_factory.rb