Method: Racc::Grammar::DefinitionEnv#grammar

Defined in:
lib/racc/grammar.rb

#grammarObject



216
217
218
219
220
221
222
223
224
225
# File 'lib/racc/grammar.rb', line 216

def grammar
  flush_delayed
  @grammar.each do |rule|
    if rule.specified_prec
      rule.specified_prec = @grammar.intern(rule.specified_prec)
    end
  end
  @grammar.init
  @grammar
end