extending grammar