module Cucumber::Core

def compile(gherkin_documents, last_receiver, filters = [], event_bus = EventBus.new)

def compile(gherkin_documents, last_receiver, filters = [], event_bus = EventBus.new)
  first_receiver = compose(filters, last_receiver)
  compiler = Compiler.new(first_receiver)
  parse gherkin_documents, compiler, event_bus
  self
end