Test working examiner

require 'sexp_dresser/source/source_repository'
require 'sexp_dresser/core/code_parser'
module SexpDresser
  class Examiner

    attr_reader :description, :sources

    def initialize(source)
       @sources = SexpDresser::Source::SourceRepository.parse(source)
       @description = sources.description
    end

    def process
      sources.each do |src|
        parser = SexpDresser::Core::CodeParser.new(self)
        parser.process(src.syntax_tree)
      end
    end

    def examine(scope, node_type)
       #@examiner.examine scope, node_type
       p [scope,node_type].inspect
    end

  end
end
source = File.read('lib/sexp_dresser.rb')
SexpDresser::Examiner.new(source).process