SPPF class hierarchy is changed to work with grammar slots.