Module: EBNF

Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/abnf.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/bnf.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/ll1.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/peg.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/base.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/rule.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/native.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/parser.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/writer.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/isoebnf.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf/version.rb

Overview

ISO EBNF parser Parses ISO EBNF into an array of Rule.

Defined Under Namespace

Modules: BNF, LL1, Native, PEG, Terminals, Unescape, VERSION Classes: ABNF, Base, ISOEBNF, Parser, Rule, Writer

Class Method Summary collapse

Class Method Details

.parse(input, **options) ⇒ EBNF::Base

Parse the given EBNF query input.

Examples:

ebnf = EBNF.parse(input)

Parameters:

Returns:

Raises:

  • (Exception)

    on invalid input



28
29
30
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/ebnf-c8f40958c6c3/lib/ebnf.rb', line 28

def self.parse(input, **options)
  ::EBNF::Base.new(input, **options)
end