class Racc::Grammar

def compute_heads

Sym#heads
def compute_heads
  @rules.each do |rule|
    rule.target.heads.push rule.ptrs[0]
  end
end