Sha256: 180b60a86e0a372d885cf0ae7cc4e7b0626f8de64656419fe42157b1e12cb446

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

module EBNF
  autoload :Base,     "ebnf/base"
  autoload :BNF,      "ebnf/bnf"
  autoload :LL1,      "ebnf/ll1"
  autoload :Parser,   "ebnf/parser"
  autoload :PEG,      "ebnf/peg"
  autoload :Rule,     "ebnf/rule"
  autoload :Terminals,"ebnf/terminals"
  autoload :Writer,   "ebnf/writer"
  autoload :VERSION,  "ebnf/version"

  ##
  # Parse the given EBNF `query` input.
  #
  # @example
  #   ebnf = EBNF.parse(input)
  #
  # @param  [#read, String, #to_s]  input
  # @param  [Hash{Symbol => Object}] options
  # @return [EBNF::Base]
  # @raise  [Exception] on invalid input
  def self.parse(input, **options)
    ::EBNF::Base.new(input, **options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ebnf-2.0.0 lib/ebnf.rb