Sha256: b71fd7eb3529c1e441cb69f24b8d848c5aa0a210b95ff4204267991bf9fa6511

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

require 'rubygems'
require 'ruby_parser'
require 'facets'

module Simplabs

  module Excellent

    module Parsing

      class Parser #:nodoc:

        def parse(content, filename)
          silence_stream(STDERR) do 
            return silent_parse(content, filename)
          end
        rescue
          #continue on errors
        end

        private

          def silent_parse(content, filename)
            @parser ||= RubyParser.new
            sexp = @parser.parse(content, filename)
            sexp
          end

      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simplabs-excellent-1.2.1 lib/simplabs/excellent/parsing/parser.rb
simplabs-excellent-1.2.2 lib/simplabs/excellent/parsing/parser.rb
simplabs-excellent-1.3.0 lib/simplabs/excellent/parsing/parser.rb
simplabs-excellent-1.3.1 lib/simplabs/excellent/parsing/parser.rb