Different types of grammar