Sha256: d3d469ebc84e3e492c3da54615b8373b6a514e7501709241d522f4e2c248b1ff

Contents?: true

Size: 769 Bytes

Versions: 4

Compression:

Stored size: 769 Bytes

Contents

module EBNF
  autoload :ABNF,     "ebnf/abnf"
  autoload :Base,     "ebnf/base"
  autoload :BNF,      "ebnf/bnf"
  autoload :ISOEBNF,  "ebnf/isoebnf"
  autoload :LL1,      "ebnf/ll1"
  autoload :Native,   "ebnf/native"
  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

4 entries across 4 versions & 1 rubygems

Version Path
ebnf-2.1.3 lib/ebnf.rb
ebnf-2.1.2 lib/ebnf.rb
ebnf-2.1.1 lib/ebnf.rb
ebnf-2.1.0 lib/ebnf.rb