Reordered grammar rules