Expanding grammar