update grammar for extends/class alias