Sha256: aa4d7147a095c8d914978c19cf125ec639b5e52de77fb4b739f728e36c3f5731

Contents?: true

Size: 558 Bytes

Versions: 6

Compression:

Stored size: 558 Bytes

Contents

require_relative 'grammar/options'
require_relative 'grammar/matching'
require_relative 'grammar/parsing'
require_relative 'grammar/tagging'
module Sexpr
  module Grammar
    include Options
    include Matching
    include Tagging
    include Parsing

    def self.new(input = {}, options = {})
      Module.new.tap{|g|
        g.instance_eval{
          include(Grammar)
          extend(self)
          install_options(input.merge(options))
        }
      }
    end

    def tagging_reference
      self
    end

  end # module Grammar
end # module Sexpr

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sexpr-1.1.0 lib/sexpr/grammar.rb
sexpr-1.0.0 lib/sexpr/grammar.rb
sexpr-0.6.0 lib/sexpr/grammar.rb
sexpr-0.5.1 lib/sexpr/grammar.rb
sexpr-0.5.0 lib/sexpr/grammar.rb
sexpr-0.4.0 lib/sexpr/grammar.rb