module Cucumber::Core

def parse(gherkin_documents, compiler, event_bus, gherkin_query)

def parse(gherkin_documents, compiler, event_bus, gherkin_query)
  parser = Core::Gherkin::Parser.new(compiler, event_bus, gherkin_query)
  gherkin_documents.each do |document|
    parser.document document
  end
  parser.done
  self
end