class Antelope::DSL::Contexts::Production

Attributes

data[R]
productions[R]

Public Instance Methods

production(name, &block) click to toggle source
# File lib/antelope/dsl/contexts/production.rb, line 5
def production(name, &block)
  @productions[name].concat(context(Match, &block))
end

Private Instance Methods

before_call() click to toggle source
# File lib/antelope/dsl/contexts/production.rb, line 14
def before_call
  @productions = Hash.new { |h, k| h[k] = [] }
end