Add term and reduction rule grammers