Sha256: 08ce5ab0c09acea8f90d3955bf67e2878fa2365b827d727deb2cf3a0b830a590

Contents?: true

Size: 473 Bytes

Versions: 4

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

require_relative './rgn/grammar_builder'

module Rley # Module used as a namespace
  # Factory method.
  # A grammar builder constructs a Rley grammar piece by piece
  # from DSL instructions in a provided code block.
  # @param aBlock [Proc] a code block
  # @return [Rley::RGN::GrammarBuilder] An object that builds a grammar.
  def self.grammar_builder(&aBlock)
    Rley::RGN::GrammarBuilder.new(&aBlock)
  end
end # module

# End of file

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rley-0.8.11 lib/rley/interface.rb
rley-0.8.10 lib/rley/interface.rb
rley-0.8.09 lib/rley/interface.rb
rley-0.8.08 lib/rley/interface.rb