Pruned not needed non terminals from grammar