class Racc::Grammar

def compute_hash

Rule#hash
def compute_hash
  hash = 4   # size of dummy rule
  @rules.each do |rule|
    rule.hash = hash
    hash += (rule.size + 1)
  end
end