Linguistics.

a.The study of the rules for the formation of grammatical sentences in a language.

b.The study of the patterns of formation of sentences and phrases from words.

c.The rules or patterns so studied: English syntax.

d.A presentation of these: a syntax of English.

e.An instance of these: the syntax of a sentence.

Logic.

a.That branch of modern logic that studies the various kinds of signs that occur in a system and the possible arrangements of those signs, complete abstraction being made of the meaning of the signs.

b.The outcome of such a study when directed upon a specified language.

A system or orderly arrangement.

Computers. the grammatical rules and structural patterns governing the ordered use of appropriate words and symbols for issuing commands, writing code, etc., in a particular software application or programming language.