Grammar is central to the teaching and learning of languages. It is also one of the more difficult aspects of language to teach well.
Language teachers who adopt this definition focus on grammar as a set of forms and rules. They teach grammar by explaining the forms and rules and then drilling students on them. This results in bored, disaffected students who can produce correct forms on exercises and tests, but consistently make errors when they try to use the language in context.