What is A Syntax Of A Program?




What is A Syntax Of A Program?

Syntax − Refers to the ways symbols may be combined to create well-formed sentences in the language. Syntax defines the formal relations between the constituents of a language, thereby providing a structural description of the various expressions that make up legal strings in the language.

Syntax deals solely with the form and structure of symbols in a language without any consideration given to their meaning. the syntax of a computer language is the set of rules that defines the combinations of symbols that are considered to be a correctly structured document or fragment in that language.