Definition:Syntax

The syntax of a language (either natural or formal) is its structure.

The syntax of a formal language is defined by its rules of formation.

As such, the rules of formation of a formal language can be referred to as its syntax.

Compare with semantics.