Definitions Syntax is the study of the structure of phrases, clauses and sentences. Grammar can be defined more widely as the overall pattern of a language, including morphology, syntax and other aspects. The black big old bear John gave Mary the book. John gave the book to Mary. John Mary the book gave.
Word order is important in English grammar because it carries meaning.
The term 'grammaticality' does not refer to prescriptive notions. The term 'grammaticality' is not based on logic. Colorless green ideas sleep furiously. Syntax studies the hierarchical structure and the arrangement of these units. Each language has a limited set of syntactic patterns it uses to make phrases and clauses.